Skip to content

dispatch_review_runs: error summary omits the failure message, so agents can't see why a dispatch failed #946

Closed

Description

@jflowers

Problem

When dispatch_review_runs fails input validation, its text output carries no reason:

dispatch_review_runs: error (correlation_id none) — 0 completed, 0 failed, 0 skipped, 0 findings, 0 proposals

The actual cause (message: "input validation failed: diff_path: diff_path is required for non-triage modes", retryable: false) is only in tool metadata, which the calling agent can't see. The summary string is built at .opencode/plugins/review-dispatch/index.ts:6437 and leaves out result.message and retryable.

Evidence

Session ses_e622de6f4ffejp8CeJHa4cfTsV (/uf.address-feedback 314 in gaze):

  • Two dispatches left out diff_path.
  • The agent retried the identical call, then called dispatch_status twice.
  • It then ran 6 db_query calls against the live opencode database (about 16 seconds each on a 34 GB database) to recover the message from part metadata. Only after that did it resend the call with diff_path.

Fix

When status is not ok, append the message and whether it's retryable to the summary line, for example dispatch_review_runs: error (correlation_id none, retryable: false) — input validation failed: diff_path: …. Bound the message length. Add a test that the text output carries the validation message.

🤖 Generated with Claude Code

Activity

  1. added
    bug
    on Nov 3, 2026
  2. added 4 commits that reference this issue on Nov 3, 2026
    4a25de6
    3a9be23
    f4d7094
    b56fff4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions