Skip to content

feat(issue-auto-implement): add .comment_body for no-change and request-clarification PR comments - #253

Merged
leggetter merged 1 commit into
mainfrom
refactor/issue-auto-implement-comment-body
Mar 16, 2026
Merged

leggetter merged 1 commit into
mainfrom
refactor/issue-auto-implement-comment-body

Conversation

@leggetter

Copy link
Copy Markdown
Collaborator

When the implement step runs but Claude makes no code changes (e.g. feedback is a question, current approach is preferred, or clarification is needed), the workflow was still posting "Addressed review feedback. New commit(s) pushed" — which was misleading.

Changes

  • .comment_body file: When Claude decides not to make code changes, it writes the PR comment body to .github/actions/issue-auto-implement/.comment_body (one or two sentences). Used for: (a) no-change scenarios (thank the reviewer, briefly explain), or (b) when more information is needed (e.g. "Could you clarify whether you want X or Y?"). The workflow posts this on the PR and appends "Verification passed."
  • changes_pushed tracking: The implement-verify loop sets changes_pushed=true only when a commit was actually pushed. The "Comment on PR" step uses this to choose the message: commits pushed vs. Claude's .comment_body or a generic fallback.
  • Implement prompt: Optional path to write .comment_body instead of .commit_msg when making no code changes. ensureMetaFiles skips defaults when .comment_body exists.
  • Action: Reset .comment_body in git so it is never committed; read it when posting the no-change comment. .gitignore and AGENTS.md document the file and the "Request more info vs comment body from implement" distinction.

Branch was created from origin/main in a new worktree so this PR contains only these four files (no other CLI or gateway changes).

Made with Cursor

…st-clarification PR comments

- When implement makes no code changes, Claude writes the PR comment body to .comment_body (no-change rationale or request for clarification). Workflow posts it on the PR instead of claiming 'commit(s) pushed'.
- Track changes_pushed in implement-verify loop; use conditional PR comment (Claude's text or generic fallback when no .comment_body).
- Implement prompt: optional path to write .comment_body for (a) no-change scenarios or (b) when more information is needed.
- ensureMetaFiles: skip defaults when .comment_body exists. Reset .comment_body in git so it is never committed.
- .gitignore and AGENTS.md: document .comment_body and Request more info vs comment body from implement.

Made-with: Cursor
@leggetter
leggetter merged commit 6670f9e into main Mar 16, 2026
9 checks passed
@leggetter
leggetter deleted the refactor/issue-auto-implement-comment-body branch March 16, 2026 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant