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) #334186
Hi — we operate the OpenCode Go managed-inference API, and 1685 of your users' orgs call it through GitHub Copilot Chat (UA GitHubCopilotChat/0.63.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. Copilot Chat 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 Dalibor Zdravković, Nikhil Chavan, lianghaiyang, Takashi Tamura, Amit Singh Rawat, Andrew Noblet, Cokedog320, zaN0Xi3, MedinaPM, nickchomey and 106 more
Reacted by Thomas Germer, Charles Chan, Antonio Martínez Fernández, wjchen94, Ihor Kaharlichenko, tomelpqueentree, e859127, Aris Nguyen, donrel, lianghaiyang and 16 more
Reacted by offhub, xuyang2, VariableVince, donrel and Reed Xia
opencode is such a shit model provider!!! You completely break down service BEFORE solving this issue??? What's the problem with you???
Reacted by cheng, Antonio Martínez Fernández, Huang Yishan, tomelpqueentree, Charles Chan, megaabc1, Joseph, Shi Warai, Daniel Kovář, Diego Vilar and 12 more
Reacted by Burrito Verde, Dehan Jaco Lamprecht and Tony Worm
Dax (@thdxr) You should compute your own routing ids by computing a (sparse) hash over the user prompts. Your current approach is lazy, because it puts all the burden on agent developers when you could have done it yourself.
Reacted by tomelpqueentree, e859127, donrel, megaabc1, Shi Warai, Alex Ewerlöf, sebwindm, Cardin Lee, YD-233, 王胜琦 and 1 more
you could use X-Interaction-Id from request header as session ID. Dax (@thdxr) you lazy dumb axxhole. stxpid retxrded piece of thing!!! fix this IMMEDIATELY!!! I have paied for your stxpid service!!!
Reacted by Charles Chan, tomelpqueentree, megaabc1, lianghaiyang, Daniel Kovář, Cardin Lee and YD-233
Reacted by Thuan Nguyen, lhernandez0, Diego Vilar and Pablo Pereira
Can't use my Opencode GO sub in VSCode because of this. Isn't VSCode one of the most common places outside opencode-cli to use the subscription? I wonder why they apply the change knowing they will break other platforms compatibility...
Reacted by Huang Yishan, Arian Acevedo and Cardin Lee
And now here we see a request to add custom headers with the tool name to an entirely different harness. x-opencode-session, really?
Since there's about as much chance of vscode adding a competitor's custom header like this as hell freezing over, you can just add the header as a static entry like this to your individual model config and continue using opencode in vscode:
"requestHeaders": { "x-opencode-session": "ARE YOU KIDDING ME DAX" }
Do note that this might be problematic when using the same model from two chats at once. But then you could just do the reasonable thing and cancel your subscription, which is what I'll be doing.
So long and thanks for all the fish.
Reacted by tomelpqueentree, e859127, hikim113, Niklas Petersen, megaabc1, yao yuan, Aries2050, Korezzz, lianghaiyang, Pablo Pereira and 5 more
Reacted by Thomas Germer, Aries2050, Cardin Lee, Angga Saputra, Gonzalo Albito Méndez Rey and Krystian
Reacted by francesco visconti, Aries2050, Richard Davey, Cardin Lee and Gonzalo Albito Méndez Rey
This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!
Reacted by masahmad71, mikkihugo, dymo, zx2026 and donrel
🙂 This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation.
I'd love to try the Github Copilot App, but can't because of this. Opencode Desktop v2 is a deeply bugged mess and while Opencode Go is a keeper for now, their apps aren't. Not many good other options besides Orca. Or hopefully Github Copilot App in the near future. I don't get why this should take so long.
All we'd need is dynamic custom header support, to send the actual session id in the custom header: github/app#3493
28. Yeah no, i'm not using all kinds of extensions. Too unsafe. Waiting for official support #334186 (comment)
Just to clarify: it is not a new extension, just a small Node script that adds the missing header directly to Copilot for those who need a workaround right now. Waiting for the official fix makes total sense too!
Activity
arisng commentedon Sep 7, 2026
Now I'm totally stucked because of this new requirement when using GitHub Copilot CLI and VS Code 😥
wjchen94 commentedon Sep 7, 2026
????????????????????????????????????????
wjchen94 commentedon Sep 7, 2026
opencode is such a shit model provider!!! You completely break down service BEFORE solving this issue??? What's the problem with you???
gaaralbakuu commentedon Sep 7, 2026
so bad, I also meet this error
OnesoftQwQ commentedon Sep 7, 2026
You may use my extension. I have already fixed it.
zd-dalibor commentedon Sep 7, 2026
I think the best solution will be that Anomaly dev team develop official opencode provider for the vscode chat like Ollama already did.
99991 commentedon Sep 7, 2026
Dax (@thdxr) You should compute your own routing ids by computing a (sparse) hash over the user prompts. Your current approach is lazy, because it puts all the burden on agent developers when you could have done it yourself.
wjchen94 commentedon Sep 7, 2026
you could use
X-Interaction-Idfrom request header as session ID. Dax (@thdxr) you lazy dumb axxhole. stxpid retxrded piece of thing!!! fix this IMMEDIATELY!!! I have paied for your stxpid service!!!ankit-berlin commentedon Sep 7, 2026
This is horrible. I am so stuck with it. Can you please fix it ASAP?
AntonioMrtz commentedon Sep 7, 2026
Can't use my Opencode GO sub in VSCode because of this. Isn't VSCode one of the most common places outside opencode-cli to use the subscription? I wonder why they apply the change knowing they will break other platforms compatibility...
zeerd commentedon Sep 7, 2026
Sandeep Somavarapu (@sandy081) could you please fix this ASAP?
feat(session): implement stable session ID for OpenCode Go provider
wbsch commentedon Sep 7, 2026
I love everything about this.
Opencode itself has had support for
X-Session-Idanomalyco/opencode#12930 andx-session-affinityanomalyco/opencode#20744 added, then removed under unknown circumstances, then added again not even 3 weeks ago anomalyco/opencode#42694 anomalyco/opencode#43188And now here we see a request to add custom headers with the tool name to an entirely different harness.
x-opencode-session, really?Since there's about as much chance of vscode adding a competitor's custom header like this as hell freezing over, you can just add the header as a static entry like this to your individual model config and continue using opencode in vscode:
Do note that this might be problematic when using the same model from two chats at once. But then you could just do the reasonable thing and cancel your subscription, which is what I'll be doing.
So long and thanks for all the fish.
14 remaining items
vs-code-engineering commentedon Sep 25, 2026
This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!
vs-code-engineering commentedon Sep 26, 2026
🙂 This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!
verdverm commentedon Oct 2, 2026
Confirmation that leaving Copilot for the OpenCode harness was one of the best decisions ever. Microsoft is too big to succeed
Like, how hard is it to proxy a header... is co-prev-it not as good as it is claimed to be, similar for microsoft at ai...?
daohunliwei commentedon Oct 27, 2026
but how make visual Studio 2026 work????
VariableVince commentedon Oct 30, 2026
I'd love to try the Github Copilot App, but can't because of this. Opencode Desktop v2 is a deeply bugged mess and while Opencode Go is a keeper for now, their apps aren't. Not many good other options besides Orca. Or hopefully Github Copilot App in the near future. I don't get why this should take so long.
All we'd need is dynamic custom header support, to send the actual session id in the custom header: github/app#3493
code-martin commentedon Nov 1, 2026
For anyone running into this with OpenCode X/Go:
the 502/400 is caused by the missing x-opencode-session routing header.
While waiting for official support, you can patch it dynamically using this workaround:
https://github.com/code-martin/vscode-copilot-opencode-session
VariableVince commentedon Nov 1, 2026
Yeah no, i'm not using all kinds of extensions or scripts from unknown sources. Too unsafe. Waiting for official support #334186 (comment)
code-martin commentedon Nov 1, 2026
Just to clarify: it is not a new extension, just a small Node script that adds the missing header directly to Copilot for those who need a workaround right now. Waiting for the official fix makes total sense too!