Repository navigation
fix(opencode-go): pin claude-haiku-5-5 to the Anthropic wire - #6788
Conversation
Carry #6779's Haiku wire pin and direct resolver regression. Cover the exact model through captureRouteStaticPolicy and the resolver's fifth argument for Responses, Chat and Anthropic inbound, attempted Chat/Responses overrides, repeat resolution, sibling models and custom provider identity. Update the source owner, Responses transport contract and English provider guide to match OpenCode Go's documented Messages endpoint. The seven translated guides contain no Go wire description and remain unchanged. Verification: adapter-resolve red 20 pass / 2 fail before the source fix; green 22 pass / 0 fail after. Layout 2 pass / 0 fail. Typecheck, privacy and structure pass. Full suite and docs build deferred to coordinator CI under this bounded lane's explicit validation scope. Co-authored-by: agents-dev <[email protected]>
|
✅ Deterministic PR hygiene checks passed. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (5)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review. 📝 WalkthroughWalkthroughOpenCode Go’s ChangesOpenCode Go Haiku routing
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to No actionable merge-blocking issue is identified; the change is ready for normal merge checks. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Summary
Carries #6779 by @agents-dev so it runs under repository CI.
OpenCode Go serves
claude-haiku-5-5on its Anthropic Messages endpoint (/zen/go/v1/messages,@ai-sdk/anthropic), per the official Go endpoint table. OpenCodex routed it through the Chat wire, so requests for that model failed. This adds it to the provider-localANTHROPIC_WIRE_MODELS["opencode-go"]set insrc/types/wire.ts, next to the MiniMax models that already use the same mechanism. Hard pins take precedence over per-model wire overrides, so a Chat or Responses override cannot send Haiku down the wrong wire.Beyond the source PR, this resolves its open review thread: the test now also checks the exact model through
captureRouteStaticPolicyand the resolver's static-policy argument, across all three inbound protocols, with attempted Chat/Responses overrides and repeated resolution.structure/providers-and-adapters.md,structure/transports/responses-wire-shapes.mdand the OpenCode Go paragraph inguides/providers.mdname the new pin. The seven translated provider guides do not describe Go wires, so they are unchanged.Closes #6779 once landed (the source PR is closed manually after this merges).
Verification
bun test tests/server/adapter-resolve.test.ts: 20 pass / 2 fail on the unchanged source (the new assertions), 22 pass / 0 fail with the change.bun test tests/test-layout.test.ts: 2 pass.bun run typecheck,bun run privacy:scan,bun run structure:check,git diff --check: pass.c2650e7717: PASS.Checklist
Co-authored-by: agents-dev [email protected]
Summary by CodeRabbit
claude-haiku-5-5now consistently use the Anthropic Messages protocol, including when Chat or Responses overrides are configured. This behavior is maintained across supported inbound protocols without changing provider credentials or destination.