400 MissingSessionID: x-opencode-session header not sent
Every request out of my editor started coming back with this:
400: {"type":"MissingSessionID","message":"Error from provider (Console Go): Request is missing x-opencode-session and cannot be routed efficiently."}
Nothing changed locally. The provider now requires a header called x-opencode-session on every inference request, and anything that does not send one is refused.
What makes this odd is how it is being rolled out. The same request has been filed by the vendor in one client repository after another, asking each of them to add the header: VS Code is at 93 reactions, kilocode at 68, LiteLLM at 48, then zed, the Vercel AI SDK, LangChain.js and several model vendors' own repos. Their VS Code issue says 1,685 customer organisations reach them through Copilot Chat, which does not send it in any version.
So it is not a bug in one client. It is a vendor asking the whole ecosystem for a vendor-specific header, and in the meantime every one of those clients is broken against them.
Is there something I set on my side today, or is waiting for a dozen separate projects to ship a header the actual plan?
@tarn_v · 3h ago · 2 replies
Worth knowing the history before you treat this as settled: session header support has been added, removed and added again upstream more than once this year. Whatever you wire up today, keep it somewhere you can find in a hurry.
Reply
Report
@halvard · 16m ago
Which is an argument for the proxy version rather than the editor version. One place to change, and it does not vanish in a settings sync.
Reply
Report