Skip to content

Report useful errors when GitHub review-thread resolution fails #2208

Done

Description

@ifireball

Parent

#478

What to build

Preserve and report useful, sanitized error details when a GitHub resolveReviewThread mutation fails in the review or fix thread lifecycle. On fullsend #9891, the Nov 30 review posted explanations to 13 stale duplicate threads, but all 13 resolve attempts failed. The final result was stale-resolve-failed (13). The run had pull_requests=write, yet the post-script reported only a generic failure, so the reason could not be diagnosed.

Capture the GraphQL error or transport/status detail without exposing tokens or credentials. Include it in the workflow log and per-thread PR notice, alongside the working thread link and next step. Keep failures non-fatal and leave a thread open when resolution fails.

Acceptance criteria

  • GraphQL errors and transport failures from thread-resolution mutations retain a useful, sanitized reason instead of being collapsed into a generic failure.
  • Workflow logs and the PR summary identify the affected thread, link directly to it, and state the failure reason when available.
  • The PR summary gives a practical next step, such as closing the thread manually or rerunning the fix with further instructions.
  • A failed resolution leaves the thread open and does not fail processing of other threads or the agent run.
  • Tests cover GraphQL authorization errors, other GraphQL errors, transport failures, and secret redaction.

Activity

  1. added
    bug
    on Nov 30, 2026
  2. self-assigned this
    on Nov 30, 2026
  3. fullsend-ai-triage commented on Nov 30, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 11:25 AM UTC · Completed 11:26 AM UTC

    Commit: ef1bb84 · View workflow run →

    Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.21

  4. added
    ready-to-code
    on Nov 30, 2026
  5. fullsend-ai-triage commented on Nov 30, 2026

    @fullsend-ai-triage

    This is well-scoped and ready for implementation. Triage notes beyond the issue text:

    • Where to look: resolveReviewThread is invoked in scripts/process-fix-result.py (fix path), in scripts/post-review.src.sh (bundled into post-review.sh), and in the shared helper scripts/lib/github-review-ops.lib.sh (outdated-thread sweep). The stale-resolve-failed status text is in post-review.src.sh. The shell paths appear to discard error output, which is likely why no reason surfaces. This is a hypothesis to verify against the code.
    • Build step: changes to *.src.sh need make script-build and make check-bundle.
    • Scope: this covers the GitHub path only. GitLab discussion handling is tracked separately in Fix agent should reconcile GitLab finding discussions #1946, and the overall thread-reconciliation design is in the parent, Review and fix agents should reconcile finding threads #478.
    • No open PR currently addresses this, and no blocking prerequisites were found.

    Proposed test case:

    Stub resolveReviewThread to return, in turn: a FORBIDDEN GraphQL error, a generic GraphQL error,
    a transport failure (non-zero exit), and an error body containing a token-like string.
    Expect for each: thread stays open; log and PR summary show the thread link, a sanitized reason,
    and a next step (resolve manually / rerun /fs-fix); remaining threads are still processed;
    the run exits 0; the token string is redacted everywhere.
    

    Next steps:

    • /fs-code — agent creates a PR to implement this issue
    • /fs-code <your instruction> — agent implements with your specific guidance
  6. fullsend-ai-coder commented on Nov 30, 2026

    @fullsend-ai-coder
    Contributor

    🤖 Finished Code · ✅ Success · Started 11:28 AM UTC · Completed 11:50 AM UTC

    Commit: ef1bb84 · View workflow run →

    Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $4.11

  7. added a commit that references this issue on Nov 30, 2026
  8. added 2 commits that reference this issue on Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugfix-agentready-to-codereview-agent

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions