fix(freebuff): derive commit summaries from git changes#853
Open
victorxheng wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User request
A Freebuff cloud user reported that commits shown in the Git tab after pushing use the original prompt text as the commit description instead of a meaningful summary of the actual project changes. The attached screenshot showed prompt-derived commit titles such as
Freebuff: Add this below the AI instructions...andBefore: When committing changes....Implementation
summarizeGitChangesForCommit, a deterministic shared helper that builds concise commit titles from git status/diff paths instead of user prompt text.AGENTS.mdplus newCHANGELOG.mdnow summarizes asUpdate AI agent instructions and add changelog.Validation
bun test common/src/util/__tests__/git-commit-summary.test.tscd common && bun run typecheckgit diff --checkConfidence
Ready for review. The exact cloud Git-tab route is not present in this public snapshot, so this PR places the fix in shared code and the commit-generation contract that cloud/private code can call or inherit. The covered behavior directly matches the user report and prevents prompt-only summaries in the shared agent commit path.