Skip to content

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

Closed as not planned

Description

@mo-atef-dev

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

Activity

  1. github-actions commented on Sep 15, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of an existing issue. Please check:

    If your situation matches that report, adding a +1 or additional reproduction details there would help prioritize the fix.

  2. thdxr commented on Oct 11, 2026

    @thdxr
    Member

    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 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions