Conversation
…w-comment safe output Co-authored-by: pmalarme <686568+pmalarme@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix reply to pull request review comment functionality
fix(agentic): remove unsupported github-token field from reply-to-pull-request-review-comment safe output
Feb 19, 2026
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.
Summary
The
reply-to-pull-request-review-commentsafe output was silently failing becausegithub-tokenis not a supported field for this output type. When gh-aw compiles a safe output with an unrecognized field, it omits that output from the MCP server'sconfig.json— so the agent's tool call is rejected at the MCP layer and never queued for post-processing, even though the handler config already included it.Changes:
create-issue-command.md: Removegithub-token: ${{ secrets.GH_AW_AGENT_TOKEN }}fromreply-to-pull-request-review-comment. The workflow'spull-requests: writepermission viaGITHUB_TOKENis sufficient; no token override is needed.create-issue-command.lock.yml—config.json: Addreply_to_pull_request_review_commentwithmax: 1so the MCP server accepts agent calls to this tool.create-issue-command.lock.yml—validation.json: Add validation entry forreply_to_pull_request_review_comment(body+comment_idrequired,pull_request_numberoptional).Before (
.mdfrontmatter):After:
Testing
uv run poe checkconfig.json,validation.json, and handler config in the lock file against a known-good run wherereply_to_pull_request_review_commentsucceeded.Checklist
Additional context
GH_AW_SAFE_OUTPUTS_HANDLER_CONFIG(post-processing job) already containedreply_to_pull_request_review_commentcorrectly — the bug was exclusively in the MCP serverconfig.jsonused during the agent execution phase.gh aw compileis unavailable in this environment; both.mdand.lock.ymlare committed together to keep timestamps in sync for thecheck_workflow_timestamp_apistep.Original prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.