-
Notifications
You must be signed in to change notification settings - Fork 231
Description
add-reviewer safe-output handler not loaded at runtime — message skipped with warning
Description
The add-reviewer safe-output is accepted during compilation without errors, but at runtime the handler is never loaded. The agent successfully produces an add_reviewer message, but the output processing job skips it with a warning:
⚠️ No handler loaded for message type 'add_reviewer' (message 8/11). The message will be skipped. This may happen if the safe output type is not configured in the workflow's safe-outputs section.
The reviewer is not added to the pull request.
Reproduction
-
Configure
add-reviewerin the workflow frontmatter:safe-outputs: add-reviewer: reviewers: [copilot] max: 3 target: "*"
-
Compile the workflow — succeeds with no errors or warnings.
-
Trigger the workflow on a pull request.
-
The agent emits an
add_reviewermessage, but the handler is missing and the message is skipped.
Links
- Workflow source: security-review.md
- Failed run: actions/runs/22156723113
- Code is part of a Pull Request: #17
Expected behavior
The add-reviewer handler should be loaded during output processing and Copilot should be added as a reviewer on the pull request.
Actual behavior
The handler is not loaded. The message is silently skipped with a warning. No reviewer is added.
Environment
gh awversion: v0.46.0- Engine: Copilot
COPILOT_GITHUB_TOKENsecret: configured (fine-grained PAT with Pull requests: Read and write + Copilot Requests: Read-only)
Notes
- Compilation validates the
add-reviewerschema correctly (rejectsreviewers: copilot, acceptsreviewers: [copilot]), so the schema is wired up — only the runtime handler appears to be missing. - Workaround: configure Copilot as a required reviewer via branch protection rules.