Skip to content

Adds existing commit messages as context to auto-compose prompt#4998

Merged
ramin-t merged 2 commits intomainfrom
feature/add-commit-messages-to-auto-compose-prompt
Mar 2, 2026
Merged

Adds existing commit messages as context to auto-compose prompt#4998
ramin-t merged 2 commits intomainfrom
feature/add-commit-messages-to-auto-compose-prompt

Conversation

@ramin-t
Copy link
Contributor

@ramin-t ramin-t commented Feb 23, 2026

Closes #4874

@ramin-t ramin-t requested a review from d13 February 23, 2026 17:28
@ramin-t ramin-t added the area-composer Issues or features related to Commit Composer label Feb 23, 2026
@augmentcode
Copy link

augmentcode bot commented Feb 23, 2026

🤖 Augment PR Summary

Summary: Enhances the Commit Composer auto-compose flow by giving the AI the original commit messages as additional context.

Changes:

  • Adds a new commitMessages input to the generateCommits action and prompt template context.
  • Extends the generate-commits prompt to include these messages and guidance on how to use them.
  • Collects commit messages during composer initialization (in recompose scenarios) and passes them into the AI request.

Technical Notes: Messages are serialized as JSON and included only on the first conversation turn to help the model infer original intent while preserving existing commits unchanged.

🤖 Was this summary useful? React with 👍 or 👎

Copy link

@augmentcode augmentcode bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review completed. 1 suggestions posted.

Fix All in Augment

Comment augment review to trigger a new review at any time.

@ramin-t ramin-t merged commit 6a00968 into main Mar 2, 2026
6 checks passed
@ramin-t ramin-t deleted the feature/add-commit-messages-to-auto-compose-prompt branch March 2, 2026 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-composer Issues or features related to Commit Composer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Include commit context into composition operations

2 participants