[Feature]: Preview auto-generated commit message before committing #9265
nathangerday
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
[Feature]: Preview auto-generated commit message before committing
Problem
T3 Code already has a commit confirmation dialog with an editable commit message field.
Today, leaving the field blank and confirming auto-generates a message and immediately commits. This is convenient, but there is no way to preview or adjust the generated message before it is written to Git history.
Proposed solution
Add an explicit way to generate the commit message inside the existing commit dialog.
Generating the message itself should not mutate the repository.
Preserve the existing fast path
The current one-click workflow should remain unchanged:
Why this matters
AI-generated commit messages can occasionally be inaccurate or just need a small adjustment.
Providing an optional preview keeps the current fast workflow while giving users more control when they want it.
Smallest useful scope
Reuse the existing commit dialog and commit-message generation logic.
The smallest implementation would:
No new commit editor or Git workflow is required.
Alternatives
The current workaround is to commit first and amend afterward, or generate a message separately and paste it into the commit dialog.
Both require extra steps that could be avoided by exposing the existing generation logic directly in the dialog.
Risks / tradeoffs
This adds another action to the commit dialog, but does not add any extra step to the existing default workflow.
Users who prefer the current one-click behavior can continue using it unchanged.
Contribution
All reactions