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

Offen
#158 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
30/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
git
Bereich
desktop, devtools

Rechercherichtung

The payload names no source files. Start from the Changes → Ship → Commit view and the default message Changes from Command Code, which is the fallback the request wants kept. Find where the commit is assembled and where the session model is called, then check how the diff and stat are gathered. Done means a generated conventional-commit message fills the editable field, a failure falls back to the default with a non-blocking error, and the user still has to click to commit.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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
Vorherrschende Sprache
Shell
Sterne
110
Forks
9
Ø Merge
12 Min.
Gemergte PRs (30 T.)
1

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus CommandCodeAI/desktop

Alle Issues in CommandCodeAI/desktop

Ähnliche Issues

Weitere Issues zu Shell/Bash

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.