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

オープン
#158 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
30/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
git
領域
desktop, devtools

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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
主要言語
Shell
スター
110
フォーク
9
平均マージ
12分
マージ済み PR(30日)
1

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

CommandCodeAI/desktop のほかの issue

CommandCodeAI/desktop の issue をすべて見る

似ている issue

Shell/Bash の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。