Skip to content

add-reviewer safe-output handler not loaded at runtime — message skipped with warning #16642

@pmalarme

Description

@pmalarme

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

  1. Configure add-reviewer in the workflow frontmatter:

    safe-outputs:
      add-reviewer:
        reviewers: [copilot]
        max: 3
        target: "*"
  2. Compile the workflow — succeeds with no errors or warnings.

  3. Trigger the workflow on a pull request.

  4. The agent emits an add_reviewer message, but the handler is missing and the message is skipped.

Links

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 aw version: v0.46.0
  • Engine: Copilot
  • COPILOT_GITHUB_TOKEN secret: configured (fine-grained PAT with Pull requests: Read and write + Copilot Requests: Read-only)

Notes

  • Compilation validates the add-reviewer schema correctly (rejects reviewers: copilot, accepts reviewers: [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.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions