Skip to content

[Feat] Add Qwen3.8 Max to OpenCode Go - #1245

Merged
taltas merged 5 commits into
mainfrom
feature/opencode-go-models-3p3a6lqkljc58
Aug 14, 2026
Merged

[Feat] Add Qwen3.8 Max to OpenCode Go#1245
taltas merged 5 commits into
mainfrom
feature/opencode-go-models-3p3a6lqkljc58

Conversation

@zoomote

@zoomote zoomote Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

​Opened on behalf of @taltas. Follow up by mentioning @roomote, in the web UI, or in Discord.

What changed

  • Added native OpenCode Go metadata for qwen3.8-max, including context and output limits, multimodal support, pricing, caching, and streamed reasoning output.
  • Routed Qwen3.8 Max through the required Anthropic Messages endpoint.
  • Kept LiteLLM's separate OpenAI-compatible reasoning preservation behavior while avoiding an unsupported preservation claim on the direct Anthropic route.
  • Added focused registry, pricing, and protocol tests.

Why this change was made

OpenCode Go now serves Qwen3.8 Max. Without curated metadata and routing, Zoo Code can discover the ID dynamically but cannot reliably expose its native limits, calculate costs, or select the correct wire protocol.

Impact

OpenCode Go users can select Qwen3.8 Max with accurate model capabilities and cost reporting. Streamed reasoning remains visible, but it is not advertised as preserved across requests because the gateway does not provide a usable signed-thinking continuity field. Existing models and the default selection are unchanged.

Related PRs

Screenshots

OpenCode Go documentation clarifying Qwen3.8 Max reasoning continuity

@codecov

codecov Bot commented Aug 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@zoomote

zoomote Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor Author

Verified the supplied review against the direct Anthropic stream and history paths. The inert preserveReasoning claim was valid and is removed in b826a87; the final diff cleanup is at 8b77b88. LiteLLM keeps its independent OpenAI-compatible preservation allowlist. Signature replay and reasoning controls were not added because the available first-party contract exposes empty placeholder signatures and does not confirm those controls for OpenCode Go/Qwen3.8 Max.

@zoomote zoomote Bot changed the title [Feat] Add GLM-5.3 and Qwen3.8 Max to OpenCode Go [Feat] Add Qwen3.8 Max to OpenCode Go Aug 14, 2026
@taltas
taltas marked this pull request as ready for review August 14, 2026 14:16
@github-actions github-actions Bot added the awaiting-review PR changes are ready and waiting for maintainer re-review label Aug 14, 2026
taltas
taltas previously approved these changes Aug 14, 2026
@taltas
taltas added this pull request to the merge queue Aug 14, 2026
@taltas
taltas removed this pull request from the merge queue due to a manual request Aug 14, 2026
@zoomote

zoomote Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor Author

Resolved the merge conflicts with main in merge commit 33c2257.

Both conflicts were overlapping test additions from the merged GLM-5.3 work and this PR's Qwen3.8 Max work. The resolution preserves both model-specific test cases and keeps the updated GLM-5.3 case-insensitive assertion alongside Qwen3.8 Max. The full test suite, type checks, lint, and diff checks pass.

@github-actions github-actions Bot removed the awaiting-review PR changes are ready and waiting for maintainer re-review label Aug 14, 2026
@taltas
taltas added this pull request to the merge queue Aug 14, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Aug 14, 2026
@taltas
taltas added this pull request to the merge queue Aug 14, 2026
Merged via the queue into main with commit c4daefc Aug 14, 2026
15 checks passed
@taltas
taltas deleted the feature/opencode-go-models-3p3a6lqkljc58 branch August 14, 2026 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant