agent-orchestrator icon indicating copy to clipboard operation
agent-orchestrator copied to clipboard

[Bug]: OpenCode 2 native PR review fails with process_exited and no verdict on Windows

Open Wabull opened this issue 1 week ago • 2 comments

What went wrong?

On Windows, three Orchestrator native PR review attempts with the opencode-v2 reviewer ended with failureReason=process_exited. No review verdict or body was recorded, and no provider review ID was created. Ordinary OpenCode 2 Chat/Worker use with explicitly selected API models works on the same installation.

Steps / conditions observed

  1. In an Orchestrator project on Windows, select the OpenCode 2 harness for native PR review and configure the provider-qualified openai/gpt-6.2-sol API model.
  2. Trigger native review on a review-eligible PR. In the observed attempts the PR head was unchanged.
  3. Inspect the review result: all three attempts failed; the retained result was process_exited, with empty verdict, review body and GitHub review ID. A later review using Claude Code posted a review for the same PR.

Expected

The native OpenCode 2 reviewer starts and produces a verdict, or the failed run exposes enough sanitized launch/exit diagnostics to distinguish adapter startup failures from a provider request failure (for example, the exit status and a bounded, redacted stderr tail if available).

Agent-collected evidence and limits

  • Installed Orchestrator CLI at follow-up: 0.15.4-nightly.202611172150 (6908ee8e3769); installed OpenCode 2 was reported as 2.3.2. Windows. No new review was triggered for this report.
  • The review-run evidence verifies the harness. The exact provider/model comes from saved reviewer configuration, not a per-run model field; there is no evidence a model request was made or billed. No stderr was retained. Root cause is unknown.
  • Related but distinct: #7739 and #7727 describe runs left in running; these runs reached failed. #6625 concerns ACP Chat initialization diagnostics. This report is specific to native PR review with OpenCode 2.

Wabull avatar Nov 19 '26 01:11 Wabull

This is a bug report. Check that nobody has claimed it, comment to claim it, and open a PR with Fixes #8664.

See the contributing guide. Think the classification is wrong? Tell us on Discord.

OrcInc avatar Nov 19 '26 02:11 OrcInc

I'm claiming this. Reproduced the failure on Windows: the reviewer launch is wrapped in ao agent-process supervise ... -- env NAME=VALUE ... <reviewer argv>, and the supervisor execs argv[0] directly, so it dies with ao: start managed agent: exec: env: executable file not found in %PATH% before OpenCode starts. PR incoming with Fixes #8664.

ApexYash11 avatar Nov 19 '26 11:11 ApexYash11