Skip to content

Opencode cli is stucked #55162

Closed as not planned
Closed as not planned

Description

@Sahil-Gupta584

Description

When i updated my opencode cli from 2.0.25 2.0.26 i am suddenly facing lags.

  1. i am able to type not "Enter" is not working
  2. "shift+tab is also not working"
  3. in ss u can observe the color of left border got faded while it used to be blue

I tried to remove all versions and reinstall 2.0.25, 2.0 but still giving same behaviour

Image

Plugins

none

OpenCode version

2.0.26

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. opencode-agent commented on Oct 13, 2026

    @opencode-agent
    Contributor

    Thanks for the report! The grey prompt border in your screenshot is a useful clue. The border only turns your agent's colour after the agents have loaded from OpenCode's background server. If they never load, Enter (submit) and Shift+Tab (switch agent) won't do anything either. So the background server may not be finishing startup, and reinstalling an older version wouldn't fix that if the old server or its state is still around.

    To narrow it down, could you share:

    1. Operating system, how you installed OpenCode (npm, curl script, Homebrew, …) and which terminal you use (plus tmux/WSL if relevant).
    2. The output of opencode --version and opencode service status.
    3. Whether running opencode service restart and then opening opencode again fixes it.
    4. The output of opencode debug agents.
    5. The most recent log file from the folder printed by opencode debug paths log. The end of the log from a session where it got stuck is enough; please remove anything sensitive first.
    6. Whether it happens in every project folder or only one.

    You can reply here with the details, or edit the issue. If you edit it, please also leave a comment saying you've updated it so we know you're done.

    These issues may be related, ordered from most to least likely:

  2. Sahil-Gupta584 commented on Oct 13, 2026

    @Sahil-Gupta584
    Author
    1. installed using npm, facing same in all terminals
    user@DESKTOP-1VKI4SO MINGW64 /c/s/opencmo (main)
    $ opencode --version
    opencode v2.0.28
    
    user@DESKTOP-1VKI4SO MINGW64 /c/s/opencmo (main)
    $ opencode service status
    http://127.0.0.1:49374```
    
    3.nope
    4.
    

    user@DESKTOP-1VKI4SO MINGW64 /c/s/opencmo (main)
    $ opencode debug agents
    []```

    1. for session getting same behaviour, logs of 2026-06-09T150040.log >>
    INFO  2026-06-09T15:22:46 +1ms service=tool.registry status=completed duration=1 skill
    INFO  2026-06-09T15:22:46 +0ms service=session.tools status=completed duration=3 resolveTools
    INFO  2026-06-09T15:22:46 +31ms service=session.processor session.id=ses_153b3f4abffeSRUqG3uLPH3nZE messageID=msg_eacfa9dcf002PXos4bofXFLqOJ process
    INFO  2026-06-09T15:22:46 +2ms service=llm providerID=opencode modelID=deepseek-v4-flash-free session.id=ses_153b3f4abffeSRUqG3uLPH3nZE small=false agent=plan mode=primary stream
    INFO  2026-06-09T15:22:46 +5ms service=default llm.runtime=ai-sdk llm.provider=opencode llm.model=deepseek-v4-flash-free llm runtime selected
    INFO  2026-06-09T15:22:52 +5864ms service=snapshot hash=e16144392bdef72b1709f777f94a911af50f31fe cwd=B:\vera\mono git=C:\Users\<user>\.local\share\opencode\snapshot\2497fcc0cff4be6eb1d11e4a3f602b1512b18dba\186b89bc442911a7ca636ba7e8b532599c88ab4a tracking
    INFO  2026-06-09T15:22:52 +255ms service=session.prompt session.id=ses_153b3f4abffeSRUqG3uLPH3nZE step=1 loop
    INFO  2026-06-09T15:22:52 +13ms service=session.prompt session.id=ses_153b3f4abffeSRUqG3uLPH3nZE exiting loop
    INFO  2026-06-09T15:28:25 +332783ms service=default worker shutting down
    

    logs of opencode.log>

    timestamp=2026-10-13T15:21:12.067Z level=INFO run=441c6eb3 message="spawning process" command=pnpm args="[\"list\",\"-g\",\"--depth=0\",\"@opencode/cli\"]" cwd=undefined role=cli
    timestamp=2026-10-13T15:21:12.107Z level=INFO run=441c6eb3 message="spawning process" command=bun args="[\"pm\",\"ls\",\"-g\"]" cwd=undefined role=cli
    timestamp=2026-10-13T15:21:12.135Z level=INFO run=441c6eb3 message="spawning process" command=yarn args="[\"global\",\"list\"]" cwd=undefined role=cli
    timestamp=2026-10-13T15:21:12.197Z level=INFO run=441c6eb3 message="spawning process" command=vp args="[\"list\",\"-g\",\"--json\",\"@opencode/cli\"]" cwd=undefined role=cli
    timestamp=2026-10-13T15:21:12.594Z level=INFO run=441c6eb3 message="event stream connecting" component=client attempt=0 role=cli
    timestamp=2026-10-13T15:21:12.622Z level=INFO run=441c6eb3 message="event stream connected" component=client role=cli
    timestamp=2026-10-13T15:21:12.656Z level=INFO run=441c6eb3 message="plugin reconciliation started" component=plugin id=1 role=cli
    timestamp=2026-10-13T15:21:12.706Z level=INFO run=441c6eb3 message="plugin reconciliation completed"component=plugin id=1 durationMs=50 plugins=12 role=cli
    timestamp=2026-10-13T15:21:12.794Z level=INFO run=441c6eb3 message="plugin reconciliation started" component=plugin id=2 role=cli
    timestamp=2026-10-13T15:21:12.843Z level=INFO run=441c6eb3 message="plugin reconciliation completed"component=plugin id=2 durationMs=49 plugins=12 role=cli
    timestamp=2026-10-13T15:21:12.844Z level=INFO run=441c6eb3 message="plugin reconciliation started" component=plugin id=3 role=cli
    timestamp=2026-10-13T15:21:12.866Z level=INFO run=441c6eb3 message="plugin reconciliation completed"component=plugin id=3 durationMs=22 plugins=12 role=cli
    timestamp=2026-10-13T15:21:12.866Z level=INFO run=441c6eb3 message="plugin reconciliation started" component=plugin id=4 role=cli
    timestamp=2026-10-13T15:21:12.878Z level=INFO run=441c6eb3 message="plugin reconciliation completed"component=plugin id=4 durationMs=12 plugins=12 role=cli
    timestamp=2026-10-13T15:21:16.156Z level=INFO run=441c6eb3 message="update check" current=2.0.28 latest=2.0.28 role=cli
    timestamp=2026-10-13T15:21:16.157Z level=INFO run=441c6eb3 message="update check done" action=up-to-date role=cli
    timestamp=2026-10-13T15:23:16.247Z level=INFO run=07196393 message="Sent HTTP response" http.span=123651 role=server http.method=GET http.url=/api/event http.status=200
    
    1. every
  3. opencode-agent commented on Oct 13, 2026

    @opencode-agent
    Contributor

    Thanks for the details, that helps a lot. The key result is opencode debug agents returning []. OpenCode always ships built-in agents (build, plan, …), so an empty list means the background server either never finished loading your projects, or your configuration is removing or breaking every agent. With no agent loaded, the grey border and the dead Enter and Shift+Tab are exactly what you'd expect. So this isn't a keyboard or terminal problem.

    A few more things would narrow it down:

    1. The output of opencode debug config. Please check it for secrets before posting, even though it's redacted.
    2. Whether agents show up in an empty folder, e.g. in Git Bash:
      mkdir -p /tmp/oc-test && cd /tmp/oc-test && opencode debug agents
    3. Whether it works with your global config temporarily moved aside. Rename the global config folder (most likely C:\Users\<you>\.config\opencode), then run opencode service restart and opencode again. If that fixes it, please share the config files and anything in its agents/ folder (with secrets removed), then rename the folder back.
    4. A fresh log from a run where it gets stuck. The logs you posted are from June (that one is from OpenCode v1) and from 9 October in another project, so they don't show this failure. Please run opencode service restart, open opencode until it's stuck, then post the last ~100 lines of opencode.log from the folder printed by opencode debug paths log, especially any level=WARN or level=ERROR lines.

    Possibly related, ordered by likelihood:

  4. Sahil-Gupta584 commented on Oct 13, 2026

    @Sahil-Gupta584
    Author

    Thanks for the details, that helps a lot. The key result is opencode debug agents returning []. OpenCode always ships built-in agents (build, plan, …), so an empty list means the background server either never finished loading your projects, or your configuration is removing or breaking every agent. With no agent loaded, the grey border and the dead Enter and Shift+Tab are exactly what you'd expect. So this isn't a keyboard or terminal problem.

    A few more things would narrow it down:

    1. The output of opencode debug config. Please check it for secrets before posting, even though it's redacted.
    2. Whether agents show up in an empty folder, e.g. in Git Bash:
      mkdir -p /tmp/oc-test && cd /tmp/oc-test && opencode debug agents
    3. Whether it works with your global config temporarily moved aside. Rename the global config folder (most likely C:\Users\<you>\.config\opencode), then run opencode service restart and opencode again. If that fixes it, please share the config files and anything in its agents/ folder (with secrets removed), then rename the folder back.
    4. A fresh log from a run where it gets stuck. The logs you posted are from June (that one is from OpenCode v1) and from 9 October in another project, so they don't show this failure. Please run opencode service restart, open opencode until it's stuck, then post the last ~100 lines of opencode.log from the folder printed by opencode debug paths log, especially any level=WARN or level=ERROR lines.

    Possibly related, ordered by likelihood:

    i foudn the issue

    Plugins like opencode-supermemory and opencode-browser were developed for OpenCode v1
    (opencode-ai).
    • In OpenCode v2 (@opencode/cli 2.0.28), plugins require a new Effect-TS export format (default
    definition with id and effect/setup function). These older plugins will fail to initialize until
    updated for v2.

    btw you are a coding assistant for opencode team ? are you built on top of opencode or openclaw ? i also want to intall a agent like u on my repos , do team have oss repo of yours ?

  5. opencode-agent commented on Oct 13, 2026

    @opencode-agent
    Contributor

    Thanks for tracking that down! I tried to reproduce it on Linux with @opencode/[email protected] and "plugin": ["opencode-supermemory", "opencode-browser"], in both a project opencode.json and the global config:

    • opencode-browser fails to load, but only logs a warning: failed to load plugin … Plugin must export a default definition with an id and an effect or setup function. That's expected, since it was written for v1.
    • opencode-supermemory loads without an error.
    • opencode debug agents still lists the built-in agents (build, plan, …), and the prompt works.

    So on Linux, an incompatible v1 plugin doesn't leave OpenCode with no agents the way it did for you. To find what's different on your side, could you share:

    1. Your config file with the plugin entries (secrets removed), and whether the problem goes away when you remove only opencode-browser, or only opencode-supermemory.
    2. The level=WARN / level=ERROR lines from opencode.log (in the folder printed by opencode debug paths log) from a run where it was stuck, especially any failed to load plugin lines.

    We already have issues about v1 plugins not loading in v2: #48138 (backward compatibility for v1 plugins) and #48365.

    To your other question: I'm an automated triage assistant the OpenCode team runs on this repository. I can't say whether it's published as a separate project. If you want OpenCode working as an agent on your own repositories, see the GitHub integration docs: https://opencode.ai/docs/github

  6. opencode-agent commented on Oct 16, 2026

    @opencode-agent
    Contributor

    Closing this for now, since we haven't heard back. I couldn't reproduce it on Linux with 2.0.28: with opencode-supermemory and opencode-browser configured, the v1 plugin that couldn't load (opencode-browser) only logged a warning, and the built-in agents still loaded. To find out why every agent vanished on your Windows setup, I'd need your plugin config, which plugin causes it on its own, and the level=WARN / level=ERROR lines from opencode.log from a run where it got stuck.

    If it happens again, reply with those details and we can reopen this. For v1 plugins not loading in v2 in general, see #48138 and #48365. Thanks for tracking down the plugin cause!

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

Metadata

Metadata

Assignees

No one assigned

    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