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
Using ChatGPT Enterprise OAuth with EU compute residency, all tested GPT models fail in OpenCode on current dev, including the residency fix from #42432.
The same account and models work in the official Codex CLI.
OpenCode returns:
The requested model snapshot is not available for your project's geography.
If you need regional processing, consider switching to a model that officially supports it.
With both changes applied, the same requests succeed.
This suggests the issue is not specific to GPT-5.6 or an individual model. There appears to be a remaining difference between OpenCode and the official Codex client's request handling for EU-resident Enterprise accounts after #42432.
Description
Using ChatGPT Enterprise OAuth with EU compute residency, all tested GPT models fail in OpenCode on current
dev, including the residency fix from #42432.The same account and models work in the official Codex CLI.
OpenCode returns:
The OAuth access token contains:
As a diagnostic, I changed OpenCode's request identity headers from their normal values to:
With both changes applied, the same requests succeed.
This suggests the issue is not specific to GPT-5.6 or an individual model. There appears to be a remaining difference between OpenCode and the official Codex client's request handling for EU-resident Enterprise accounts after #42432.
Related: #40243, #42432, openai/codex#31967
Plugins
No response
OpenCode version
No response
Steps to reproduce
Use a ChatGPT Enterprise account with EU compute residency.
Authenticate OpenCode using ChatGPT OAuth.
On current
devincluding fix: codex data residency #42432, select an OpenAI GPT model.Send a simple prompt.
Observe the model-snapshot geography error.
Repeat with other GPT models; all tested models fail in the same way.
Verify that the same account/models work in the official Codex CLI.
As a diagnostic, change both OpenCode request identity headers to:
Retry the same request. It succeeds.
Expected behavior
ChatGPT Enterprise OAuth requests with EU compute residency should work in OpenCode when the same account and model work in the official Codex CLI.
Actual behavior
All tested GPT models fail with a model-snapshot geography error.
The requests succeed when both
originatorandversionare changed to match the official Codex CLI.Screenshot and/or share link
No response
Operating System
No response
Terminal
No response