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
Opencode Desktop stuck at "Thinking" after Opencode CLI installation. #49177
I was using Opencode desktop without problems.
At some point I installed Opencode CLI using npm as stated in the docs: npm install -g opencode-ai
After this install, the desktop version stopped working; any prompt leads to endless "Thinking" as seen in the picture:
Looking at the logs I get this error: ERROR 2026-09-15T13:57:52 +38993ms service=default session.id=ses_2d5b3702bffe5I8EDRQhoWl9Nn cause={"_id":"Cause","failures":[{"_tag":"Die","defect":{"code":"ERR_SQLITE_ERROR","errcode":1,"errstr":"SQL logic error"}}]} prompt_async failed
I tried clearing the cache folder "%USERPROFILE%/.cache/opencode" but nothing changed. The only thing remaining is to try to remove the SQLite database or a complete reinstallation which I want to avoid to not lose my sessions.
Plugins
None (or whatever is added by the default installation)
OpenCode version
1.16.2
Steps to reproduce
Install Opencode desktop and use it, then exit.
Install Opencode CLI using npm npm install -g opencode-ai.
Activity
github-actions commentedon Sep 15, 2026
This issue might be a duplicate of an existing issue. Please check:
opencode.db, causing SQL logic errors and broken sessions.If your situation matches that report, adding a +1 or additional reproduction details there would help prioritize the fix.
thdxr commentedon Oct 11, 2026
Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (
opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊