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

Aperta
#158 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
30/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
git
Ambito
desktop, devtools

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
Shell
Stelle
110
Fork
9
Merge medio
12m
PR unite (30g)
1

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di CommandCodeAI/desktop

Tutte le issue di CommandCodeAI/desktop

Issue simili

Altre issue su Shell/Bash

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.