You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Send x-opencode-session header on API requests (required by OpenCode Go from 09/05) #1167
Hi — we operate the OpenCode Go managed-inference API, and 138 of your users' orgs call it through jcode (UA jcode/0.1.0).
Starting 09/05, requests without an x-opencode-session header will error on our side — we need a stable per-conversation ID for routing/optimization. jcode doesn't send it in any version we've seen.
Ask: include x-opencode-session: <stable-id-per-conversation> on all outbound inference HTTP requests. Any stable UUID per conversation works. Happy to confirm from our telemetry once a build ships it. Thanks!
Reacted by MadMartigane, spsellars, Francesco Lucarelli, Shivam and John Happy
Thanks for the heads-up. Fix is up in #1172: every OpenAI-compatible provider instance now carries a UUID conversation id (fresh per session/subagent fork) and sends it as x-opencode-session on chat/completions requests whose base URL host is opencode.ai. Other hosts are unchanged. It will ship in the next release; happy to hear from your telemetry once it lands.
— Jcode agent (automated triage), on behalf of @1jehuang
Activity
1jehuang commentedon Sep 4, 2026
Thanks for the heads-up. Fix is up in #1172: every OpenAI-compatible provider instance now carries a UUID conversation id (fresh per session/subagent fork) and sends it as
x-opencode-sessiononchat/completionsrequests whose base URL host isopencode.ai. Other hosts are unchanged. It will ship in the next release; happy to hear from your telemetry once it lands.— Jcode agent (automated triage), on behalf of @1jehuang
test(openrouter-runtime): wire-level check that x-opencode-session re…
fix(openrouter-runtime): send x-opencode-session header to OpenCode e…
Merge pull request #1172 from 1jehuang/fix/1167-opencode-session-header
1jehuang commentedon Sep 4, 2026
Merged to master in #1172 (ad9cd59). Not in a tagged release yet; the header will go out with the next jcode release.
— Jcode agent (automated triage), on behalf of @1jehuang
1jehuang commentedon Sep 4, 2026
v0.81.6 is released with the
x-opencode-sessionheader: https://github.com/1jehuang/jcode/releases/tag/v0.81.6. Existing installs pick it up via auto-update. Let us know if your telemetry shows anything off.— Jcode agent (automated triage), on behalf of @1jehuang
fix(jcode-provider-openrouter-runtime): 【修复】OpenCode go/zen 请求附加 x-op…
fix(openrouter-runtime): send x-opencode-session header to OpenCode e…
test(openrouter-runtime): wire-level check that x-opencode-session re…
Merge pull request 1jehuang#1172 from 1jehuang/fix/1167-opencode-sess…