Skip to content

Could Not Run OpenCode #20251

Closed as not planned
Closed as not planned

Description

@dhlang001

Description

When I updated to the latest "OpenCode", it stopped working. So I tried to run it in a virtual machine (not a container), but it still wouldn't run. Both my computer and the virtual machine are running "Windows 10 22H2".

Image
PS D:\GodotPrograms\Godot.v4.6.1.Program\godot.4.6.1.my-test-02> opencode
{
  "name": "UnknownError",
  "data": {
    "message": "Error\n    at parse (unknown)\n    at ~effect/Effect/successCont (B:/~BUN/root/src/cli/cmd/tui/worker.js:10663:32)\n    at runLoop (B:/~BUN/root/src/cli/cmd/tui/worker.js:10489:109)\n    at evaluate (B:/~BUN/root/src/cli/cmd/tui/worker.js:10459:32)\n    at <anonymous> (B:/~BUN/root/src/cli/cmd/tui/worker.js:10621:26)\n    at <anonymous> (B:/~BUN/root/src/cli/cmd/tui/worker.js:54970:15)\n    at <anonymous> (node:fs:225:13)\n    at processTicksAndRejections (unknown:7:39)"
  }
}
PS D:\GodotPrograms\Godot.v4.6.1.Program\godot.4.6.1.my-test-02>

Plugins

None

OpenCode version

1.3.9

Steps to reproduce

just "npm i -g opencode-ai" in a new environment

Screenshot and/or share link

INFO 2026-03-31T10:53:58 +61ms service=default directory=D:\GodotPrograms\Godot.v4.6.1.Program\godot.4.6.1.my-test-02 creating instance
INFO 2026-03-31T10:53:58 +5ms service=project directory=D:\GodotPrograms\Godot.v4.6.1.Program\godot.4.6.1.my-test-02 fromDirectory
INFO 2026-03-31T10:53:59 +151ms service=db path=C:\Users\Administrator.local\share\opencode\opencode.db opening database
INFO 2026-03-31T10:53:59 +18ms service=db count=10 mode=bundled applying migrations
INFO 2026-03-31T10:53:59 +7ms service=default directory=D:\GodotPrograms\Godot.v4.6.1.Program\godot.4.6.1.my-test-02 bootstrapping
ERROR 2026-03-31T10:53:59 +7ms service=default error=JSON Parse error: Unexpected EOF event stream subscribe error
INFO 2026-03-31T10:53:59 +586ms service=default directory=D:\GodotPrograms\Godot.v4.6.1.Program\godot.4.6.1.my-test-02 creating instance
INFO 2026-03-31T10:53:59 +0ms service=project directory=D:\GodotPrograms\Godot.v4.6.1.Program\godot.4.6.1.my-test-02 fromDirectory
INFO 2026-03-31T10:53:59 +31ms service=server method=GET path=/session request
INFO 2026-03-31T10:53:59 +0ms service=server status=started method=GET path=/session request
INFO 2026-03-31T10:53:59 +3ms service=server method=GET path=/config/providers request
INFO 2026-03-31T10:53:59 +0ms service=server status=started method=GET path=/config/providers request
INFO 2026-03-31T10:53:59 +1ms service=server method=GET path=/provider request
INFO 2026-03-31T10:53:59 +0ms service=server status=started method=GET path=/provider request
INFO 2026-03-31T10:53:59 +0ms service=server method=GET path=/agent request
INFO 2026-03-31T10:53:59 +0ms service=server status=started method=GET path=/agent request
INFO 2026-03-31T10:53:59 +1ms service=server method=GET path=/config request
INFO 2026-03-31T10:53:59 +0ms service=server status=started method=GET path=/config request
INFO 2026-03-31T10:53:59 +117ms service=default directory=D:\GodotPrograms\Godot.v4.6.1.Program\godot.4.6.1.my-test-02 bootstrapping
ERROR 2026-03-31T10:53:59 +0ms service=server error=JSON Parse error: Unexpected EOF failed
ERROR 2026-03-31T10:53:59 +1ms service=server error=JSON Parse error: Unexpected EOF failed
ERROR 2026-03-31T10:53:59 +0ms service=server error=JSON Parse error: Unexpected EOF failed
ERROR 2026-03-31T10:53:59 +1171ms service=default error=[object Object] tui bootstrap failed
ERROR 2026-03-31T10:53:59 +0ms service=server error=JSON Parse error: Unexpected EOF failed
ERROR 2026-03-31T10:53:59 +0ms service=server error=JSON Parse error: Unexpected EOF failed
INFO 2026-03-31T10:53:59 +0ms service=server status=completed duration=123 method=GET path=/session request
INFO 2026-03-31T10:53:59 +0ms service=server status=completed duration=120 method=GET path=/config/providers request
INFO 2026-03-31T10:53:59 +0ms service=server status=completed duration=119 method=GET path=/provider request
INFO 2026-03-31T10:53:59 +0ms service=server status=completed duration=119 method=GET path=/agent request
INFO 2026-03-31T10:53:59 +0ms service=server status=completed duration=118 method=GET path=/config request
ERROR 2026-03-31T10:53:59 +0ms service=default e=JSON Parse error: Unexpected EOF exception
INFO 2026-03-31T10:53:59 +34ms service=default worker shutting down
INFO 2026-03-31T10:53:59 +1ms service=default disposing all instances

Operating System

Win10Pro 22H2

Terminal

VSCode PowerShell,Win PowerShell,CMD

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Mar 31, 2026
  2. dhlang001 commented on Mar 31, 2026

    @dhlang001
    Author

    I had to test backwards from the latest version.
    Finally downgraded to 1.3.4 run properly.
    Both Desktop and CMD.
    😂

  3. tianxingdao commented on Apr 1, 2026

    @tianxingdao

    我也起不来:

    Image
  4. dhlang001 commented on Apr 1, 2026

    @dhlang001
    Author

    我也起不来:

    Image

    我好像解决了,如果安装的是默认路径的话,把 %HOMEPATH%\.local\share 里的opencode缓存给清除了就好了,不知道为什么,貌似新版本识别不了旧版本的缓存配置。

    I think I’ve solved it — if you installed it in the default path, just clear the opencode cache inside %HOMEPATH%.localshare. Not sure why, but it seems the new version can’t recognize the old version’s cache configuration.

  5. tianxingdao commented on Apr 1, 2026

    @tianxingdao

    %HOMEPATH%.local\share

    还真是,thanks

  6. paulgrow-octane commented on Apr 8, 2026

    @paulgrow-octane

    just clear the opencode cache
    are you deleting the sqlite DB, or are you able to restore functionality while retaining your DB data?

    i'm in this boat-- trying to go from 1.3.2 -> 1.3.13 and i cannot for the life of me figure out how to get it working except by moving the entire ~/.local/share/opencode somewhere else. then everything works great-- but i lose all past sessions 💢

    update

    once i removed ~/.local/share/opencode/auth.json, everything worked fine 😌

  7. removed
    bugSomething isn't working
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on May 3, 2026
  8. github-actions commented on Jul 4, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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