Skip to content

[Feedback]: Generate the commit message from the diff in Changes → Ship → Commit #158

Open

Description

@raosan

What would you like?

In Command Code Desktop's Changes → Ship → Commit flow, add a way to generate the commit message from the current changes instead of typing it manually or falling back to a static default.

Current behavior (Desktop 0.1.60, macOS)

  • The Ship menu has a "Commit message" textarea whose placeholder reads: Commit message (blank uses "Changes from Command Code").
  • Leaving it blank commits with the hardcoded message Changes from Command Code.
  • There is no generate action anywhere in the Changes view.

Proposed behavior

  • A "Generate" action next to the commit message field (and/or generate automatically when the field is empty), using the current session model.
  • The generation should read the diff/stat of everything the commit would include (the Changes view already states that a commit includes all current project changes, not only agent edits).
  • Output a conventional-commit style message (type(scope): subject, plus an optional body).
  • Keep it editable, and still require the user's click to commit.
  • On failure (model unavailable, empty diff, timeout), fall back to the current default message and show a non-blocking error.

Why

Writing the message by hand for every commit is repetitive, and the current workaround is to ask the agent in chat to run git commit or to generate a message and paste it into the field, which breaks the Ship flow.

Environment

  • Command Code Desktop 0.1.60
  • macOS

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions