Skip to content

bug: responder agent cannot read PR review threads — MCP returns empty, curl not attempted #180

@microsasa

Description

@microsasa

Problem

The responder agent fails to read review comment threads. The MCP pull_request_read tool returns [] for every method (get, get_review_comments, get_reviews, get_diff, get_files). The agent tries MCP 10+ times, gets empty results, and gives up — reporting missing_data instead of addressing comments. It never falls back to curl despite the instructions telling it to use the REST API.

Timeline (2026-03-20)

Working runs:

Failed runs (same config, same lock file, same network):

Verification: PR #177 confirmed to have 4 unresolved review threads via our local MCP tools (outside the agent sandbox) at the same time the agent was failing.

What did NOT change between working and failing runs

  • Responder .md file: identical (no commits touched it)
  • Responder .lock.yml: identical
  • Agent flags: --allow-all-tools --allow-all-paths in both
  • Network domains: identical (including api.github.com)
  • Safe output config: identical (target: "*" for reply and push)
  • gh-aw version: v0.60.0 in both

What DID change

Nothing in the responder config. The only merges between working and failing runs were:

None of these touched responder files.

Key observations

  1. MCP pull_request_read works outside the agent sandbox (we can read threads fine from local CLI)
  2. MCP pull_request_read worked inside the sandbox at 06:12 and 06:20
  3. MCP pull_request_read stopped working inside the sandbox at 07:08 and all subsequent runs
  4. The agent has instructions to use curl with REST API but does not attempt it
  5. The agent has --allow-all-tools so curl is available
  6. search_pull_requests MCP tool works inside the sandbox (agent found PR fix: populate active_* fields for pure active sessions (#154) #177 via search)
  7. list_pull_requests MCP tool works inside the sandbox

Impact

The responder is completely broken. PRs with review comments cannot be addressed autonomously. Three PRs are now stuck (#171, #172 with aw-pr-stuck:review, #177 with unaddressed comments).

Possible root causes to investigate

  1. MCP server state/caching issue inside the sandbox
  2. GitHub API token scope change or rate limiting inside the sandbox
  3. gh-aw MCP gateway routing issue for pull_request_read specifically
  4. Something about the PR state (e.g., rebased commits, force-pushed) that causes MCP to return empty

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions