anomalyco / anomalyco/opencode
[bug] Zen login fails: "No authorization code found" / Failed query: update user set account_id
@MrMushrooooom is already working on this.
Since Aug 3, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
Body:
Description
Signing in to OpenCode Zen fails with both GitHub and Google OAuth. The browser returns:
{"error":"No authorization code found.","cause":{"error":"server_error","error_description":"Failed query: update user set account_id = ?, email = ? where user.email = ?\nparams: acc_01KZ35Q9AR9BDEZX1MFJGQ9NNS,,sanjaykanna75@gmail.com"}}
The OAuth callback returns no code, then the server tries to update the user record with an empty email, which fails. The Zen API key cannot be created, blocking all Zen access.
Repro steps
- Go to https://opencode.ai/auth
- Click GitHub (or Google)
- Authorize
- Browser shows the JSON error above
Tried in incognito and after clearing cookies; both providers fail. New-account signup path appears affected too.
Plugins
No response
OpenCode version
OpenCode 1.18.11
Steps to reproduce
No response
Screenshot and/or share link
No response
Operating System
windows 11
Terminal
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.