anomalyco / anomalyco/opencode

Opencode Desktop stuck at "Thinking" after Opencode CLI installation.

Open
#49,177 1 comment 0 reactions 1 assignee View on GitHub

@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:

Image

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
  1. Install Opencode desktop and use it, then exit.
  2. Install Opencode CLI using npm npm install -g opencode-ai.
  3. Use Opencode CLI, then exit.
  4. Use Opencode desktop again.
Screenshot and/or share link
Image
Operating System

Windows 10

Terminal

Windows CMD

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.