anomalyco / anomalyco/opencode
Opencode Desktop stuck at "Thinking" after Opencode CLI installation.
@Hona is already working on this.
Since Sep 15, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
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. - Use Opencode CLI, then exit.
- Use Opencode desktop again.
Screenshot and/or share link
Operating System
Windows 10
Terminal
Windows CMD
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.