Repository navigation
v2026.08.25 (v1.18.22)
What's New
X-Session-Idis now sent to providers. Upstream sendsx-session-affinityandX-Session-Idtogether to non-opencode providers, but the second half of that pair lives in a file this fork does not execute — so this fork had never sentX-Session-Idto any provider. The header the fork actually builds now carries both.- The parent-session header reaches opencode providers too. Upstream moved
x-parent-session-idout of the non-opencode branch so every provider receives it, and again did so only in the copy this fork does not run. The fork's request builder now makes the same move.
Fixes
- Upstream rebase to v1.18.22 (from v1.18.21):
- Anthropic model ids reach the Cloudflare AI Gateway as native dashed slugs (
claude-haiku-4-5) rather than the dotted catalog form - GitHub PAT tokens take a distinct app-token exchange path
- Console pricing and request-body handling split out with tests; workspace unblock action added
- Model catalog and documentation refreshes across all locales
- Anthropic model ids reach the Cloudflare AI Gateway as native dashed slugs (
- The silent-divergence guard shipped last release now covers four files instead of one. Two more upstream layers turned out to be in the same position as
src/session/llm/ai-sdk.ts—llm/native-request.tsandllm/native-runtime.ts, the native stack upstream is actively building, plusllm/request.ts. All are byte-identical to upstream and unreachable from this fork's rewrittenllm.ts, so upstream changes merge cleanly and do nothing. That pattern had already cost two fixes. One table now drives a content pin, a deleted-file check and a reference scan across all four, so a change to any of them fails loudly instead of being absorbed.
Install
Try without installing:
npx opencode-ai-nofcInstall globally:
npm install -g opencode-ai-nofc
opencodeOr download binaries below.
Based on upstream opencode v1.18.22.