Skip to content

Recomposing a commit message

Rewrite this commit's message (LLM) reads the commit's own diff — not its current message, which is withheld from the prompt on purpose, so the model describes the change instead of paraphrasing what is already written — and proposes a replacement. Nothing is written until you review it: the proposal is editable, and applying goes through a real rebase, so every commit from here to HEAD gets a new SHA, whether or not its message changed.

Recomposing a commit's message from its diff

Selecting a commit and choosing "Rewrite this commit's message (LLM)" opens a review dialog with the model's proposed replacement pre-filled — editable, and not written anywhere until you apply it. The warning above the proposal is not decoration: rewording a commit gives every commit after it a new SHA too, so a branch you already pushed needs a force-push afterwards.

Recomposing a commit's message from its diff

Captured from the running app by this scenario.

Do this

  1. Select the HEAD commit in the graph
  2. Choose Rewrite this commit's message (LLM) from the commit's row menu
  3. Apply the rewritten message

You should see

  • The proposed message becomes refactor: streamline the fake commit
  • The recompose warning about rewriting history is shown
  • The repository HEAD commit subject is refactor: streamline the fake commit

This page is generated from apps/e2e/features/ai-commit-recompose.feature, the end-to-end test that drives the feature it describes.

MIT licensed · Screenshots exported from the real app by the end-to-end suite.