Empty screen on launch #3582

Open
opened 2026-02-16 17:40:44 -05:00 by yindo · 11 comments
Owner

Originally created by @yulqen on GitHub (Dec 16, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

Using opencode v 1.0.162, installed with curl.

Blank screen on launching opencode. Have seen the issues related to this, many of which talk about waiting for network, starting without default plugins, etc. No joy.

Log:

INFO 2025-12-16T07:26:03 +1158ms service=default directory=/home/myuser/code/clojure/myproject creating instance
INFO 2025-12-16T07:26:03 +1ms service=project directory=/home/myuser/code/clojure/myproject fromDirectory
INFO 2025-12-16T07:26:03 +8ms service=default directory=/home/myuser/code/clojure/myproject bootstrapping
INFO 2025-12-16T07:26:03 +4ms service=config path=/home/myuser/.config/opencode/config.json loading
INFO 2025-12-16T07:26:03 +0ms service=config path=/home/myuser/.config/opencode/opencode.json loading
INFO 2025-12-16T07:26:03 +0ms service=config path=/home/myuser/.config/opencode/opencode.jsonc loading
INFO 2025-12-16T07:26:03 +3ms service=bun cmd=["/home/myuser/.opencode/bin/opencode","add","@opencode-ai/plugin@1.0.162","--exact"] cwd=/home/myuser/.config/opencode running
INFO 2025-12-16T07:26:03 +22ms service=server method=GET path=/config/providers request
INFO 2025-12-16T07:26:03 +1ms service=server status=started method=GET path=/config/providers request
INFO 2025-12-16T07:26:03 +1ms service=server method=GET path=/provider request
INFO 2025-12-16T07:26:03 +0ms service=server status=started method=GET path=/provider request
INFO 2025-12-16T07:26:03 +1ms service=server method=GET path=/agent request
INFO 2025-12-16T07:26:03 +0ms service=server status=started method=GET path=/agent request
INFO 2025-12-16T07:26:03 +0ms service=server method=GET path=/config request
INFO 2025-12-16T07:26:03 +0ms service=server status=started method=GET path=/config request
INFO 2025-12-16T07:26:03 +0ms service=server method=GET path=/event request
INFO 2025-12-16T07:26:03 +1ms service=server status=started method=GET path=/event request

Grateful for advice. Thanks.

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Originally created by @yulqen on GitHub (Dec 16, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description Using opencode v 1.0.162, installed with curl. Blank screen on launching opencode. Have seen the issues related to this, many of which talk about waiting for network, starting without default plugins, etc. No joy. Log: INFO 2025-12-16T07:26:03 +1158ms service=default directory=/home/myuser/code/clojure/myproject creating instance INFO 2025-12-16T07:26:03 +1ms service=project directory=/home/myuser/code/clojure/myproject fromDirectory INFO 2025-12-16T07:26:03 +8ms service=default directory=/home/myuser/code/clojure/myproject bootstrapping INFO 2025-12-16T07:26:03 +4ms service=config path=/home/myuser/.config/opencode/config.json loading INFO 2025-12-16T07:26:03 +0ms service=config path=/home/myuser/.config/opencode/opencode.json loading INFO 2025-12-16T07:26:03 +0ms service=config path=/home/myuser/.config/opencode/opencode.jsonc loading INFO 2025-12-16T07:26:03 +3ms service=bun cmd=["/home/myuser/.opencode/bin/opencode","add","@opencode-ai/plugin@1.0.162","--exact"] cwd=/home/myuser/.config/opencode running INFO 2025-12-16T07:26:03 +22ms service=server method=GET path=/config/providers request INFO 2025-12-16T07:26:03 +1ms service=server status=started method=GET path=/config/providers request INFO 2025-12-16T07:26:03 +1ms service=server method=GET path=/provider request INFO 2025-12-16T07:26:03 +0ms service=server status=started method=GET path=/provider request INFO 2025-12-16T07:26:03 +1ms service=server method=GET path=/agent request INFO 2025-12-16T07:26:03 +0ms service=server status=started method=GET path=/agent request INFO 2025-12-16T07:26:03 +0ms service=server method=GET path=/config request INFO 2025-12-16T07:26:03 +0ms service=server status=started method=GET path=/config request INFO 2025-12-16T07:26:03 +0ms service=server method=GET path=/event request INFO 2025-12-16T07:26:03 +1ms service=server status=started method=GET path=/event request Grateful for advice. Thanks. ### OpenCode version _No response_ ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the bug label 2026-02-16 17:40:44 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 16, 2025):

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

  • #5338: Opencode becomes stuck on start if internet connection is not stable (blank screen during startup)
  • #5485: Opencode become stuck all of a sudden. Does not launch anymore. (similar launch failure)
  • #4755: opencode Terminal UI shows empty screen (empty screen on Ubuntu, no keyboard response)
  • #5413: Opencode open and just empty screen (empty screen on macOS with recent version)
  • #4140: black screen when using >1.0.46 (black/empty screen on startup, requires process kill)

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Dec 16, 2025): This issue might be a duplicate of existing issues. Please check: - #5338: Opencode becomes stuck on start if internet connection is not stable (blank screen during startup) - #5485: Opencode become stuck all of a sudden. Does not launch anymore. (similar launch failure) - #4755: opencode Terminal UI shows empty screen (empty screen on Ubuntu, no keyboard response) - #5413: Opencode open and just empty screen (empty screen on macOS with recent version) - #4140: black screen when using >1.0.46 (black/empty screen on startup, requires process kill) Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Dec 16, 2025):

can you try:

opencode run hello --print-logs

and send me output? Just let it run even if it “hangs” the logs after it completes should be helpful

@rekram1-node commented on GitHub (Dec 16, 2025): can you try: opencode run hello --print-logs and send me output? Just let it run even if it “hangs” the logs after it completes should be helpful
Author
Owner

@tconn93 commented on GitHub (Dec 16, 2025):

INFO 2025-12-17T04:52:31 +299ms service=default version=1.0.164 args=["run","hello","--print-logs"] opencode
INFO 2025-12-17T04:52:31 +1ms service=default directory=/home/tcon creating instance
INFO 2025-12-17T04:52:31 +1ms service=project directory=/home/tcon fromDirectory
INFO 2025-12-17T04:52:31 +8ms service=default directory=/home/tcon bootstrapping
INFO 2025-12-17T04:52:31 +3ms service=config path=/home/tcon/.config/opencode/config.json loading
INFO 2025-12-17T04:52:31 +0ms service=config path=/home/tcon/.config/opencode/opencode.json loading
INFO 2025-12-17T04:52:31 +0ms service=config path=/home/tcon/.config/opencode/opencode.jsonc loading
INFO 2025-12-17T04:52:31 +2ms service=bun cmd=["/home/tcon/.opencode/bin/opencode","add","@opencode-ai/plugin@1.0.164","--exact"] cwd=/home/tcon/.config/opencode running
INFO 2025-12-17T04:52:31 +2ms service=config path=/home/tcon/.opencode/opencode.jsonc loading
INFO 2025-12-17T04:52:31 +0ms service=config path=/home/tcon/.opencode/opencode.json loading
INFO 2025-12-17T04:52:31 +0ms service=bun cmd=["/home/tcon/.opencode/bin/opencode","add","@opencode-ai/plugin@1.0.164","--exact"] cwd=/home/tcon/.opencode running
INFO 2025-12-17T04:52:31 +3ms service=bun code=0 stdout=bun add v1.3.4 (5eb2145b)

installed @opencode-ai/plugin@1.0.164

[1.00ms] done
stderr=Saved lockfile
done
INFO 2025-12-17T04:52:31 +9ms service=bun code=0 stdout=bun add v1.3.4 (5eb2145b)

installed @opencode-ai/plugin@1.0.164

3 packages installed [9.00ms]
stderr=Saved lockfile
done
INFO 2025-12-17T04:52:31 +5ms service=plugin path=opencode-copilot-auth@0.0.9 loading plugin
INFO 2025-12-17T04:52:31 +4ms service=plugin path=opencode-anthropic-auth@0.0.5 loading plugin
INFO 2025-12-17T04:52:31 +50ms service=bus type=* subscribing
INFO 2025-12-17T04:52:31 +1ms service=bus type=session.updated subscribing
INFO 2025-12-17T04:52:31 +0ms service=bus type=message.updated subscribing
INFO 2025-12-17T04:52:31 +0ms service=bus type=message.part.updated subscribing
INFO 2025-12-17T04:52:31 +0ms service=bus type=session.updated subscribing
INFO 2025-12-17T04:52:31 +0ms service=bus type=message.updated subscribing
INFO 2025-12-17T04:52:31 +0ms service=bus type=message.part.updated subscribing
INFO 2025-12-17T04:52:31 +0ms service=bus type=session.diff subscribing
INFO 2025-12-17T04:52:31 +0ms service=format init
INFO 2025-12-17T04:52:31 +0ms service=bus type=file.edited subscribing
INFO 2025-12-17T04:52:31 +0ms service=lsp serverIds=deno, typescript, vue, eslint, biome, gopls, ruby-lsp, pyright, elixir-ls, zls, csharp, fsharp, sourcekit-lsp, rust, clangd, svelte, astro, jdtls, yaml-ls, lua-ls, php intelephense, dart, ocaml-lsp, bash, terraform, texlab, dockerfile, gleam enabled LSP servers
INFO 2025-12-17T04:52:31 +2ms service=bus type=command.executed subscribing
INFO 2025-12-17T04:52:31 +24ms service=server method=POST path=/session request
INFO 2025-12-17T04:52:31 +0ms service=server status=started method=POST path=/session request
INFO 2025-12-17T04:52:31 +2ms service=session id=ses_4d558ebc4ffeNDswu8sIc2thtJ version=1.0.164 projectID=global directory=/home/tcon title=New session - 2025-12-17T04:52:31.419Z time={"created":1765947151419,"updated":1765947151419} created
INFO 2025-12-17T04:52:31 +1ms service=bus type=session.created publishing
INFO 2025-12-17T04:52:31 +0ms service=bus type=session.updated publishing
INFO 2025-12-17T04:52:31 +1ms service=server status=completed duration=4 method=POST path=/session request
INFO 2025-12-17T04:52:31 +1ms service=server method=GET path=/config request
INFO 2025-12-17T04:52:31 +0ms service=server status=started method=GET path=/config request
INFO 2025-12-17T04:52:31 +1ms service=server status=completed duration=1 method=GET path=/config request
INFO 2025-12-17T04:52:31 +2ms service=server method=GET path=/event request
INFO 2025-12-17T04:52:31 +0ms service=server status=started method=GET path=/event request
INFO 2025-12-17T04:52:31 +0ms service=server event connected
INFO 2025-12-17T04:52:31 +3ms service=bus type=* subscribing
INFO 2025-12-17T04:52:31 +1ms service=server status=completed duration=4 method=GET path=/event request
INFO 2025-12-17T04:52:31 +5ms service=server method=POST path=/session/ses_4d558ebc4ffeNDswu8sIc2thtJ/message request
INFO 2025-12-17T04:52:31 +0ms service=server status=started method=POST path=/session/ses_4d558ebc4ffeNDswu8sIc2thtJ/message request
INFO 2025-12-17T04:52:31 +3ms service=server status=completed duration=3 method=POST path=/session/ses_4d558ebc4ffeNDswu8sIc2thtJ/message request
INFO 2025-12-17T04:52:31 +5ms service=provider status=started state
INFO 2025-12-17T04:52:31 +2ms service=models.dev file={} refreshing
INFO 2025-12-17T04:52:31 +8ms service=provider init
INFO 2025-12-17T04:52:31 +5ms service=provider providerID=opencode found
INFO 2025-12-17T04:52:31 +0ms service=provider status=completed duration=15 state
INFO 2025-12-17T04:52:31 +2ms service=bus type=message.updated publishing
INFO 2025-12-17T04:52:31 +2ms service=bus type=message.part.updated publishing
INFO 2025-12-17T04:52:31 +1ms service=bus type=session.updated publishing
INFO 2025-12-17T04:52:31 +2ms service=bus type=session.status publishing
INFO 2025-12-17T04:52:31 +0ms service=session.prompt step=0 sessionID=ses_4d558ebc4ffeNDswu8sIc2thtJ loop
INFO 2025-12-17T04:52:31 +6ms service=llm providerID=opencode modelID=gpt-5-nano sessionID=ses_4d558ebc4ffeNDswu8sIc2thtJ small=true agent=title stream
INFO 2025-12-17T04:52:31 +0ms service=provider status=started providerID=opencode getSDK
INFO 2025-12-17T04:52:31 +1ms service=provider providerID=opencode pkg=@ai-sdk/openai using bundled provider
INFO 2025-12-17T04:52:31 +0ms service=provider status=completed duration=1 providerID=opencode getSDK
INFO 2025-12-17T04:52:31 +0ms service=bus type=message.updated publishing
INFO 2025-12-17T04:52:31 +1ms service=session.prompt status=started resolveTools
INFO 2025-12-17T04:52:31 +1ms service=llm providerID=opencode modelID=gpt-5-nano sessionID=ses_4d558ebc4ffeNDswu8sIc2thtJ small=true agent=title params={"options":{"reasoningEffort":"minimal","promptCacheKey":"ses_4d558ebc4ffeNDswu8sIc2thtJ","include":["reasoning.encrypted_content"],"reasoningSummary":"auto"}} params
INFO 2025-12-17T04:52:31 +18ms service=tool.registry status=started invalid
INFO 2025-12-17T04:52:31 +0ms service=tool.registry status=started bash
INFO 2025-12-17T04:52:31 +0ms service=bash-tool shell=/bin/bash bash tool using shell
INFO 2025-12-17T04:52:31 +1ms service=tool.registry status=started read
INFO 2025-12-17T04:52:31 +0ms service=tool.registry status=started glob
INFO 2025-12-17T04:52:31 +0ms service=tool.registry status=started grep
INFO 2025-12-17T04:52:31 +0ms service=tool.registry status=started list
INFO 2025-12-17T04:52:31 +0ms service=tool.registry status=started edit
INFO 2025-12-17T04:52:31 +0ms service=tool.registry status=started write
INFO 2025-12-17T04:52:31 +0ms service=tool.registry status=started task
INFO 2025-12-17T04:52:31 +0ms service=tool.registry status=started webfetch
INFO 2025-12-17T04:52:31 +0ms service=tool.registry status=started todowrite
INFO 2025-12-17T04:52:31 +0ms service=tool.registry status=started todoread
INFO 2025-12-17T04:52:31 +0ms service=tool.registry status=started websearch
INFO 2025-12-17T04:52:31 +0ms service=tool.registry status=started codesearch
INFO 2025-12-17T04:52:31 +0ms service=tool.registry status=completed duration=1 invalid
INFO 2025-12-17T04:52:31 +0ms service=tool.registry status=completed duration=0 read
INFO 2025-12-17T04:52:31 +0ms service=tool.registry status=completed duration=0 glob
INFO 2025-12-17T04:52:31 +0ms service=tool.registry status=completed duration=0 grep
INFO 2025-12-17T04:52:31 +0ms service=tool.registry status=completed duration=0 list
INFO 2025-12-17T04:52:31 +0ms service=tool.registry status=completed duration=0 edit
INFO 2025-12-17T04:52:31 +0ms service=tool.registry status=completed duration=0 write
INFO 2025-12-17T04:52:31 +0ms service=tool.registry status=completed duration=0 webfetch
INFO 2025-12-17T04:52:31 +0ms service=tool.registry status=completed duration=0 todowrite
INFO 2025-12-17T04:52:31 +0ms service=tool.registry status=completed duration=0 todoread
INFO 2025-12-17T04:52:31 +0ms service=tool.registry status=completed duration=0 websearch
INFO 2025-12-17T04:52:31 +0ms service=tool.registry status=completed duration=0 codesearch
INFO 2025-12-17T04:52:31 +0ms service=tool.registry status=completed duration=1 bash
INFO 2025-12-17T04:52:31 +0ms service=tool.registry status=completed duration=0 task
INFO 2025-12-17T04:52:31 +5ms service=session.prompt status=completed duration=26 resolveTools
INFO 2025-12-17T04:52:31 +3ms service=bus type=message.updated publishing
INFO 2025-12-17T04:52:31 +1ms service=llm providerID=opencode modelID=gpt-5-nano sessionID=ses_4d558ebc4ffeNDswu8sIc2thtJ small=true agent=title stream
INFO 2025-12-17T04:52:31 +0ms service=llm providerID=opencode modelID=gpt-5-nano sessionID=ses_4d558ebc4ffeNDswu8sIc2thtJ small=true agent=title params={"options":{"reasoningEffort":"minimal","promptCacheKey":"ses_4d558ebc4ffeNDswu8sIc2thtJ","include":["reasoning.encrypted_content"],"reasoningSummary":"auto"}} params
INFO 2025-12-17T04:52:31 +3ms service=session.processor process
INFO 2025-12-17T04:52:31 +0ms service=llm providerID=opencode modelID=big-pickle sessionID=ses_4d558ebc4ffeNDswu8sIc2thtJ small=false agent=build stream
INFO 2025-12-17T04:52:31 +0ms service=provider status=started providerID=opencode getSDK
INFO 2025-12-17T04:52:31 +0ms service=provider providerID=opencode pkg=@ai-sdk/openai-compatible using bundled provider
INFO 2025-12-17T04:52:31 +0ms service=provider status=completed duration=0 providerID=opencode getSDK
INFO 2025-12-17T04:52:31 +1ms service=llm providerID=opencode modelID=big-pickle sessionID=ses_4d558ebc4ffeNDswu8sIc2thtJ small=false agent=build params={"options":{}} params
INFO 2025-12-17T04:52:31 +1ms service=bus type=session.status publishing
INFO 2025-12-17T04:52:31 +3ms service=bus type=session.updated publishing
INFO 2025-12-17T04:52:31 +4ms service=bus type=session.diff publishing
ERROR 2025-12-17T04:52:32 +910ms service=acp-command promise={} reason=NotFoundError Unhandled rejection
ERROR 2025-12-17T04:52:32 +0ms service=default e=NotFoundError rejection

@tconn93 commented on GitHub (Dec 16, 2025): INFO 2025-12-17T04:52:31 +299ms service=default version=1.0.164 args=["run","hello","--print-logs"] opencode INFO 2025-12-17T04:52:31 +1ms service=default directory=/home/tcon creating instance INFO 2025-12-17T04:52:31 +1ms service=project directory=/home/tcon fromDirectory INFO 2025-12-17T04:52:31 +8ms service=default directory=/home/tcon bootstrapping INFO 2025-12-17T04:52:31 +3ms service=config path=/home/tcon/.config/opencode/config.json loading INFO 2025-12-17T04:52:31 +0ms service=config path=/home/tcon/.config/opencode/opencode.json loading INFO 2025-12-17T04:52:31 +0ms service=config path=/home/tcon/.config/opencode/opencode.jsonc loading INFO 2025-12-17T04:52:31 +2ms service=bun cmd=["/home/tcon/.opencode/bin/opencode","add","@opencode-ai/plugin@1.0.164","--exact"] cwd=/home/tcon/.config/opencode running INFO 2025-12-17T04:52:31 +2ms service=config path=/home/tcon/.opencode/opencode.jsonc loading INFO 2025-12-17T04:52:31 +0ms service=config path=/home/tcon/.opencode/opencode.json loading INFO 2025-12-17T04:52:31 +0ms service=bun cmd=["/home/tcon/.opencode/bin/opencode","add","@opencode-ai/plugin@1.0.164","--exact"] cwd=/home/tcon/.opencode running INFO 2025-12-17T04:52:31 +3ms service=bun code=0 stdout=bun add v1.3.4 (5eb2145b) installed @opencode-ai/plugin@1.0.164 [1.00ms] done stderr=Saved lockfile done INFO 2025-12-17T04:52:31 +9ms service=bun code=0 stdout=bun add v1.3.4 (5eb2145b) installed @opencode-ai/plugin@1.0.164 3 packages installed [9.00ms] stderr=Saved lockfile done INFO 2025-12-17T04:52:31 +5ms service=plugin path=opencode-copilot-auth@0.0.9 loading plugin INFO 2025-12-17T04:52:31 +4ms service=plugin path=opencode-anthropic-auth@0.0.5 loading plugin INFO 2025-12-17T04:52:31 +50ms service=bus type=* subscribing INFO 2025-12-17T04:52:31 +1ms service=bus type=session.updated subscribing INFO 2025-12-17T04:52:31 +0ms service=bus type=message.updated subscribing INFO 2025-12-17T04:52:31 +0ms service=bus type=message.part.updated subscribing INFO 2025-12-17T04:52:31 +0ms service=bus type=session.updated subscribing INFO 2025-12-17T04:52:31 +0ms service=bus type=message.updated subscribing INFO 2025-12-17T04:52:31 +0ms service=bus type=message.part.updated subscribing INFO 2025-12-17T04:52:31 +0ms service=bus type=session.diff subscribing INFO 2025-12-17T04:52:31 +0ms service=format init INFO 2025-12-17T04:52:31 +0ms service=bus type=file.edited subscribing INFO 2025-12-17T04:52:31 +0ms service=lsp serverIds=deno, typescript, vue, eslint, biome, gopls, ruby-lsp, pyright, elixir-ls, zls, csharp, fsharp, sourcekit-lsp, rust, clangd, svelte, astro, jdtls, yaml-ls, lua-ls, php intelephense, dart, ocaml-lsp, bash, terraform, texlab, dockerfile, gleam enabled LSP servers INFO 2025-12-17T04:52:31 +2ms service=bus type=command.executed subscribing INFO 2025-12-17T04:52:31 +24ms service=server method=POST path=/session request INFO 2025-12-17T04:52:31 +0ms service=server status=started method=POST path=/session request INFO 2025-12-17T04:52:31 +2ms service=session id=ses_4d558ebc4ffeNDswu8sIc2thtJ version=1.0.164 projectID=global directory=/home/tcon title=New session - 2025-12-17T04:52:31.419Z time={"created":1765947151419,"updated":1765947151419} created INFO 2025-12-17T04:52:31 +1ms service=bus type=session.created publishing INFO 2025-12-17T04:52:31 +0ms service=bus type=session.updated publishing INFO 2025-12-17T04:52:31 +1ms service=server status=completed duration=4 method=POST path=/session request INFO 2025-12-17T04:52:31 +1ms service=server method=GET path=/config request INFO 2025-12-17T04:52:31 +0ms service=server status=started method=GET path=/config request INFO 2025-12-17T04:52:31 +1ms service=server status=completed duration=1 method=GET path=/config request INFO 2025-12-17T04:52:31 +2ms service=server method=GET path=/event request INFO 2025-12-17T04:52:31 +0ms service=server status=started method=GET path=/event request INFO 2025-12-17T04:52:31 +0ms service=server event connected INFO 2025-12-17T04:52:31 +3ms service=bus type=* subscribing INFO 2025-12-17T04:52:31 +1ms service=server status=completed duration=4 method=GET path=/event request INFO 2025-12-17T04:52:31 +5ms service=server method=POST path=/session/ses_4d558ebc4ffeNDswu8sIc2thtJ/message request INFO 2025-12-17T04:52:31 +0ms service=server status=started method=POST path=/session/ses_4d558ebc4ffeNDswu8sIc2thtJ/message request INFO 2025-12-17T04:52:31 +3ms service=server status=completed duration=3 method=POST path=/session/ses_4d558ebc4ffeNDswu8sIc2thtJ/message request INFO 2025-12-17T04:52:31 +5ms service=provider status=started state INFO 2025-12-17T04:52:31 +2ms service=models.dev file={} refreshing INFO 2025-12-17T04:52:31 +8ms service=provider init INFO 2025-12-17T04:52:31 +5ms service=provider providerID=opencode found INFO 2025-12-17T04:52:31 +0ms service=provider status=completed duration=15 state INFO 2025-12-17T04:52:31 +2ms service=bus type=message.updated publishing INFO 2025-12-17T04:52:31 +2ms service=bus type=message.part.updated publishing INFO 2025-12-17T04:52:31 +1ms service=bus type=session.updated publishing INFO 2025-12-17T04:52:31 +2ms service=bus type=session.status publishing INFO 2025-12-17T04:52:31 +0ms service=session.prompt step=0 sessionID=ses_4d558ebc4ffeNDswu8sIc2thtJ loop INFO 2025-12-17T04:52:31 +6ms service=llm providerID=opencode modelID=gpt-5-nano sessionID=ses_4d558ebc4ffeNDswu8sIc2thtJ small=true agent=title stream INFO 2025-12-17T04:52:31 +0ms service=provider status=started providerID=opencode getSDK INFO 2025-12-17T04:52:31 +1ms service=provider providerID=opencode pkg=@ai-sdk/openai using bundled provider INFO 2025-12-17T04:52:31 +0ms service=provider status=completed duration=1 providerID=opencode getSDK INFO 2025-12-17T04:52:31 +0ms service=bus type=message.updated publishing INFO 2025-12-17T04:52:31 +1ms service=session.prompt status=started resolveTools INFO 2025-12-17T04:52:31 +1ms service=llm providerID=opencode modelID=gpt-5-nano sessionID=ses_4d558ebc4ffeNDswu8sIc2thtJ small=true agent=title params={"options":{"reasoningEffort":"minimal","promptCacheKey":"ses_4d558ebc4ffeNDswu8sIc2thtJ","include":["reasoning.encrypted_content"],"reasoningSummary":"auto"}} params INFO 2025-12-17T04:52:31 +18ms service=tool.registry status=started invalid INFO 2025-12-17T04:52:31 +0ms service=tool.registry status=started bash INFO 2025-12-17T04:52:31 +0ms service=bash-tool shell=/bin/bash bash tool using shell INFO 2025-12-17T04:52:31 +1ms service=tool.registry status=started read INFO 2025-12-17T04:52:31 +0ms service=tool.registry status=started glob INFO 2025-12-17T04:52:31 +0ms service=tool.registry status=started grep INFO 2025-12-17T04:52:31 +0ms service=tool.registry status=started list INFO 2025-12-17T04:52:31 +0ms service=tool.registry status=started edit INFO 2025-12-17T04:52:31 +0ms service=tool.registry status=started write INFO 2025-12-17T04:52:31 +0ms service=tool.registry status=started task INFO 2025-12-17T04:52:31 +0ms service=tool.registry status=started webfetch INFO 2025-12-17T04:52:31 +0ms service=tool.registry status=started todowrite INFO 2025-12-17T04:52:31 +0ms service=tool.registry status=started todoread INFO 2025-12-17T04:52:31 +0ms service=tool.registry status=started websearch INFO 2025-12-17T04:52:31 +0ms service=tool.registry status=started codesearch INFO 2025-12-17T04:52:31 +0ms service=tool.registry status=completed duration=1 invalid INFO 2025-12-17T04:52:31 +0ms service=tool.registry status=completed duration=0 read INFO 2025-12-17T04:52:31 +0ms service=tool.registry status=completed duration=0 glob INFO 2025-12-17T04:52:31 +0ms service=tool.registry status=completed duration=0 grep INFO 2025-12-17T04:52:31 +0ms service=tool.registry status=completed duration=0 list INFO 2025-12-17T04:52:31 +0ms service=tool.registry status=completed duration=0 edit INFO 2025-12-17T04:52:31 +0ms service=tool.registry status=completed duration=0 write INFO 2025-12-17T04:52:31 +0ms service=tool.registry status=completed duration=0 webfetch INFO 2025-12-17T04:52:31 +0ms service=tool.registry status=completed duration=0 todowrite INFO 2025-12-17T04:52:31 +0ms service=tool.registry status=completed duration=0 todoread INFO 2025-12-17T04:52:31 +0ms service=tool.registry status=completed duration=0 websearch INFO 2025-12-17T04:52:31 +0ms service=tool.registry status=completed duration=0 codesearch INFO 2025-12-17T04:52:31 +0ms service=tool.registry status=completed duration=1 bash INFO 2025-12-17T04:52:31 +0ms service=tool.registry status=completed duration=0 task INFO 2025-12-17T04:52:31 +5ms service=session.prompt status=completed duration=26 resolveTools INFO 2025-12-17T04:52:31 +3ms service=bus type=message.updated publishing INFO 2025-12-17T04:52:31 +1ms service=llm providerID=opencode modelID=gpt-5-nano sessionID=ses_4d558ebc4ffeNDswu8sIc2thtJ small=true agent=title stream INFO 2025-12-17T04:52:31 +0ms service=llm providerID=opencode modelID=gpt-5-nano sessionID=ses_4d558ebc4ffeNDswu8sIc2thtJ small=true agent=title params={"options":{"reasoningEffort":"minimal","promptCacheKey":"ses_4d558ebc4ffeNDswu8sIc2thtJ","include":["reasoning.encrypted_content"],"reasoningSummary":"auto"}} params INFO 2025-12-17T04:52:31 +3ms service=session.processor process INFO 2025-12-17T04:52:31 +0ms service=llm providerID=opencode modelID=big-pickle sessionID=ses_4d558ebc4ffeNDswu8sIc2thtJ small=false agent=build stream INFO 2025-12-17T04:52:31 +0ms service=provider status=started providerID=opencode getSDK INFO 2025-12-17T04:52:31 +0ms service=provider providerID=opencode pkg=@ai-sdk/openai-compatible using bundled provider INFO 2025-12-17T04:52:31 +0ms service=provider status=completed duration=0 providerID=opencode getSDK INFO 2025-12-17T04:52:31 +1ms service=llm providerID=opencode modelID=big-pickle sessionID=ses_4d558ebc4ffeNDswu8sIc2thtJ small=false agent=build params={"options":{}} params INFO 2025-12-17T04:52:31 +1ms service=bus type=session.status publishing INFO 2025-12-17T04:52:31 +3ms service=bus type=session.updated publishing INFO 2025-12-17T04:52:31 +4ms service=bus type=session.diff publishing ERROR 2025-12-17T04:52:32 +910ms service=acp-command promise={} reason=NotFoundError Unhandled rejection ERROR 2025-12-17T04:52:32 +0ms service=default e=NotFoundError rejection
Author
Owner

@yulqen commented on GitHub (Dec 17, 2025):

Thank you for looking at this. Now running this on a different network (using a VPN on a train, actually!) and opencode is starting fine. Original problem reported using home network. There was no general connectivity issues there though. I ran as you suggested and here is the log:

INFO  2025-12-17T07:12:40 +370ms service=default version=1.0.162 args=["run","hello","--print-logs"] opencode
INFO  2025-12-17T07:12:40 +3ms service=default directory=/home/user/code/clojure/myproject creating instance
INFO  2025-12-17T07:12:40 +0ms service=project directory=/home/user/code/clojure/myproject fromDirectory
INFO  2025-12-17T07:12:40 +22ms service=default directory=/home/user/code/clojure/myproject bootstrapping
INFO  2025-12-17T07:12:40 +8ms service=config path=/home/user/.config/opencode/config.json loading
INFO  2025-12-17T07:12:40 +1ms service=config path=/home/user/.config/opencode/opencode.json loading
INFO  2025-12-17T07:12:40 +0ms service=config path=/home/user/.config/opencode/opencode.jsonc loading
INFO  2025-12-17T07:12:40 +5ms service=bun cmd=["/home/user/.opencode/bin/opencode","add","@opencode-ai/plugin@1.0.162","--exact"] cwd=/home/user/.config/opencode running
INFO  2025-12-17T07:12:45 +4559ms service=bun code=0 stdout=bun add v1.3.4 (5eb2145b)

installed @opencode-ai/plugin@1.0.162

3 packages installed [4.55s]
 stderr=Resolving dependencies
Resolved, downloaded and extracted [12]
Saved lockfile
 done
INFO  2025-12-17T07:12:45 +7ms service=plugin path=opencode-copilot-auth@0.0.9 loading plugin
INFO  2025-12-17T07:12:45 +9ms service=plugin path=opencode-anthropic-auth@0.0.5 loading plugin
INFO  2025-12-17T07:12:45 +1ms service=bun pkg=opencode-anthropic-auth version=0.0.5 installing package using Bun's default registry resolution
INFO  2025-12-17T07:12:45 +0ms service=bun cmd=["/home/user/.opencode/bin/opencode","add","--force","--exact","--cwd","/home/user/.cache/opencode","opencode-anthropic-auth@0.0.5"] cwd=/home/user/.cache/opencode running
INFO  2025-12-17T07:12:48 +2778ms service=bun code=0 stdout=bun add v1.3.4 (5eb2145b)

+ opencode-copilot-auth@0.0.9

installed opencode-anthropic-auth@0.0.5

14 packages installed [2.77s]
 stderr=Resolving dependencies
Resolved, downloaded and extracted [50]
Saved lockfile
 done
INFO  2025-12-17T07:12:48 +26ms service=bus type=* subscribing
INFO  2025-12-17T07:12:48 +0ms service=bus type=session.updated subscribing
INFO  2025-12-17T07:12:48 +0ms service=bus type=message.updated subscribing
INFO  2025-12-17T07:12:48 +0ms service=bus type=message.part.updated subscribing
INFO  2025-12-17T07:12:48 +0ms service=bus type=session.updated subscribing
INFO  2025-12-17T07:12:48 +0ms service=bus type=message.updated subscribing
INFO  2025-12-17T07:12:48 +0ms service=bus type=message.part.updated subscribing
INFO  2025-12-17T07:12:48 +0ms service=bus type=session.diff subscribing
INFO  2025-12-17T07:12:48 +1ms service=format init
INFO  2025-12-17T07:12:48 +0ms service=bus type=file.edited subscribing
INFO  2025-12-17T07:12:48 +1ms service=lsp serverIds=deno, typescript, vue, eslint, biome, gopls, ruby-lsp, pyright, elixir-ls, zls, csharp, fsharp, sourcekit-lsp, rust, clangd, svelte, astro, jdtls, yaml-ls, lua-ls, php intelephense, dart, ocaml-lsp, bash, terraform, texlab, dockerfile, gleam enabled LSP servers
INFO  2025-12-17T07:12:48 +0ms service=file.watcher init
INFO  2025-12-17T07:12:48 +5ms service=bus type=command.executed subscribing
INFO  2025-12-17T07:12:48 +1ms service=file.watcher platform=linux backend=inotify watcher backend
INFO  2025-12-17T07:12:48 +113ms service=vcs branch=master initialized
INFO  2025-12-17T07:12:48 +0ms service=bus type=file.watcher.updated subscribing
INFO  2025-12-17T07:12:48 +19ms service=server method=POST path=/session request
INFO  2025-12-17T07:12:48 +0ms service=server status=started method=POST path=/session request
INFO  2025-12-17T07:12:48 +6ms service=session id=ses_4d4d87dadffeJGFsnTKisu3qII version=1.0.162 projectID=9f42989401fb2fb6ecde011008d5cd9f522ed8ac directory=/home/user/code/clojure/myproject title=New session - 2025-12-17T07:12:48.211Z time={"created":1765955568211,"updated":1765955568211} created
INFO  2025-12-17T07:12:48 +5ms service=bus type=session.created publishing
INFO  2025-12-17T07:12:48 +1ms service=bus type=session.updated publishing
INFO  2025-12-17T07:12:48 +5ms service=server status=completed duration=16 method=POST path=/session request
INFO  2025-12-17T07:12:48 +5ms service=server method=GET path=/config request
INFO  2025-12-17T07:12:48 +0ms service=server status=started method=GET path=/config request
INFO  2025-12-17T07:12:48 +1ms service=server status=completed duration=1 method=GET path=/config request
INFO  2025-12-17T07:12:48 +9ms service=server method=GET path=/event request
INFO  2025-12-17T07:12:48 +0ms service=server status=started method=GET path=/event request
INFO  2025-12-17T07:12:48 +0ms service=server event connected
INFO  2025-12-17T07:12:48 +4ms service=bus type=* subscribing
INFO  2025-12-17T07:12:48 +3ms service=server status=completed duration=7 method=GET path=/event request
INFO  2025-12-17T07:12:48 +10ms service=server method=POST path=/session/ses_4d4d87dadffeJGFsnTKisu3qII/message request
INFO  2025-12-17T07:12:48 +0ms service=server status=started method=POST path=/session/ses_4d4d87dadffeJGFsnTKisu3qII/message request
INFO  2025-12-17T07:12:48 +6ms service=server status=completed duration=6 method=POST path=/session/ses_4d4d87dadffeJGFsnTKisu3qII/message request
INFO  2025-12-17T07:12:48 +10ms service=provider status=started state
INFO  2025-12-17T07:12:48 +3ms service=models.dev file={} refreshing
INFO  2025-12-17T07:12:48 +19ms service=provider init
INFO  2025-12-17T07:12:48 +7ms service=provider providerID=opencode found
INFO  2025-12-17T07:12:48 +0ms service=provider status=completed duration=29 state
INFO  2025-12-17T07:12:48 +5ms service=bus type=message.updated publishing
INFO  2025-12-17T07:12:48 +4ms service=bus type=message.part.updated publishing
INFO  2025-12-17T07:12:48 +6ms service=bus type=session.updated publishing
INFO  2025-12-17T07:12:48 +4ms service=bus type=session.status publishing
INFO  2025-12-17T07:12:48 +0ms service=session.prompt step=0 sessionID=ses_4d4d87dadffeJGFsnTKisu3qII loop
INFO  2025-12-17T07:12:48 +11ms service=llm providerID=opencode modelID=gpt-5-nano sessionID=ses_4d4d87dadffeJGFsnTKisu3qII small=true agent=title stream
INFO  2025-12-17T07:12:48 +1ms service=provider status=started providerID=opencode getSDK
INFO  2025-12-17T07:12:48 +1ms service=provider providerID=opencode pkg=@ai-sdk/openai using bundled provider
INFO  2025-12-17T07:12:48 +0ms service=provider status=completed duration=1 providerID=opencode getSDK
INFO  2025-12-17T07:12:48 +0ms service=bus type=message.updated publishing
INFO  2025-12-17T07:12:48 +2ms service=session.prompt status=started resolveTools
INFO  2025-12-17T07:12:48 +6ms service=llm providerID=opencode modelID=gpt-5-nano sessionID=ses_4d4d87dadffeJGFsnTKisu3qII small=true agent=title params={"options":{"reasoningEffort":"minimal","promptCacheKey":"ses_4d4d87dadffeJGFsnTKisu3qII","include":["reasoning.encrypted_content"],"reasoningSummary":"auto"}} params
INFO  2025-12-17T07:12:48 +44ms service=tool.registry status=started invalid
INFO  2025-12-17T07:12:48 +0ms service=tool.registry status=started bash
INFO  2025-12-17T07:12:48 +1ms service=bash-tool shell=/usr/bin/bash bash tool using shell
INFO  2025-12-17T07:12:48 +2ms service=tool.registry status=started read
INFO  2025-12-17T07:12:48 +0ms service=tool.registry status=started glob
INFO  2025-12-17T07:12:48 +0ms service=tool.registry status=started grep
INFO  2025-12-17T07:12:48 +0ms service=tool.registry status=started list
INFO  2025-12-17T07:12:48 +0ms service=tool.registry status=started edit
INFO  2025-12-17T07:12:48 +0ms service=tool.registry status=started write
INFO  2025-12-17T07:12:48 +0ms service=tool.registry status=started task
INFO  2025-12-17T07:12:48 +1ms service=tool.registry status=started webfetch
INFO  2025-12-17T07:12:48 +0ms service=tool.registry status=started todowrite
INFO  2025-12-17T07:12:48 +1ms service=tool.registry status=started todoread
INFO  2025-12-17T07:12:48 +0ms service=tool.registry status=started websearch
INFO  2025-12-17T07:12:48 +0ms service=tool.registry status=started codesearch
INFO  2025-12-17T07:12:48 +0ms service=tool.registry status=completed duration=5 invalid
INFO  2025-12-17T07:12:48 +0ms service=tool.registry status=completed duration=2 read
INFO  2025-12-17T07:12:48 +0ms service=tool.registry status=completed duration=2 glob
INFO  2025-12-17T07:12:48 +0ms service=tool.registry status=completed duration=2 grep
INFO  2025-12-17T07:12:48 +0ms service=tool.registry status=completed duration=2 list
INFO  2025-12-17T07:12:48 +0ms service=tool.registry status=completed duration=2 edit
INFO  2025-12-17T07:12:48 +0ms service=tool.registry status=completed duration=2 write
INFO  2025-12-17T07:12:48 +0ms service=tool.registry status=completed duration=1 webfetch
INFO  2025-12-17T07:12:48 +0ms service=tool.registry status=completed duration=1 todowrite
INFO  2025-12-17T07:12:48 +0ms service=tool.registry status=completed duration=0 todoread
INFO  2025-12-17T07:12:48 +0ms service=tool.registry status=completed duration=0 websearch
INFO  2025-12-17T07:12:48 +0ms service=tool.registry status=completed duration=0 codesearch
INFO  2025-12-17T07:12:48 +0ms service=tool.registry status=completed duration=5 bash
INFO  2025-12-17T07:12:48 +1ms service=tool.registry status=completed duration=3 task
INFO  2025-12-17T07:12:48 +18ms service=session.prompt status=completed duration=74 resolveTools
INFO  2025-12-17T07:12:48 +5ms service=ripgrep cwd=/home/user/code/clojure/myproject limit=200 tree
INFO  2025-12-17T07:12:48 +27ms service=bus type=message.updated publishing
INFO  2025-12-17T07:12:48 +1ms service=llm providerID=opencode modelID=gpt-5-nano sessionID=ses_4d4d87dadffeJGFsnTKisu3qII small=true agent=title stream
INFO  2025-12-17T07:12:48 +0ms service=llm providerID=opencode modelID=gpt-5-nano sessionID=ses_4d4d87dadffeJGFsnTKisu3qII small=true agent=title params={"options":{"reasoningEffort":"minimal","promptCacheKey":"ses_4d4d87dadffeJGFsnTKisu3qII","include":["reasoning.encrypted_content"],"reasoningSummary":"auto"}} params
INFO  2025-12-17T07:12:48 +8ms service=bus type=session.updated publishing
INFO  2025-12-17T07:12:48 +14ms service=bus type=session.diff publishing
INFO  2025-12-17T07:12:48 +7ms service=session.processor process
INFO  2025-12-17T07:12:48 +0ms service=llm providerID=opencode modelID=big-pickle sessionID=ses_4d4d87dadffeJGFsnTKisu3qII small=false agent=build stream
INFO  2025-12-17T07:12:48 +0ms service=provider status=started providerID=opencode getSDK
INFO  2025-12-17T07:12:48 +0ms service=provider providerID=opencode pkg=@ai-sdk/openai-compatible using bundled provider
INFO  2025-12-17T07:12:48 +1ms service=provider status=completed duration=1 providerID=opencode getSDK
INFO  2025-12-17T07:12:48 +3ms service=llm providerID=opencode modelID=big-pickle sessionID=ses_4d4d87dadffeJGFsnTKisu3qII small=false agent=build params={"options":{}} params
INFO  2025-12-17T07:12:48 +5ms service=bus type=session.status publishing
ERROR 2025-12-17T07:12:48 +37ms service=acp-command promise={} reason=Bad file descriptor Unhandled rejection
ERROR 2025-12-17T07:12:48 +0ms service=default e=Bad file descriptor rejection
ERROR 2025-12-17T07:12:49 +723ms service=acp-command promise={} reason=NotFoundError Unhandled rejection
ERROR 2025-12-17T07:12:49 +0ms service=default e=NotFoundError rejection
INFO  2025-12-17T07:12:50 +1093ms service=bus type=session.updated publishing
INFO  2025-12-17T07:12:50 +332ms service=session.summary title=Greeting message handling title
INFO  2025-12-17T07:12:50 +1ms service=bus type=message.updated publishing
ERROR 2025-12-17T07:12:51 +669ms service=acp-command promise={} reason=NotFoundError Unhandled rejection
ERROR 2025-12-17T07:12:51 +0ms service=default e=NotFoundError rejection
INFO  2025-12-17T07:12:53 +2575ms service=snapshot initialized
INFO  2025-12-17T07:12:53 +24ms service=snapshot hash=a0c791f00cc4e91fe2fda7f47c49c7d2037f8192
 cwd=/home/user/code/clojure/myproject git=/home/user/.local/share/opencode/snapshot/9f42989401fb2fb6ecde011008d5cd9f522ed8ac tracking
INFO  2025-12-17T07:12:53 +2ms service=bus type=message.part.updated publishing
INFO  2025-12-17T07:12:53 +4ms service=bus type=message.part.updated publishing
INFO  2025-12-17T07:12:54 +153ms service=bus type=message.part.updated publishing
INFO  2025-12-17T07:12:54 +2ms service=bus type=message.part.updated publishing
INFO  2025-12-17T07:12:54 +11ms service=bus type=message.part.updated publishing
INFO  2025-12-17T07:12:54 +3ms service=bus type=message.part.updated publishing
INFO  2025-12-17T07:12:54 +3ms service=bus type=message.part.updated publishing
INFO  2025-12-17T07:12:54 +2ms service=bus type=message.part.updated publishing
INFO  2025-12-17T07:12:54 +46ms service=bus type=message.part.updated publishing
INFO  2025-12-17T07:12:54 +1ms service=bus type=message.part.updated publishing
INFO  2025-12-17T07:12:54 +2ms service=bus type=message.part.updated publishing
INFO  2025-12-17T07:12:54 +1ms service=bus type=message.part.updated publishing
INFO  2025-12-17T07:12:54 +60ms service=bus type=message.part.updated publishing
INFO  2025-12-17T07:12:54 +4ms service=bus type=message.part.updated publishing
INFO  2025-12-17T07:12:54 +4ms service=bus type=message.part.updated publishing
INFO  2025-12-17T07:12:54 +4ms service=bus type=message.part.updated publishing
INFO  2025-12-17T07:12:54 +3ms service=bus type=message.part.updated publishing
INFO  2025-12-17T07:12:54 +2ms service=bus type=message.part.updated publishing
INFO  2025-12-17T07:12:54 +2ms service=bus type=message.part.updated publishing
INFO  2025-12-17T07:12:54 +41ms service=bus type=message.part.updated publishing
INFO  2025-12-17T07:12:54 +2ms service=bus type=message.part.updated publishing
INFO  2025-12-17T07:12:54 +1ms service=bus type=message.part.updated publishing
INFO  2025-12-17T07:12:54 +2ms service=bus type=message.part.updated publishing
INFO  2025-12-17T07:12:54 +57ms service=bus type=message.part.updated publishing
INFO  2025-12-17T07:12:54 +1ms service=bus type=message.part.updated publishing
INFO  2025-12-17T07:12:54 +56ms service=bus type=message.part.updated publishing
INFO  2025-12-17T07:12:54 +207ms service=bus type=message.part.updated publishing
INFO  2025-12-17T07:12:54 +3ms service=bus type=message.part.updated publishing


Hello! I'm here to help you with your Clojure project. What would you like to work on today?

INFO  2025-12-17T07:12:54 +46ms service=snapshot hash=a0c791f00cc4e91fe2fda7f47c49c7d2037f8192
 cwd=/home/user/code/clojure/myproject git=/home/user/.local/share/opencode/snapshot/9f42989401fb2fb6ecde011008d5cd9f522ed8ac tracking
INFO  2025-12-17T07:12:54 +6ms service=bus type=message.part.updated publishing
INFO  2025-12-17T07:12:54 +2ms service=bus type=message.updated publishing
INFO  2025-12-17T07:12:54 +18ms service=bus type=message.updated publishing
INFO  2025-12-17T07:12:54 +0ms service=bus type=session.status publishing
INFO  2025-12-17T07:12:54 +3ms service=session.prompt step=1 sessionID=ses_4d4d87dadffeJGFsnTKisu3qII loop
INFO  2025-12-17T07:12:54 +13ms service=session.prompt sessionID=ses_4d4d87dadffeJGFsnTKisu3qII exiting loop
INFO  2025-12-17T07:12:54 +0ms service=session.compaction pruning
INFO  2025-12-17T07:12:54 +5ms service=session.prompt sessionID=ses_4d4d87dadffeJGFsnTKisu3qII cancel
INFO  2025-12-17T07:12:54 +0ms service=bus type=session.status publishing
INFO  2025-12-17T07:12:54 +0ms service=bus type=session.idle publishing
INFO  2025-12-17T07:12:54 +4ms service=bus type=message.updated publishing
INFO  2025-12-17T07:12:54 +1ms service=bus type=message.updated publishing
INFO  2025-12-17T07:12:54 +6ms service=bus type=session.updated publishing
INFO  2025-12-17T07:12:54 +1ms service=bus type=session.diff publishing
INFO  2025-12-17T07:12:54 +1ms service=default directory=/home/user/code/clojure/myproject disposing instance
INFO  2025-12-17T07:12:54 +1ms service=state key=/home/user/code/clojure/myproject waiting for state disposal to complete
INFO  2025-12-17T07:12:54 +1ms service=bus type=file.watcher.updated unsubscribing
ERROR 2025-12-17T07:12:54 +1ms service=state error=Bad file descriptor key=/home/user/code/clojure/myproject Error while disposing state:
INFO  2025-12-17T07:12:54 +0ms service=state key=/home/user/code/clojure/myproject state disposal completed
@yulqen commented on GitHub (Dec 17, 2025): Thank you for looking at this. Now running this on a different network (using a VPN on a train, actually!) and opencode is starting fine. Original problem reported using home network. There was no general connectivity issues there though. I ran as you suggested and here is the log: ```console INFO 2025-12-17T07:12:40 +370ms service=default version=1.0.162 args=["run","hello","--print-logs"] opencode INFO 2025-12-17T07:12:40 +3ms service=default directory=/home/user/code/clojure/myproject creating instance INFO 2025-12-17T07:12:40 +0ms service=project directory=/home/user/code/clojure/myproject fromDirectory INFO 2025-12-17T07:12:40 +22ms service=default directory=/home/user/code/clojure/myproject bootstrapping INFO 2025-12-17T07:12:40 +8ms service=config path=/home/user/.config/opencode/config.json loading INFO 2025-12-17T07:12:40 +1ms service=config path=/home/user/.config/opencode/opencode.json loading INFO 2025-12-17T07:12:40 +0ms service=config path=/home/user/.config/opencode/opencode.jsonc loading INFO 2025-12-17T07:12:40 +5ms service=bun cmd=["/home/user/.opencode/bin/opencode","add","@opencode-ai/plugin@1.0.162","--exact"] cwd=/home/user/.config/opencode running INFO 2025-12-17T07:12:45 +4559ms service=bun code=0 stdout=bun add v1.3.4 (5eb2145b) installed @opencode-ai/plugin@1.0.162 3 packages installed [4.55s] stderr=Resolving dependencies Resolved, downloaded and extracted [12] Saved lockfile done INFO 2025-12-17T07:12:45 +7ms service=plugin path=opencode-copilot-auth@0.0.9 loading plugin INFO 2025-12-17T07:12:45 +9ms service=plugin path=opencode-anthropic-auth@0.0.5 loading plugin INFO 2025-12-17T07:12:45 +1ms service=bun pkg=opencode-anthropic-auth version=0.0.5 installing package using Bun's default registry resolution INFO 2025-12-17T07:12:45 +0ms service=bun cmd=["/home/user/.opencode/bin/opencode","add","--force","--exact","--cwd","/home/user/.cache/opencode","opencode-anthropic-auth@0.0.5"] cwd=/home/user/.cache/opencode running INFO 2025-12-17T07:12:48 +2778ms service=bun code=0 stdout=bun add v1.3.4 (5eb2145b) + opencode-copilot-auth@0.0.9 installed opencode-anthropic-auth@0.0.5 14 packages installed [2.77s] stderr=Resolving dependencies Resolved, downloaded and extracted [50] Saved lockfile done INFO 2025-12-17T07:12:48 +26ms service=bus type=* subscribing INFO 2025-12-17T07:12:48 +0ms service=bus type=session.updated subscribing INFO 2025-12-17T07:12:48 +0ms service=bus type=message.updated subscribing INFO 2025-12-17T07:12:48 +0ms service=bus type=message.part.updated subscribing INFO 2025-12-17T07:12:48 +0ms service=bus type=session.updated subscribing INFO 2025-12-17T07:12:48 +0ms service=bus type=message.updated subscribing INFO 2025-12-17T07:12:48 +0ms service=bus type=message.part.updated subscribing INFO 2025-12-17T07:12:48 +0ms service=bus type=session.diff subscribing INFO 2025-12-17T07:12:48 +1ms service=format init INFO 2025-12-17T07:12:48 +0ms service=bus type=file.edited subscribing INFO 2025-12-17T07:12:48 +1ms service=lsp serverIds=deno, typescript, vue, eslint, biome, gopls, ruby-lsp, pyright, elixir-ls, zls, csharp, fsharp, sourcekit-lsp, rust, clangd, svelte, astro, jdtls, yaml-ls, lua-ls, php intelephense, dart, ocaml-lsp, bash, terraform, texlab, dockerfile, gleam enabled LSP servers INFO 2025-12-17T07:12:48 +0ms service=file.watcher init INFO 2025-12-17T07:12:48 +5ms service=bus type=command.executed subscribing INFO 2025-12-17T07:12:48 +1ms service=file.watcher platform=linux backend=inotify watcher backend INFO 2025-12-17T07:12:48 +113ms service=vcs branch=master initialized INFO 2025-12-17T07:12:48 +0ms service=bus type=file.watcher.updated subscribing INFO 2025-12-17T07:12:48 +19ms service=server method=POST path=/session request INFO 2025-12-17T07:12:48 +0ms service=server status=started method=POST path=/session request INFO 2025-12-17T07:12:48 +6ms service=session id=ses_4d4d87dadffeJGFsnTKisu3qII version=1.0.162 projectID=9f42989401fb2fb6ecde011008d5cd9f522ed8ac directory=/home/user/code/clojure/myproject title=New session - 2025-12-17T07:12:48.211Z time={"created":1765955568211,"updated":1765955568211} created INFO 2025-12-17T07:12:48 +5ms service=bus type=session.created publishing INFO 2025-12-17T07:12:48 +1ms service=bus type=session.updated publishing INFO 2025-12-17T07:12:48 +5ms service=server status=completed duration=16 method=POST path=/session request INFO 2025-12-17T07:12:48 +5ms service=server method=GET path=/config request INFO 2025-12-17T07:12:48 +0ms service=server status=started method=GET path=/config request INFO 2025-12-17T07:12:48 +1ms service=server status=completed duration=1 method=GET path=/config request INFO 2025-12-17T07:12:48 +9ms service=server method=GET path=/event request INFO 2025-12-17T07:12:48 +0ms service=server status=started method=GET path=/event request INFO 2025-12-17T07:12:48 +0ms service=server event connected INFO 2025-12-17T07:12:48 +4ms service=bus type=* subscribing INFO 2025-12-17T07:12:48 +3ms service=server status=completed duration=7 method=GET path=/event request INFO 2025-12-17T07:12:48 +10ms service=server method=POST path=/session/ses_4d4d87dadffeJGFsnTKisu3qII/message request INFO 2025-12-17T07:12:48 +0ms service=server status=started method=POST path=/session/ses_4d4d87dadffeJGFsnTKisu3qII/message request INFO 2025-12-17T07:12:48 +6ms service=server status=completed duration=6 method=POST path=/session/ses_4d4d87dadffeJGFsnTKisu3qII/message request INFO 2025-12-17T07:12:48 +10ms service=provider status=started state INFO 2025-12-17T07:12:48 +3ms service=models.dev file={} refreshing INFO 2025-12-17T07:12:48 +19ms service=provider init INFO 2025-12-17T07:12:48 +7ms service=provider providerID=opencode found INFO 2025-12-17T07:12:48 +0ms service=provider status=completed duration=29 state INFO 2025-12-17T07:12:48 +5ms service=bus type=message.updated publishing INFO 2025-12-17T07:12:48 +4ms service=bus type=message.part.updated publishing INFO 2025-12-17T07:12:48 +6ms service=bus type=session.updated publishing INFO 2025-12-17T07:12:48 +4ms service=bus type=session.status publishing INFO 2025-12-17T07:12:48 +0ms service=session.prompt step=0 sessionID=ses_4d4d87dadffeJGFsnTKisu3qII loop INFO 2025-12-17T07:12:48 +11ms service=llm providerID=opencode modelID=gpt-5-nano sessionID=ses_4d4d87dadffeJGFsnTKisu3qII small=true agent=title stream INFO 2025-12-17T07:12:48 +1ms service=provider status=started providerID=opencode getSDK INFO 2025-12-17T07:12:48 +1ms service=provider providerID=opencode pkg=@ai-sdk/openai using bundled provider INFO 2025-12-17T07:12:48 +0ms service=provider status=completed duration=1 providerID=opencode getSDK INFO 2025-12-17T07:12:48 +0ms service=bus type=message.updated publishing INFO 2025-12-17T07:12:48 +2ms service=session.prompt status=started resolveTools INFO 2025-12-17T07:12:48 +6ms service=llm providerID=opencode modelID=gpt-5-nano sessionID=ses_4d4d87dadffeJGFsnTKisu3qII small=true agent=title params={"options":{"reasoningEffort":"minimal","promptCacheKey":"ses_4d4d87dadffeJGFsnTKisu3qII","include":["reasoning.encrypted_content"],"reasoningSummary":"auto"}} params INFO 2025-12-17T07:12:48 +44ms service=tool.registry status=started invalid INFO 2025-12-17T07:12:48 +0ms service=tool.registry status=started bash INFO 2025-12-17T07:12:48 +1ms service=bash-tool shell=/usr/bin/bash bash tool using shell INFO 2025-12-17T07:12:48 +2ms service=tool.registry status=started read INFO 2025-12-17T07:12:48 +0ms service=tool.registry status=started glob INFO 2025-12-17T07:12:48 +0ms service=tool.registry status=started grep INFO 2025-12-17T07:12:48 +0ms service=tool.registry status=started list INFO 2025-12-17T07:12:48 +0ms service=tool.registry status=started edit INFO 2025-12-17T07:12:48 +0ms service=tool.registry status=started write INFO 2025-12-17T07:12:48 +0ms service=tool.registry status=started task INFO 2025-12-17T07:12:48 +1ms service=tool.registry status=started webfetch INFO 2025-12-17T07:12:48 +0ms service=tool.registry status=started todowrite INFO 2025-12-17T07:12:48 +1ms service=tool.registry status=started todoread INFO 2025-12-17T07:12:48 +0ms service=tool.registry status=started websearch INFO 2025-12-17T07:12:48 +0ms service=tool.registry status=started codesearch INFO 2025-12-17T07:12:48 +0ms service=tool.registry status=completed duration=5 invalid INFO 2025-12-17T07:12:48 +0ms service=tool.registry status=completed duration=2 read INFO 2025-12-17T07:12:48 +0ms service=tool.registry status=completed duration=2 glob INFO 2025-12-17T07:12:48 +0ms service=tool.registry status=completed duration=2 grep INFO 2025-12-17T07:12:48 +0ms service=tool.registry status=completed duration=2 list INFO 2025-12-17T07:12:48 +0ms service=tool.registry status=completed duration=2 edit INFO 2025-12-17T07:12:48 +0ms service=tool.registry status=completed duration=2 write INFO 2025-12-17T07:12:48 +0ms service=tool.registry status=completed duration=1 webfetch INFO 2025-12-17T07:12:48 +0ms service=tool.registry status=completed duration=1 todowrite INFO 2025-12-17T07:12:48 +0ms service=tool.registry status=completed duration=0 todoread INFO 2025-12-17T07:12:48 +0ms service=tool.registry status=completed duration=0 websearch INFO 2025-12-17T07:12:48 +0ms service=tool.registry status=completed duration=0 codesearch INFO 2025-12-17T07:12:48 +0ms service=tool.registry status=completed duration=5 bash INFO 2025-12-17T07:12:48 +1ms service=tool.registry status=completed duration=3 task INFO 2025-12-17T07:12:48 +18ms service=session.prompt status=completed duration=74 resolveTools INFO 2025-12-17T07:12:48 +5ms service=ripgrep cwd=/home/user/code/clojure/myproject limit=200 tree INFO 2025-12-17T07:12:48 +27ms service=bus type=message.updated publishing INFO 2025-12-17T07:12:48 +1ms service=llm providerID=opencode modelID=gpt-5-nano sessionID=ses_4d4d87dadffeJGFsnTKisu3qII small=true agent=title stream INFO 2025-12-17T07:12:48 +0ms service=llm providerID=opencode modelID=gpt-5-nano sessionID=ses_4d4d87dadffeJGFsnTKisu3qII small=true agent=title params={"options":{"reasoningEffort":"minimal","promptCacheKey":"ses_4d4d87dadffeJGFsnTKisu3qII","include":["reasoning.encrypted_content"],"reasoningSummary":"auto"}} params INFO 2025-12-17T07:12:48 +8ms service=bus type=session.updated publishing INFO 2025-12-17T07:12:48 +14ms service=bus type=session.diff publishing INFO 2025-12-17T07:12:48 +7ms service=session.processor process INFO 2025-12-17T07:12:48 +0ms service=llm providerID=opencode modelID=big-pickle sessionID=ses_4d4d87dadffeJGFsnTKisu3qII small=false agent=build stream INFO 2025-12-17T07:12:48 +0ms service=provider status=started providerID=opencode getSDK INFO 2025-12-17T07:12:48 +0ms service=provider providerID=opencode pkg=@ai-sdk/openai-compatible using bundled provider INFO 2025-12-17T07:12:48 +1ms service=provider status=completed duration=1 providerID=opencode getSDK INFO 2025-12-17T07:12:48 +3ms service=llm providerID=opencode modelID=big-pickle sessionID=ses_4d4d87dadffeJGFsnTKisu3qII small=false agent=build params={"options":{}} params INFO 2025-12-17T07:12:48 +5ms service=bus type=session.status publishing ERROR 2025-12-17T07:12:48 +37ms service=acp-command promise={} reason=Bad file descriptor Unhandled rejection ERROR 2025-12-17T07:12:48 +0ms service=default e=Bad file descriptor rejection ERROR 2025-12-17T07:12:49 +723ms service=acp-command promise={} reason=NotFoundError Unhandled rejection ERROR 2025-12-17T07:12:49 +0ms service=default e=NotFoundError rejection INFO 2025-12-17T07:12:50 +1093ms service=bus type=session.updated publishing INFO 2025-12-17T07:12:50 +332ms service=session.summary title=Greeting message handling title INFO 2025-12-17T07:12:50 +1ms service=bus type=message.updated publishing ERROR 2025-12-17T07:12:51 +669ms service=acp-command promise={} reason=NotFoundError Unhandled rejection ERROR 2025-12-17T07:12:51 +0ms service=default e=NotFoundError rejection INFO 2025-12-17T07:12:53 +2575ms service=snapshot initialized INFO 2025-12-17T07:12:53 +24ms service=snapshot hash=a0c791f00cc4e91fe2fda7f47c49c7d2037f8192 cwd=/home/user/code/clojure/myproject git=/home/user/.local/share/opencode/snapshot/9f42989401fb2fb6ecde011008d5cd9f522ed8ac tracking INFO 2025-12-17T07:12:53 +2ms service=bus type=message.part.updated publishing INFO 2025-12-17T07:12:53 +4ms service=bus type=message.part.updated publishing INFO 2025-12-17T07:12:54 +153ms service=bus type=message.part.updated publishing INFO 2025-12-17T07:12:54 +2ms service=bus type=message.part.updated publishing INFO 2025-12-17T07:12:54 +11ms service=bus type=message.part.updated publishing INFO 2025-12-17T07:12:54 +3ms service=bus type=message.part.updated publishing INFO 2025-12-17T07:12:54 +3ms service=bus type=message.part.updated publishing INFO 2025-12-17T07:12:54 +2ms service=bus type=message.part.updated publishing INFO 2025-12-17T07:12:54 +46ms service=bus type=message.part.updated publishing INFO 2025-12-17T07:12:54 +1ms service=bus type=message.part.updated publishing INFO 2025-12-17T07:12:54 +2ms service=bus type=message.part.updated publishing INFO 2025-12-17T07:12:54 +1ms service=bus type=message.part.updated publishing INFO 2025-12-17T07:12:54 +60ms service=bus type=message.part.updated publishing INFO 2025-12-17T07:12:54 +4ms service=bus type=message.part.updated publishing INFO 2025-12-17T07:12:54 +4ms service=bus type=message.part.updated publishing INFO 2025-12-17T07:12:54 +4ms service=bus type=message.part.updated publishing INFO 2025-12-17T07:12:54 +3ms service=bus type=message.part.updated publishing INFO 2025-12-17T07:12:54 +2ms service=bus type=message.part.updated publishing INFO 2025-12-17T07:12:54 +2ms service=bus type=message.part.updated publishing INFO 2025-12-17T07:12:54 +41ms service=bus type=message.part.updated publishing INFO 2025-12-17T07:12:54 +2ms service=bus type=message.part.updated publishing INFO 2025-12-17T07:12:54 +1ms service=bus type=message.part.updated publishing INFO 2025-12-17T07:12:54 +2ms service=bus type=message.part.updated publishing INFO 2025-12-17T07:12:54 +57ms service=bus type=message.part.updated publishing INFO 2025-12-17T07:12:54 +1ms service=bus type=message.part.updated publishing INFO 2025-12-17T07:12:54 +56ms service=bus type=message.part.updated publishing INFO 2025-12-17T07:12:54 +207ms service=bus type=message.part.updated publishing INFO 2025-12-17T07:12:54 +3ms service=bus type=message.part.updated publishing Hello! I'm here to help you with your Clojure project. What would you like to work on today? INFO 2025-12-17T07:12:54 +46ms service=snapshot hash=a0c791f00cc4e91fe2fda7f47c49c7d2037f8192 cwd=/home/user/code/clojure/myproject git=/home/user/.local/share/opencode/snapshot/9f42989401fb2fb6ecde011008d5cd9f522ed8ac tracking INFO 2025-12-17T07:12:54 +6ms service=bus type=message.part.updated publishing INFO 2025-12-17T07:12:54 +2ms service=bus type=message.updated publishing INFO 2025-12-17T07:12:54 +18ms service=bus type=message.updated publishing INFO 2025-12-17T07:12:54 +0ms service=bus type=session.status publishing INFO 2025-12-17T07:12:54 +3ms service=session.prompt step=1 sessionID=ses_4d4d87dadffeJGFsnTKisu3qII loop INFO 2025-12-17T07:12:54 +13ms service=session.prompt sessionID=ses_4d4d87dadffeJGFsnTKisu3qII exiting loop INFO 2025-12-17T07:12:54 +0ms service=session.compaction pruning INFO 2025-12-17T07:12:54 +5ms service=session.prompt sessionID=ses_4d4d87dadffeJGFsnTKisu3qII cancel INFO 2025-12-17T07:12:54 +0ms service=bus type=session.status publishing INFO 2025-12-17T07:12:54 +0ms service=bus type=session.idle publishing INFO 2025-12-17T07:12:54 +4ms service=bus type=message.updated publishing INFO 2025-12-17T07:12:54 +1ms service=bus type=message.updated publishing INFO 2025-12-17T07:12:54 +6ms service=bus type=session.updated publishing INFO 2025-12-17T07:12:54 +1ms service=bus type=session.diff publishing INFO 2025-12-17T07:12:54 +1ms service=default directory=/home/user/code/clojure/myproject disposing instance INFO 2025-12-17T07:12:54 +1ms service=state key=/home/user/code/clojure/myproject waiting for state disposal to complete INFO 2025-12-17T07:12:54 +1ms service=bus type=file.watcher.updated unsubscribing ERROR 2025-12-17T07:12:54 +1ms service=state error=Bad file descriptor key=/home/user/code/clojure/myproject Error while disposing state: INFO 2025-12-17T07:12:54 +0ms service=state key=/home/user/code/clojure/myproject state disposal completed ```
Author
Owner

@rekram1-node commented on GitHub (Dec 17, 2025):

@yulqen so opencode run appears to work for you, now what about opencode normally? is it still empty? if so for how long ca u let it just “hang” for several minutes and see if it recovers?

@rekram1-node commented on GitHub (Dec 17, 2025): @yulqen so opencode run appears to work for you, now what about opencode normally? is it still empty? if so for how long ca u let it just “hang” for several minutes and see if it recovers?
Author
Owner

@yulqen commented on GitHub (Dec 19, 2025):

@yulqen so opencode run appears to work for you, now what about opencode normally? is it still empty? if so for how long ca u let it just “hang” for several minutes and see if it recovers?

Trying opencode normally still results in a blank screen. Running in same network environment as originally raised issue. Several minutes now - no change. It does not recover.

This is only happening on one machine (an X1 carbon laptop); desktop is fine. Both running latest version of Debian, etc.

@yulqen commented on GitHub (Dec 19, 2025): > [@yulqen](https://github.com/yulqen) so opencode run appears to work for you, now what about opencode normally? is it still empty? if so for how long ca u let it just “hang” for several minutes and see if it recovers? Trying opencode normally still results in a blank screen. Running in same network environment as originally raised issue. Several minutes now - no change. It does not recover. This is only happening on one machine (an X1 carbon laptop); desktop is fine. Both running latest version of Debian, etc.
Author
Owner

@rekram1-node commented on GitHub (Dec 19, 2025):

Does it have any proxies setup?

Ill look into this

@rekram1-node commented on GitHub (Dec 19, 2025): Does it have any proxies setup? Ill look into this
Author
Owner

@yulqen commented on GitHub (Dec 20, 2025):

Does it have any proxies setup?

Ill look into this

DNS via Adguard, otherwise a straightforward domestic wifi router.

@yulqen commented on GitHub (Dec 20, 2025): > Does it have any proxies setup? > > Ill look into this DNS via Adguard, otherwise a straightforward domestic wifi router.
Author
Owner

@daolanfler commented on GitHub (Dec 20, 2025):

I encounter this issue too, here are the steps:
Proxy:

➜ echo $HTTPS_PROXY $HTTP_PROXY $ALL_PROXY
http://127.0.0.1:7890 http://127.0.0.1:7890 socks5://127.0.0.1:7890

Cache:

➜ ls -al ~/.cache/opencode/node_modules
total 0
drwxr-xr-x@ 3 qi  staff   96 Dec 21 00:08 .
drwxr-xr-x@ 6 qi  staff  192 Dec 21 00:08 ..
drwxr-xr-x@ 9 qi  staff  288 Dec 21 00:08 opencode-copilot-auth

Run with --print-logs: :

logs of stucked at installing plugins?
➜ opencode run hello --print-logs

INFO  2025-12-20T16:12:57 +552ms service=default version=1.0.174 args=["run","hello","--print-logs"] opencode
INFO  2025-12-20T16:12:57 +0ms service=default directory=/Users/qi/code/js/anonymous-chat creating instance
INFO  2025-12-20T16:12:57 +1ms service=project directory=/Users/qi/code/js/anonymous-chat fromDirectory
INFO  2025-12-20T16:12:57 +26ms service=default directory=/Users/qi/code/js/anonymous-chat bootstrapping
INFO  2025-12-20T16:12:57 +3ms service=config path=/Users/qi/.config/opencode/config.json loading
INFO  2025-12-20T16:12:57 +0ms service=config path=/Users/qi/.config/opencode/opencode.json loading
INFO  2025-12-20T16:12:57 +0ms service=config path=/Users/qi/.config/opencode/opencode.jsonc loading
INFO  2025-12-20T16:12:57 +5ms service=bun cmd=["/opt/homebrew/Cellar/opencode/1.0.174/libexec/lib/node_modules/opencode-ai/node_modules/opencode-darwin-arm64/bin/opencode","add","@opencode-ai/plugin@1.0.174","--exact"] cwd=/Users/qi/.config/opencode running
INFO  2025-12-20T16:12:57 +16ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd)

installed @opencode-ai/plugin@1.0.174

[9.00ms] done
 stderr=Saved lockfile
 done
INFO  2025-12-20T16:12:57 +3ms service=plugin path=opencode-copilot-auth@0.0.9 loading plugin
INFO  2025-12-20T16:12:57 +6ms service=plugin path=opencode-anthropic-auth@0.0.5 loading plugin
INFO  2025-12-20T16:12:57 +0ms service=bun pkg=opencode-anthropic-auth version=0.0.5 installing package using Bun's default registry resolution
INFO  2025-12-20T16:12:57 +0ms service=bun cmd=["/opt/homebrew/Cellar/opencode/1.0.174/libexec/lib/node_modules/opencode-ai/node_modules/opencode-darwin-arm64/bin/opencode","add","--force","--exact","--cwd","/Users/qi/.cache/opencode","opencode-anthropic-auth@0.0.5"] cwd=/Users/qi/.cache/opencode running

after 4 minites, it finally finished:

logs of 4 minutes later
INFO  2025-12-20T16:12:57 +0ms service=bun cmd=["/opt/homebrew/Cellar/opencode/1.0.174/libexec/lib/node_modules/opencode-ai/node_modules/opencode-darwin-arm64/bin/opencode","add","--force","--exact","--cwd","/Users/qi/.cache/opencode","opencode-anthropic-auth@0.0.5"] cwd=/Users/qi/.cache/opencode running
INFO  2025-12-20T16:16:57 +240367ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd)

+ opencode-copilot-auth@0.0.9

installed opencode-anthropic-auth@0.0.5

14 packages installed [240.36s]
 stderr=Resolving dependencies
Resolved, downloaded and extracted [3]
Saved lockfile
 done
INFO  2025-12-20T16:16:57 +33ms service=bus type=* subscribing
INFO  2025-12-20T16:16:57 +0ms service=bus type=session.updated subscribing
INFO  2025-12-20T16:16:57 +0ms service=bus type=message.updated subscribing
INFO  2025-12-20T16:16:57 +0ms service=bus type=message.part.updated subscribing
INFO  2025-12-20T16:16:57 +0ms service=bus type=session.updated subscribing
INFO  2025-12-20T16:16:57 +0ms service=bus type=message.updated subscribing
INFO  2025-12-20T16:16:57 +0ms service=bus type=message.part.updated subscribing
INFO  2025-12-20T16:16:57 +0ms service=bus type=session.diff subscribing
INFO  2025-12-20T16:16:57 +1ms service=format init
INFO  2025-12-20T16:16:57 +0ms service=bus type=file.edited subscribing
INFO  2025-12-20T16:16:57 +0ms service=lsp serverIds=deno, typescript, vue, eslint, oxlint, biome, gopls, ruby-lsp, pyright, elixir-ls, zls, csharp, fsharp, sourcekit-lsp, rust, clangd, svelte, astro, jdtls, yaml-ls, lua-ls, php intelephense, dart, ocaml-lsp, bash, terraform, texlab, dockerfile, gleam enabled LSP servers
INFO  2025-12-20T16:16:57 +0ms service=file.watcher init
INFO  2025-12-20T16:16:57 +2ms service=bus type=command.executed subscribing
INFO  2025-12-20T16:16:57 +1ms service=file.watcher platform=darwin backend=fs-events watcher backend
INFO  2025-12-20T16:16:57 +48ms service=vcs branch=main initialized
INFO  2025-12-20T16:16:57 +0ms service=bus type=file.watcher.updated subscribing
INFO  2025-12-20T16:16:57 +434ms service=server method=POST path=/session request
INFO  2025-12-20T16:16:57 +0ms service=server status=started method=POST path=/session request
INFO  2025-12-20T16:16:57 +3ms service=session id=ses_4c373379fffem75HqRPE2S6S29 version=1.0.174 projectID=983ca79f04d6ba3e6cbe80bb36d7597515e3b971 directory=/Users/qi/code/js/anonymous-chat title=New session - 2025-12-20T16:16:57.953Z time={"created":1766247417953,"updated":1766247417953} created
INFO  2025-12-20T16:16:57 +1ms service=bus type=session.created publishing
INFO  2025-12-20T16:16:57 +0ms service=bus type=session.updated publishing
INFO  2025-12-20T16:16:57 +3ms service=server status=completed duration=6 method=POST path=/session request
INFO  2025-12-20T16:16:57 +3ms service=server method=GET path=/config request
INFO  2025-12-20T16:16:57 +1ms service=server status=started method=GET path=/config request
INFO  2025-12-20T16:16:57 +0ms service=server status=completed duration=0 method=GET path=/config request
INFO  2025-12-20T16:16:57 +5ms service=server method=GET path=/event request
INFO  2025-12-20T16:16:57 +0ms service=server status=started method=GET path=/event request
INFO  2025-12-20T16:16:57 +0ms service=server event connected
INFO  2025-12-20T16:16:57 +3ms service=bus type=* subscribing
INFO  2025-12-20T16:16:57 +0ms service=server status=completed duration=3 method=GET path=/event request
INFO  2025-12-20T16:16:57 +7ms service=server method=POST path=/session/ses_4c373379fffem75HqRPE2S6S29/message request
INFO  2025-12-20T16:16:57 +0ms service=server status=started method=POST path=/session/ses_4c373379fffem75HqRPE2S6S29/message request
INFO  2025-12-20T16:16:57 +3ms service=server status=completed duration=3 method=POST path=/session/ses_4c373379fffem75HqRPE2S6S29/message request
INFO  2025-12-20T16:16:57 +8ms service=provider status=started state
INFO  2025-12-20T16:16:57 +4ms service=models.dev file={} refreshing
INFO  2025-12-20T16:16:57 +8ms service=provider init
INFO  2025-12-20T16:16:58 +5ms service=provider providerID=github-copilot found
INFO  2025-12-20T16:16:58 +1ms service=provider providerID=opencode found
INFO  2025-12-20T16:16:58 +0ms service=provider status=completed duration=18 state
INFO  2025-12-20T16:16:58 +3ms service=bus type=message.updated publishing
INFO  2025-12-20T16:16:58 +2ms service=bus type=message.part.updated publishing
INFO  2025-12-20T16:16:58 +1ms service=bus type=session.updated publishing
INFO  2025-12-20T16:16:58 +1ms service=bus type=session.status publishing
INFO  2025-12-20T16:16:58 +1ms service=session.prompt step=0 sessionID=ses_4c373379fffem75HqRPE2S6S29 loop
INFO  2025-12-20T16:16:58 +5ms service=llm providerID=opencode modelID=gpt-5-nano sessionID=ses_4c373379fffem75HqRPE2S6S29 small=true agent=title stream
INFO  2025-12-20T16:16:58 +0ms service=provider status=started providerID=opencode getSDK
INFO  2025-12-20T16:16:58 +0ms service=bus type=message.updated publishing
INFO  2025-12-20T16:16:58 +1ms service=provider providerID=opencode pkg=@ai-sdk/openai using bundled provider
INFO  2025-12-20T16:16:58 +0ms service=provider status=completed duration=1 providerID=opencode getSDK
INFO  2025-12-20T16:16:58 +0ms service=session.prompt status=started resolveTools
INFO  2025-12-20T16:16:58 +2ms service=llm providerID=opencode modelID=gpt-5-nano sessionID=ses_4c373379fffem75HqRPE2S6S29 small=true agent=title params={"options":{"reasoningEffort":"minimal","promptCacheKey":"ses_4c373379fffem75HqRPE2S6S29","include":["reasoning.encrypted_content"],"reasoningSummary":"auto"}} params
INFO  2025-12-20T16:16:58 +10ms service=tool.registry status=started invalid
INFO  2025-12-20T16:16:58 +0ms service=tool.registry status=started bash
INFO  2025-12-20T16:16:58 +0ms service=bash-tool shell=/bin/zsh bash tool using shell
INFO  2025-12-20T16:16:58 +1ms service=tool.registry status=started read
INFO  2025-12-20T16:16:58 +0ms service=tool.registry status=started glob
INFO  2025-12-20T16:16:58 +0ms service=tool.registry status=started grep
INFO  2025-12-20T16:16:58 +0ms service=tool.registry status=started list
INFO  2025-12-20T16:16:58 +0ms service=tool.registry status=started edit
INFO  2025-12-20T16:16:58 +0ms service=tool.registry status=started write
INFO  2025-12-20T16:16:58 +0ms service=tool.registry status=started task
INFO  2025-12-20T16:16:58 +0ms service=tool.registry status=started webfetch
INFO  2025-12-20T16:16:58 +0ms service=tool.registry status=started todowrite
INFO  2025-12-20T16:16:58 +0ms service=tool.registry status=started todoread
INFO  2025-12-20T16:16:58 +0ms service=tool.registry status=completed duration=1 invalid
INFO  2025-12-20T16:16:58 +0ms service=tool.registry status=completed duration=1 read
INFO  2025-12-20T16:16:58 +0ms service=tool.registry status=completed duration=0 glob
INFO  2025-12-20T16:16:58 +0ms service=tool.registry status=completed duration=0 grep
INFO  2025-12-20T16:16:58 +0ms service=tool.registry status=completed duration=0 list
INFO  2025-12-20T16:16:58 +0ms service=tool.registry status=completed duration=0 edit
INFO  2025-12-20T16:16:58 +0ms service=tool.registry status=completed duration=0 write
INFO  2025-12-20T16:16:58 +0ms service=tool.registry status=completed duration=0 webfetch
INFO  2025-12-20T16:16:58 +0ms service=tool.registry status=completed duration=0 todowrite
INFO  2025-12-20T16:16:58 +0ms service=tool.registry status=completed duration=0 todoread
INFO  2025-12-20T16:16:58 +0ms service=tool.registry status=completed duration=1 bash
INFO  2025-12-20T16:16:58 +0ms service=tool.registry status=completed duration=0 task
INFO  2025-12-20T16:16:58 +3ms service=mcp key=context7 type=remote found
INFO  2025-12-20T16:16:58 +0ms service=mcp key=playwright type=local found
ERROR 2025-12-20T16:16:58 +923ms service=acp-command promise={} reason=NotFoundError Unhandled rejection
ERROR 2025-12-20T16:16:58 +0ms service=default e=NotFoundError rejection
INFO  2025-12-20T16:16:59 +127ms service=mcp key=playwright toolCount=22 create() successfully created client
INFO  2025-12-20T16:16:59 +54ms service=mcp key=context7 transport=StreamableHTTP connected
INFO  2025-12-20T16:16:59 +556ms service=mcp key=context7 toolCount=2 create() successfully created client
INFO  2025-12-20T16:16:59 +233ms service=bus type=session.updated publishing
INFO  2025-12-20T16:17:00 +351ms service=session.prompt status=completed duration=2260 resolveTools
INFO  2025-12-20T16:17:00 +11ms service=ripgrep cwd=/Users/qi/code/js/anonymous-chat limit=200 tree
INFO  2025-12-20T16:17:00 +13ms service=bus type=message.updated publishing
INFO  2025-12-20T16:17:00 +1ms service=llm providerID=opencode modelID=gpt-5-nano sessionID=ses_4c373379fffem75HqRPE2S6S29 small=true agent=title stream
INFO  2025-12-20T16:17:00 +0ms service=llm providerID=opencode modelID=gpt-5-nano sessionID=ses_4c373379fffem75HqRPE2S6S29 small=true agent=title params={"options":{"reasoningEffort":"minimal","promptCacheKey":"ses_4c373379fffem75HqRPE2S6S29","include":["reasoning.encrypted_content"],"reasoningSummary":"auto"}} params
INFO  2025-12-20T16:17:00 +3ms service=bus type=session.updated publishing
INFO  2025-12-20T16:17:00 +1ms service=bus type=session.diff publishing
INFO  2025-12-20T16:17:00 +9ms service=session.processor process
INFO  2025-12-20T16:17:00 +0ms service=llm providerID=github-copilot modelID=gemini-3-pro-preview sessionID=ses_4c373379fffem75HqRPE2S6S29 small=false agent=build stream
INFO  2025-12-20T16:17:00 +0ms service=provider status=started providerID=github-copilot getSDK
INFO  2025-12-20T16:17:00 +0ms service=provider providerID=github-copilot pkg=@ai-sdk/github-copilot using bundled provider
INFO  2025-12-20T16:17:00 +0ms service=provider status=completed duration=0 providerID=github-copilot getSDK
INFO  2025-12-20T16:17:00 +1ms service=llm providerID=github-copilot modelID=gemini-3-pro-preview sessionID=ses_4c373379fffem75HqRPE2S6S29 small=false agent=build params={"temperature":1,"options":{}} params
INFO  2025-12-20T16:17:00 +1ms service=bus type=session.status publishing
ERROR 2025-12-20T16:17:00 +612ms service=acp-command promise={} reason=NotFoundError Unhandled rejection
ERROR 2025-12-20T16:17:00 +0ms service=default e=NotFoundError rejection
INFO  2025-12-20T16:17:01 +986ms service=session.summary title=Greeting handling title
INFO  2025-12-20T16:17:01 +12ms service=bus type=message.updated publishing
ERROR 2025-12-20T16:17:02 +1008ms service=acp-command promise={} reason=NotFoundError Unhandled rejection
ERROR 2025-12-20T16:17:02 +0ms service=default e=NotFoundError rejection
INFO  2025-12-20T16:17:05 +2343ms service=snapshot hash=f51e11412b0ba24cf89db61504f90d111713cfdd
 cwd=/Users/qi/code/js/anonymous-chat git=/Users/qi/.local/share/opencode/snapshot/983ca79f04d6ba3e6cbe80bb36d7597515e3b971 tracking
INFO  2025-12-20T16:17:05 +1ms service=bus type=message.part.updated publishing
INFO  2025-12-20T16:17:05 +310ms service=bus type=message.part.updated publishing
INFO  2025-12-20T16:17:05 +6ms service=bus type=message.part.updated publishing

Hello. I see you're working on the `anonymous-chat` project. How can I assist you with your codebase today?

INFO  2025-12-20T16:17:05 +64ms service=snapshot hash=f51e11412b0ba24cf89db61504f90d111713cfdd
 cwd=/Users/qi/code/js/anonymous-chat git=/Users/qi/.local/share/opencode/snapshot/983ca79f04d6ba3e6cbe80bb36d7597515e3b971 tracking
INFO  2025-12-20T16:17:05 +1ms service=bus type=message.part.updated publishing
INFO  2025-12-20T16:17:05 +1ms service=bus type=message.updated publishing
INFO  2025-12-20T16:17:05 +30ms service=bus type=message.updated publishing
INFO  2025-12-20T16:17:05 +0ms service=bus type=session.status publishing
INFO  2025-12-20T16:17:05 +0ms service=session.prompt step=1 sessionID=ses_4c373379fffem75HqRPE2S6S29 loop
INFO  2025-12-20T16:17:05 +2ms service=session.prompt sessionID=ses_4c373379fffem75HqRPE2S6S29 exiting loop
INFO  2025-12-20T16:17:05 +0ms service=session.compaction pruning
INFO  2025-12-20T16:17:05 +1ms service=session.prompt sessionID=ses_4c373379fffem75HqRPE2S6S29 cancel
INFO  2025-12-20T16:17:05 +1ms service=bus type=session.status publishing
INFO  2025-12-20T16:17:05 +0ms service=bus type=session.idle publishing
INFO  2025-12-20T16:17:05 +0ms service=session.compaction pruned=0 total=0 found
INFO  2025-12-20T16:17:05 +1ms service=default directory=/Users/qi/code/js/anonymous-chat disposing instance
INFO  2025-12-20T16:17:05 +0ms service=state key=/Users/qi/code/js/anonymous-chat waiting for state disposal to complete
INFO  2025-12-20T16:17:05 +0ms service=bus type=file.watcher.updated unsubscribing
INFO  2025-12-20T16:17:05 +1ms service=state key=/Users/qi/code/js/anonymous-chat state disposal completed

After that opencode opens immediately and I believe it's because there are caches inside ~/.cache/opencode/node_modules .


As a contrast, I remove the cache and unset proxy then run:

logs of opencode run without stucking
rm -rf ~/.cache/opencode && proxy unset && echo $HTTPS_PROXY $HTTP_PROXY $ALL_PROXY
# empty, no proxy 

opencode run hello --print-logs


INFO  2025-12-20T16:24:40 +356ms service=default version=1.0.174 args=["run","hello","--print-logs"] opencode
INFO  2025-12-20T16:24:40 +1ms service=default directory=/Users/qi/code/js/anonymous-chat creating instance
INFO  2025-12-20T16:24:40 +0ms service=project directory=/Users/qi/code/js/anonymous-chat fromDirectory
INFO  2025-12-20T16:24:40 +28ms service=default directory=/Users/qi/code/js/anonymous-chat bootstrapping
INFO  2025-12-20T16:24:40 +2ms service=config path=/Users/qi/.config/opencode/config.json loading
INFO  2025-12-20T16:24:40 +0ms service=config path=/Users/qi/.config/opencode/opencode.json loading
INFO  2025-12-20T16:24:40 +0ms service=config path=/Users/qi/.config/opencode/opencode.jsonc loading
INFO  2025-12-20T16:24:40 +5ms service=bun cmd=["/opt/homebrew/Cellar/opencode/1.0.174/libexec/lib/node_modules/opencode-ai/node_modules/opencode-darwin-arm64/bin/opencode","add","@opencode-ai/plugin@1.0.174","--exact"] cwd=/Users/qi/.config/opencode running
INFO  2025-12-20T16:24:40 +21ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd)

installed @opencode-ai/plugin@1.0.174

[13.00ms] done
 stderr=Saved lockfile
 done
INFO  2025-12-20T16:24:40 +2ms service=plugin path=opencode-copilot-auth@0.0.9 loading plugin
INFO  2025-12-20T16:24:40 +2ms service=bun pkg=opencode-copilot-auth version=0.0.9 installing package using Bun's default registry resolution
INFO  2025-12-20T16:24:40 +0ms service=bun cmd=["/opt/homebrew/Cellar/opencode/1.0.174/libexec/lib/node_modules/opencode-ai/node_modules/opencode-darwin-arm64/bin/opencode","add","--force","--exact","--cwd","/Users/qi/.cache/opencode","opencode-copilot-auth@0.0.9"] cwd=/Users/qi/.cache/opencode running
INFO  2025-12-20T16:24:40 +8ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd)

installed opencode-copilot-auth@0.0.9

1 package installed [3.00ms]
 stderr=Saved lockfile
 done
INFO  2025-12-20T16:24:40 +6ms service=plugin path=opencode-anthropic-auth@0.0.5 loading plugin
INFO  2025-12-20T16:24:40 +1ms service=bun pkg=opencode-anthropic-auth version=0.0.5 installing package using Bun's default registry resolution
INFO  2025-12-20T16:24:40 +0ms service=bun cmd=["/opt/homebrew/Cellar/opencode/1.0.174/libexec/lib/node_modules/opencode-ai/node_modules/opencode-darwin-arm64/bin/opencode","add","--force","--exact","--cwd","/Users/qi/.cache/opencode","opencode-anthropic-auth@0.0.5"] cwd=/Users/qi/.cache/opencode running
INFO  2025-12-20T16:24:41 +361ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd)

+ opencode-copilot-auth@0.0.9

installed opencode-anthropic-auth@0.0.5

14 packages installed [355.00ms]
 stderr=Resolving dependencies
Resolved, downloaded and extracted [3]
Saved lockfile
 done
INFO  2025-12-20T16:24:41 +25ms service=bus type=* subscribing
INFO  2025-12-20T16:24:41 +0ms service=bus type=session.updated subscribing
INFO  2025-12-20T16:24:41 +0ms service=bus type=message.updated subscribing
INFO  2025-12-20T16:24:41 +0ms service=bus type=message.part.updated subscribing
INFO  2025-12-20T16:24:41 +0ms service=bus type=session.updated subscribing
INFO  2025-12-20T16:24:41 +0ms service=bus type=message.updated subscribing
INFO  2025-12-20T16:24:41 +0ms service=bus type=message.part.updated subscribing
INFO  2025-12-20T16:24:41 +0ms service=bus type=session.diff subscribing
INFO  2025-12-20T16:24:41 +0ms service=format init
INFO  2025-12-20T16:24:41 +0ms service=bus type=file.edited subscribing
INFO  2025-12-20T16:24:41 +1ms service=lsp serverIds=deno, typescript, vue, eslint, oxlint, biome, gopls, ruby-lsp, pyright, elixir-ls, zls, csharp, fsharp, sourcekit-lsp, rust, clangd, svelte, astro, jdtls, yaml-ls, lua-ls, php intelephense, dart, ocaml-lsp, bash, terraform, texlab, dockerfile, gleam enabled LSP servers
INFO  2025-12-20T16:24:41 +0ms service=file.watcher init
INFO  2025-12-20T16:24:41 +1ms service=bus type=command.executed subscribing
INFO  2025-12-20T16:24:41 +0ms service=file.watcher platform=darwin backend=fs-events watcher backend
INFO  2025-12-20T16:24:41 +45ms service=vcs branch=main initialized
INFO  2025-12-20T16:24:41 +0ms service=bus type=file.watcher.updated subscribing
INFO  2025-12-20T16:24:41 +9ms service=server method=POST path=/session request
INFO  2025-12-20T16:24:41 +0ms service=server status=started method=POST path=/session request
INFO  2025-12-20T16:24:41 +2ms service=session id=ses_4c36c267fffejMSKl5tdK60V42 version=1.0.174 projectID=983ca79f04d6ba3e6cbe80bb36d7597515e3b971 directory=/Users/qi/code/js/anonymous-chat title=New session - 2025-12-20T16:24:41.088Z time={"created":1766247881088,"updated":1766247881088} created
INFO  2025-12-20T16:24:41 +1ms service=bus type=session.created publishing
INFO  2025-12-20T16:24:41 +0ms service=bus type=session.updated publishing
INFO  2025-12-20T16:24:41 +1ms service=server status=completed duration=4 method=POST path=/session request
INFO  2025-12-20T16:24:41 +197ms service=server method=GET path=/config request
INFO  2025-12-20T16:24:41 +0ms service=server status=started method=GET path=/config request
INFO  2025-12-20T16:24:41 +0ms service=server status=completed duration=0 method=GET path=/config request
INFO  2025-12-20T16:24:41 +4ms service=server method=GET path=/event request
INFO  2025-12-20T16:24:41 +0ms service=server status=started method=GET path=/event request
INFO  2025-12-20T16:24:41 +0ms service=server event connected
INFO  2025-12-20T16:24:41 +2ms service=bus type=* subscribing
INFO  2025-12-20T16:24:41 +1ms service=server status=completed duration=3 method=GET path=/event request
INFO  2025-12-20T16:24:41 +1ms service=server method=POST path=/session/ses_4c36c267fffejMSKl5tdK60V42/message request
INFO  2025-12-20T16:24:41 +0ms service=server status=started method=POST path=/session/ses_4c36c267fffejMSKl5tdK60V42/message request
INFO  2025-12-20T16:24:41 +2ms service=server status=completed duration=2 method=POST path=/session/ses_4c36c267fffejMSKl5tdK60V42/message request
INFO  2025-12-20T16:24:41 +4ms service=provider status=started state
INFO  2025-12-20T16:24:41 +4ms service=models.dev file={} refreshing
INFO  2025-12-20T16:24:41 +7ms service=provider init
INFO  2025-12-20T16:24:41 +4ms service=provider providerID=github-copilot found
INFO  2025-12-20T16:24:41 +0ms service=provider providerID=opencode found
INFO  2025-12-20T16:24:41 +0ms service=provider status=completed duration=15 state
INFO  2025-12-20T16:24:41 +2ms service=bus type=message.updated publishing
INFO  2025-12-20T16:24:41 +2ms service=bus type=message.part.updated publishing
INFO  2025-12-20T16:24:41 +1ms service=bus type=session.updated publishing
INFO  2025-12-20T16:24:41 +1ms service=bus type=session.status publishing
INFO  2025-12-20T16:24:41 +0ms service=session.prompt step=0 sessionID=ses_4c36c267fffejMSKl5tdK60V42 loop
INFO  2025-12-20T16:24:41 +4ms service=llm providerID=opencode modelID=gpt-5-nano sessionID=ses_4c36c267fffejMSKl5tdK60V42 small=true agent=title stream
INFO  2025-12-20T16:24:41 +0ms service=provider status=started providerID=opencode getSDK
INFO  2025-12-20T16:24:41 +0ms service=bus type=message.updated publishing
INFO  2025-12-20T16:24:41 +1ms service=provider providerID=opencode pkg=@ai-sdk/openai using bundled provider
INFO  2025-12-20T16:24:41 +0ms service=provider status=completed duration=1 providerID=opencode getSDK
INFO  2025-12-20T16:24:41 +0ms service=session.prompt status=started resolveTools
INFO  2025-12-20T16:24:41 +2ms service=llm providerID=opencode modelID=gpt-5-nano sessionID=ses_4c36c267fffejMSKl5tdK60V42 small=true agent=title params={"options":{"reasoningEffort":"minimal","promptCacheKey":"ses_4c36c267fffejMSKl5tdK60V42","include":["reasoning.encrypted_content"],"reasoningSummary":"auto"}} params
INFO  2025-12-20T16:24:41 +9ms service=tool.registry status=started invalid
INFO  2025-12-20T16:24:41 +0ms service=tool.registry status=started bash
INFO  2025-12-20T16:24:41 +0ms service=bash-tool shell=/bin/zsh bash tool using shell
INFO  2025-12-20T16:24:41 +0ms service=tool.registry status=started read
INFO  2025-12-20T16:24:41 +0ms service=tool.registry status=started glob
INFO  2025-12-20T16:24:41 +0ms service=tool.registry status=started grep
INFO  2025-12-20T16:24:41 +0ms service=tool.registry status=started list
INFO  2025-12-20T16:24:41 +0ms service=tool.registry status=started edit
INFO  2025-12-20T16:24:41 +0ms service=tool.registry status=started write
INFO  2025-12-20T16:24:41 +0ms service=tool.registry status=started task
INFO  2025-12-20T16:24:41 +0ms service=tool.registry status=started webfetch
INFO  2025-12-20T16:24:41 +0ms service=tool.registry status=started todowrite
INFO  2025-12-20T16:24:41 +0ms service=tool.registry status=started todoread
INFO  2025-12-20T16:24:41 +0ms service=tool.registry status=completed duration=0 invalid
INFO  2025-12-20T16:24:41 +0ms service=tool.registry status=completed duration=0 read
INFO  2025-12-20T16:24:41 +0ms service=tool.registry status=completed duration=0 glob
INFO  2025-12-20T16:24:41 +0ms service=tool.registry status=completed duration=0 grep
INFO  2025-12-20T16:24:41 +0ms service=tool.registry status=completed duration=0 list
INFO  2025-12-20T16:24:41 +0ms service=tool.registry status=completed duration=0 edit
INFO  2025-12-20T16:24:41 +0ms service=tool.registry status=completed duration=0 write
INFO  2025-12-20T16:24:41 +0ms service=tool.registry status=completed duration=0 webfetch
INFO  2025-12-20T16:24:41 +0ms service=tool.registry status=completed duration=0 todowrite
INFO  2025-12-20T16:24:41 +0ms service=tool.registry status=completed duration=0 todoread
INFO  2025-12-20T16:24:41 +0ms service=tool.registry status=completed duration=0 bash
INFO  2025-12-20T16:24:41 +0ms service=tool.registry status=completed duration=0 task
INFO  2025-12-20T16:24:41 +3ms service=mcp key=context7 type=remote found
INFO  2025-12-20T16:24:41 +0ms service=mcp key=playwright type=local found
ERROR 2025-12-20T16:24:42 +750ms service=acp-command promise={} reason=NotFoundError Unhandled rejection
ERROR 2025-12-20T16:24:42 +0ms service=default e=NotFoundError rejection
INFO  2025-12-20T16:24:42 +58ms service=mcp key=context7 transport=StreamableHTTP connected
INFO  2025-12-20T16:24:42 +204ms service=mcp key=playwright toolCount=22 create() successfully created client
INFO  2025-12-20T16:24:42 +435ms service=mcp key=context7 toolCount=2 create() successfully created client
INFO  2025-12-20T16:24:42 +183ms service=session.prompt status=completed duration=1644 resolveTools
INFO  2025-12-20T16:24:42 +4ms service=ripgrep cwd=/Users/qi/code/js/anonymous-chat limit=200 tree
INFO  2025-12-20T16:24:42 +6ms service=bus type=message.updated publishing
INFO  2025-12-20T16:24:42 +0ms service=llm providerID=opencode modelID=gpt-5-nano sessionID=ses_4c36c267fffejMSKl5tdK60V42 small=true agent=title stream
INFO  2025-12-20T16:24:42 +0ms service=llm providerID=opencode modelID=gpt-5-nano sessionID=ses_4c36c267fffejMSKl5tdK60V42 small=true agent=title params={"options":{"reasoningEffort":"minimal","promptCacheKey":"ses_4c36c267fffejMSKl5tdK60V42","include":["reasoning.encrypted_content"],"reasoningSummary":"auto"}} params
INFO  2025-12-20T16:24:42 +2ms service=bus type=session.updated publishing
INFO  2025-12-20T16:24:42 +1ms service=bus type=session.diff publishing
INFO  2025-12-20T16:24:42 +8ms service=session.processor process
INFO  2025-12-20T16:24:42 +0ms service=llm providerID=github-copilot modelID=gemini-3-pro-preview sessionID=ses_4c36c267fffejMSKl5tdK60V42 small=false agent=build stream
INFO  2025-12-20T16:24:42 +0ms service=provider status=started providerID=github-copilot getSDK
INFO  2025-12-20T16:24:42 +0ms service=provider providerID=github-copilot pkg=@ai-sdk/github-copilot using bundled provider
INFO  2025-12-20T16:24:42 +0ms service=provider status=completed duration=0 providerID=github-copilot getSDK
INFO  2025-12-20T16:24:42 +1ms service=llm providerID=github-copilot modelID=gemini-3-pro-preview sessionID=ses_4c36c267fffejMSKl5tdK60V42 small=false agent=build params={"temperature":1,"options":{}} params
INFO  2025-12-20T16:24:42 +0ms service=bus type=session.status publishing
INFO  2025-12-20T16:24:43 +875ms service=server method=PUT path=/auth/github-copilot request
INFO  2025-12-20T16:24:43 +0ms service=server status=started method=PUT path=/auth/github-copilot request
INFO  2025-12-20T16:24:43 +2ms service=server status=completed duration=2 method=PUT path=/auth/github-copilot request
ERROR 2025-12-20T16:24:43 +117ms service=acp-command promise={} reason=NotFoundError Unhandled rejection
ERROR 2025-12-20T16:24:43 +0ms service=default e=NotFoundError rejection
INFO  2025-12-20T16:24:44 +201ms service=bus type=session.updated publishing
INFO  2025-12-20T16:24:44 +668ms service=session.summary title=Greeting message review title
INFO  2025-12-20T16:24:44 +1ms service=bus type=message.updated publishing
ERROR 2025-12-20T16:24:45 +335ms service=acp-command promise={} reason=NotFoundError Unhandled rejection
ERROR 2025-12-20T16:24:45 +1ms service=default e=NotFoundError rejection
INFO  2025-12-20T16:24:48 +3451ms service=snapshot hash=f51e11412b0ba24cf89db61504f90d111713cfdd
 cwd=/Users/qi/code/js/anonymous-chat git=/Users/qi/.local/share/opencode/snapshot/983ca79f04d6ba3e6cbe80bb36d7597515e3b971 tracking
INFO  2025-12-20T16:24:48 +1ms service=bus type=message.part.updated publishing
INFO  2025-12-20T16:24:48 +296ms service=bus type=message.part.updated publishing
INFO  2025-12-20T16:24:48 +1ms service=bus type=message.part.updated publishing

Hello! How can I help you with the `anonymous-chat` project today?

INFO  2025-12-20T16:24:48 +39ms service=snapshot hash=f51e11412b0ba24cf89db61504f90d111713cfdd
 cwd=/Users/qi/code/js/anonymous-chat git=/Users/qi/.local/share/opencode/snapshot/983ca79f04d6ba3e6cbe80bb36d7597515e3b971 tracking
INFO  2025-12-20T16:24:48 +1ms service=bus type=message.part.updated publishing
INFO  2025-12-20T16:24:48 +0ms service=bus type=message.updated publishing
INFO  2025-12-20T16:24:49 +29ms service=bus type=message.updated publishing
INFO  2025-12-20T16:24:49 +0ms service=bus type=session.status publishing
INFO  2025-12-20T16:24:49 +0ms service=session.prompt step=1 sessionID=ses_4c36c267fffejMSKl5tdK60V42 loop
INFO  2025-12-20T16:24:49 +2ms service=session.prompt sessionID=ses_4c36c267fffejMSKl5tdK60V42 exiting loop
INFO  2025-12-20T16:24:49 +0ms service=session.compaction pruning
INFO  2025-12-20T16:24:49 +1ms service=session.prompt sessionID=ses_4c36c267fffejMSKl5tdK60V42 cancel
INFO  2025-12-20T16:24:49 +0ms service=bus type=session.status publishing
INFO  2025-12-20T16:24:49 +0ms service=bus type=session.idle publishing
INFO  2025-12-20T16:24:49 +1ms service=default directory=/Users/qi/code/js/anonymous-chat disposing instance
INFO  2025-12-20T16:24:49 +0ms service=state key=/Users/qi/code/js/anonymous-chat waiting for state disposal to complete
INFO  2025-12-20T16:24:49 +1ms service=bus type=file.watcher.updated unsubscribing
INFO  2025-12-20T16:24:49 +1ms service=state key=/Users/qi/code/js/anonymous-chat state disposal completed

So the issue seems to be bun install when HTTP_PROXY is set. A workaround is to temporarily unset proxy, and run opencode, then set the proxy, opencode will use existing cahce ...

@daolanfler commented on GitHub (Dec 20, 2025): I encounter this issue too, here are the steps: Proxy: ``` ➜ echo $HTTPS_PROXY $HTTP_PROXY $ALL_PROXY http://127.0.0.1:7890 http://127.0.0.1:7890 socks5://127.0.0.1:7890 ``` Cache: ``` ➜ ls -al ~/.cache/opencode/node_modules total 0 drwxr-xr-x@ 3 qi staff 96 Dec 21 00:08 . drwxr-xr-x@ 6 qi staff 192 Dec 21 00:08 .. drwxr-xr-x@ 9 qi staff 288 Dec 21 00:08 opencode-copilot-auth ``` Run with `--print-logs`: : <details> <summary>logs of stucked at installing plugins? </summary> ``` ➜ opencode run hello --print-logs INFO 2025-12-20T16:12:57 +552ms service=default version=1.0.174 args=["run","hello","--print-logs"] opencode INFO 2025-12-20T16:12:57 +0ms service=default directory=/Users/qi/code/js/anonymous-chat creating instance INFO 2025-12-20T16:12:57 +1ms service=project directory=/Users/qi/code/js/anonymous-chat fromDirectory INFO 2025-12-20T16:12:57 +26ms service=default directory=/Users/qi/code/js/anonymous-chat bootstrapping INFO 2025-12-20T16:12:57 +3ms service=config path=/Users/qi/.config/opencode/config.json loading INFO 2025-12-20T16:12:57 +0ms service=config path=/Users/qi/.config/opencode/opencode.json loading INFO 2025-12-20T16:12:57 +0ms service=config path=/Users/qi/.config/opencode/opencode.jsonc loading INFO 2025-12-20T16:12:57 +5ms service=bun cmd=["/opt/homebrew/Cellar/opencode/1.0.174/libexec/lib/node_modules/opencode-ai/node_modules/opencode-darwin-arm64/bin/opencode","add","@opencode-ai/plugin@1.0.174","--exact"] cwd=/Users/qi/.config/opencode running INFO 2025-12-20T16:12:57 +16ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd) installed @opencode-ai/plugin@1.0.174 [9.00ms] done stderr=Saved lockfile done INFO 2025-12-20T16:12:57 +3ms service=plugin path=opencode-copilot-auth@0.0.9 loading plugin INFO 2025-12-20T16:12:57 +6ms service=plugin path=opencode-anthropic-auth@0.0.5 loading plugin INFO 2025-12-20T16:12:57 +0ms service=bun pkg=opencode-anthropic-auth version=0.0.5 installing package using Bun's default registry resolution INFO 2025-12-20T16:12:57 +0ms service=bun cmd=["/opt/homebrew/Cellar/opencode/1.0.174/libexec/lib/node_modules/opencode-ai/node_modules/opencode-darwin-arm64/bin/opencode","add","--force","--exact","--cwd","/Users/qi/.cache/opencode","opencode-anthropic-auth@0.0.5"] cwd=/Users/qi/.cache/opencode running ``` </details> after 4 minites, it finally finished: <details> <summary>logs of 4 minutes later</summary> ``` INFO 2025-12-20T16:12:57 +0ms service=bun cmd=["/opt/homebrew/Cellar/opencode/1.0.174/libexec/lib/node_modules/opencode-ai/node_modules/opencode-darwin-arm64/bin/opencode","add","--force","--exact","--cwd","/Users/qi/.cache/opencode","opencode-anthropic-auth@0.0.5"] cwd=/Users/qi/.cache/opencode running INFO 2025-12-20T16:16:57 +240367ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd) + opencode-copilot-auth@0.0.9 installed opencode-anthropic-auth@0.0.5 14 packages installed [240.36s] stderr=Resolving dependencies Resolved, downloaded and extracted [3] Saved lockfile done INFO 2025-12-20T16:16:57 +33ms service=bus type=* subscribing INFO 2025-12-20T16:16:57 +0ms service=bus type=session.updated subscribing INFO 2025-12-20T16:16:57 +0ms service=bus type=message.updated subscribing INFO 2025-12-20T16:16:57 +0ms service=bus type=message.part.updated subscribing INFO 2025-12-20T16:16:57 +0ms service=bus type=session.updated subscribing INFO 2025-12-20T16:16:57 +0ms service=bus type=message.updated subscribing INFO 2025-12-20T16:16:57 +0ms service=bus type=message.part.updated subscribing INFO 2025-12-20T16:16:57 +0ms service=bus type=session.diff subscribing INFO 2025-12-20T16:16:57 +1ms service=format init INFO 2025-12-20T16:16:57 +0ms service=bus type=file.edited subscribing INFO 2025-12-20T16:16:57 +0ms service=lsp serverIds=deno, typescript, vue, eslint, oxlint, biome, gopls, ruby-lsp, pyright, elixir-ls, zls, csharp, fsharp, sourcekit-lsp, rust, clangd, svelte, astro, jdtls, yaml-ls, lua-ls, php intelephense, dart, ocaml-lsp, bash, terraform, texlab, dockerfile, gleam enabled LSP servers INFO 2025-12-20T16:16:57 +0ms service=file.watcher init INFO 2025-12-20T16:16:57 +2ms service=bus type=command.executed subscribing INFO 2025-12-20T16:16:57 +1ms service=file.watcher platform=darwin backend=fs-events watcher backend INFO 2025-12-20T16:16:57 +48ms service=vcs branch=main initialized INFO 2025-12-20T16:16:57 +0ms service=bus type=file.watcher.updated subscribing INFO 2025-12-20T16:16:57 +434ms service=server method=POST path=/session request INFO 2025-12-20T16:16:57 +0ms service=server status=started method=POST path=/session request INFO 2025-12-20T16:16:57 +3ms service=session id=ses_4c373379fffem75HqRPE2S6S29 version=1.0.174 projectID=983ca79f04d6ba3e6cbe80bb36d7597515e3b971 directory=/Users/qi/code/js/anonymous-chat title=New session - 2025-12-20T16:16:57.953Z time={"created":1766247417953,"updated":1766247417953} created INFO 2025-12-20T16:16:57 +1ms service=bus type=session.created publishing INFO 2025-12-20T16:16:57 +0ms service=bus type=session.updated publishing INFO 2025-12-20T16:16:57 +3ms service=server status=completed duration=6 method=POST path=/session request INFO 2025-12-20T16:16:57 +3ms service=server method=GET path=/config request INFO 2025-12-20T16:16:57 +1ms service=server status=started method=GET path=/config request INFO 2025-12-20T16:16:57 +0ms service=server status=completed duration=0 method=GET path=/config request INFO 2025-12-20T16:16:57 +5ms service=server method=GET path=/event request INFO 2025-12-20T16:16:57 +0ms service=server status=started method=GET path=/event request INFO 2025-12-20T16:16:57 +0ms service=server event connected INFO 2025-12-20T16:16:57 +3ms service=bus type=* subscribing INFO 2025-12-20T16:16:57 +0ms service=server status=completed duration=3 method=GET path=/event request INFO 2025-12-20T16:16:57 +7ms service=server method=POST path=/session/ses_4c373379fffem75HqRPE2S6S29/message request INFO 2025-12-20T16:16:57 +0ms service=server status=started method=POST path=/session/ses_4c373379fffem75HqRPE2S6S29/message request INFO 2025-12-20T16:16:57 +3ms service=server status=completed duration=3 method=POST path=/session/ses_4c373379fffem75HqRPE2S6S29/message request INFO 2025-12-20T16:16:57 +8ms service=provider status=started state INFO 2025-12-20T16:16:57 +4ms service=models.dev file={} refreshing INFO 2025-12-20T16:16:57 +8ms service=provider init INFO 2025-12-20T16:16:58 +5ms service=provider providerID=github-copilot found INFO 2025-12-20T16:16:58 +1ms service=provider providerID=opencode found INFO 2025-12-20T16:16:58 +0ms service=provider status=completed duration=18 state INFO 2025-12-20T16:16:58 +3ms service=bus type=message.updated publishing INFO 2025-12-20T16:16:58 +2ms service=bus type=message.part.updated publishing INFO 2025-12-20T16:16:58 +1ms service=bus type=session.updated publishing INFO 2025-12-20T16:16:58 +1ms service=bus type=session.status publishing INFO 2025-12-20T16:16:58 +1ms service=session.prompt step=0 sessionID=ses_4c373379fffem75HqRPE2S6S29 loop INFO 2025-12-20T16:16:58 +5ms service=llm providerID=opencode modelID=gpt-5-nano sessionID=ses_4c373379fffem75HqRPE2S6S29 small=true agent=title stream INFO 2025-12-20T16:16:58 +0ms service=provider status=started providerID=opencode getSDK INFO 2025-12-20T16:16:58 +0ms service=bus type=message.updated publishing INFO 2025-12-20T16:16:58 +1ms service=provider providerID=opencode pkg=@ai-sdk/openai using bundled provider INFO 2025-12-20T16:16:58 +0ms service=provider status=completed duration=1 providerID=opencode getSDK INFO 2025-12-20T16:16:58 +0ms service=session.prompt status=started resolveTools INFO 2025-12-20T16:16:58 +2ms service=llm providerID=opencode modelID=gpt-5-nano sessionID=ses_4c373379fffem75HqRPE2S6S29 small=true agent=title params={"options":{"reasoningEffort":"minimal","promptCacheKey":"ses_4c373379fffem75HqRPE2S6S29","include":["reasoning.encrypted_content"],"reasoningSummary":"auto"}} params INFO 2025-12-20T16:16:58 +10ms service=tool.registry status=started invalid INFO 2025-12-20T16:16:58 +0ms service=tool.registry status=started bash INFO 2025-12-20T16:16:58 +0ms service=bash-tool shell=/bin/zsh bash tool using shell INFO 2025-12-20T16:16:58 +1ms service=tool.registry status=started read INFO 2025-12-20T16:16:58 +0ms service=tool.registry status=started glob INFO 2025-12-20T16:16:58 +0ms service=tool.registry status=started grep INFO 2025-12-20T16:16:58 +0ms service=tool.registry status=started list INFO 2025-12-20T16:16:58 +0ms service=tool.registry status=started edit INFO 2025-12-20T16:16:58 +0ms service=tool.registry status=started write INFO 2025-12-20T16:16:58 +0ms service=tool.registry status=started task INFO 2025-12-20T16:16:58 +0ms service=tool.registry status=started webfetch INFO 2025-12-20T16:16:58 +0ms service=tool.registry status=started todowrite INFO 2025-12-20T16:16:58 +0ms service=tool.registry status=started todoread INFO 2025-12-20T16:16:58 +0ms service=tool.registry status=completed duration=1 invalid INFO 2025-12-20T16:16:58 +0ms service=tool.registry status=completed duration=1 read INFO 2025-12-20T16:16:58 +0ms service=tool.registry status=completed duration=0 glob INFO 2025-12-20T16:16:58 +0ms service=tool.registry status=completed duration=0 grep INFO 2025-12-20T16:16:58 +0ms service=tool.registry status=completed duration=0 list INFO 2025-12-20T16:16:58 +0ms service=tool.registry status=completed duration=0 edit INFO 2025-12-20T16:16:58 +0ms service=tool.registry status=completed duration=0 write INFO 2025-12-20T16:16:58 +0ms service=tool.registry status=completed duration=0 webfetch INFO 2025-12-20T16:16:58 +0ms service=tool.registry status=completed duration=0 todowrite INFO 2025-12-20T16:16:58 +0ms service=tool.registry status=completed duration=0 todoread INFO 2025-12-20T16:16:58 +0ms service=tool.registry status=completed duration=1 bash INFO 2025-12-20T16:16:58 +0ms service=tool.registry status=completed duration=0 task INFO 2025-12-20T16:16:58 +3ms service=mcp key=context7 type=remote found INFO 2025-12-20T16:16:58 +0ms service=mcp key=playwright type=local found ERROR 2025-12-20T16:16:58 +923ms service=acp-command promise={} reason=NotFoundError Unhandled rejection ERROR 2025-12-20T16:16:58 +0ms service=default e=NotFoundError rejection INFO 2025-12-20T16:16:59 +127ms service=mcp key=playwright toolCount=22 create() successfully created client INFO 2025-12-20T16:16:59 +54ms service=mcp key=context7 transport=StreamableHTTP connected INFO 2025-12-20T16:16:59 +556ms service=mcp key=context7 toolCount=2 create() successfully created client INFO 2025-12-20T16:16:59 +233ms service=bus type=session.updated publishing INFO 2025-12-20T16:17:00 +351ms service=session.prompt status=completed duration=2260 resolveTools INFO 2025-12-20T16:17:00 +11ms service=ripgrep cwd=/Users/qi/code/js/anonymous-chat limit=200 tree INFO 2025-12-20T16:17:00 +13ms service=bus type=message.updated publishing INFO 2025-12-20T16:17:00 +1ms service=llm providerID=opencode modelID=gpt-5-nano sessionID=ses_4c373379fffem75HqRPE2S6S29 small=true agent=title stream INFO 2025-12-20T16:17:00 +0ms service=llm providerID=opencode modelID=gpt-5-nano sessionID=ses_4c373379fffem75HqRPE2S6S29 small=true agent=title params={"options":{"reasoningEffort":"minimal","promptCacheKey":"ses_4c373379fffem75HqRPE2S6S29","include":["reasoning.encrypted_content"],"reasoningSummary":"auto"}} params INFO 2025-12-20T16:17:00 +3ms service=bus type=session.updated publishing INFO 2025-12-20T16:17:00 +1ms service=bus type=session.diff publishing INFO 2025-12-20T16:17:00 +9ms service=session.processor process INFO 2025-12-20T16:17:00 +0ms service=llm providerID=github-copilot modelID=gemini-3-pro-preview sessionID=ses_4c373379fffem75HqRPE2S6S29 small=false agent=build stream INFO 2025-12-20T16:17:00 +0ms service=provider status=started providerID=github-copilot getSDK INFO 2025-12-20T16:17:00 +0ms service=provider providerID=github-copilot pkg=@ai-sdk/github-copilot using bundled provider INFO 2025-12-20T16:17:00 +0ms service=provider status=completed duration=0 providerID=github-copilot getSDK INFO 2025-12-20T16:17:00 +1ms service=llm providerID=github-copilot modelID=gemini-3-pro-preview sessionID=ses_4c373379fffem75HqRPE2S6S29 small=false agent=build params={"temperature":1,"options":{}} params INFO 2025-12-20T16:17:00 +1ms service=bus type=session.status publishing ERROR 2025-12-20T16:17:00 +612ms service=acp-command promise={} reason=NotFoundError Unhandled rejection ERROR 2025-12-20T16:17:00 +0ms service=default e=NotFoundError rejection INFO 2025-12-20T16:17:01 +986ms service=session.summary title=Greeting handling title INFO 2025-12-20T16:17:01 +12ms service=bus type=message.updated publishing ERROR 2025-12-20T16:17:02 +1008ms service=acp-command promise={} reason=NotFoundError Unhandled rejection ERROR 2025-12-20T16:17:02 +0ms service=default e=NotFoundError rejection INFO 2025-12-20T16:17:05 +2343ms service=snapshot hash=f51e11412b0ba24cf89db61504f90d111713cfdd cwd=/Users/qi/code/js/anonymous-chat git=/Users/qi/.local/share/opencode/snapshot/983ca79f04d6ba3e6cbe80bb36d7597515e3b971 tracking INFO 2025-12-20T16:17:05 +1ms service=bus type=message.part.updated publishing INFO 2025-12-20T16:17:05 +310ms service=bus type=message.part.updated publishing INFO 2025-12-20T16:17:05 +6ms service=bus type=message.part.updated publishing Hello. I see you're working on the `anonymous-chat` project. How can I assist you with your codebase today? INFO 2025-12-20T16:17:05 +64ms service=snapshot hash=f51e11412b0ba24cf89db61504f90d111713cfdd cwd=/Users/qi/code/js/anonymous-chat git=/Users/qi/.local/share/opencode/snapshot/983ca79f04d6ba3e6cbe80bb36d7597515e3b971 tracking INFO 2025-12-20T16:17:05 +1ms service=bus type=message.part.updated publishing INFO 2025-12-20T16:17:05 +1ms service=bus type=message.updated publishing INFO 2025-12-20T16:17:05 +30ms service=bus type=message.updated publishing INFO 2025-12-20T16:17:05 +0ms service=bus type=session.status publishing INFO 2025-12-20T16:17:05 +0ms service=session.prompt step=1 sessionID=ses_4c373379fffem75HqRPE2S6S29 loop INFO 2025-12-20T16:17:05 +2ms service=session.prompt sessionID=ses_4c373379fffem75HqRPE2S6S29 exiting loop INFO 2025-12-20T16:17:05 +0ms service=session.compaction pruning INFO 2025-12-20T16:17:05 +1ms service=session.prompt sessionID=ses_4c373379fffem75HqRPE2S6S29 cancel INFO 2025-12-20T16:17:05 +1ms service=bus type=session.status publishing INFO 2025-12-20T16:17:05 +0ms service=bus type=session.idle publishing INFO 2025-12-20T16:17:05 +0ms service=session.compaction pruned=0 total=0 found INFO 2025-12-20T16:17:05 +1ms service=default directory=/Users/qi/code/js/anonymous-chat disposing instance INFO 2025-12-20T16:17:05 +0ms service=state key=/Users/qi/code/js/anonymous-chat waiting for state disposal to complete INFO 2025-12-20T16:17:05 +0ms service=bus type=file.watcher.updated unsubscribing INFO 2025-12-20T16:17:05 +1ms service=state key=/Users/qi/code/js/anonymous-chat state disposal completed ``` </details> After that `opencode` opens immediately and I believe it's because there are caches inside `~/.cache/opencode/node_modules` . --- As a contrast, I _remove the cache_ and _unset_ proxy then run: <details> <summary>logs of opencode run without stucking</summary> ```bash rm -rf ~/.cache/opencode && proxy unset && echo $HTTPS_PROXY $HTTP_PROXY $ALL_PROXY # empty, no proxy opencode run hello --print-logs INFO 2025-12-20T16:24:40 +356ms service=default version=1.0.174 args=["run","hello","--print-logs"] opencode INFO 2025-12-20T16:24:40 +1ms service=default directory=/Users/qi/code/js/anonymous-chat creating instance INFO 2025-12-20T16:24:40 +0ms service=project directory=/Users/qi/code/js/anonymous-chat fromDirectory INFO 2025-12-20T16:24:40 +28ms service=default directory=/Users/qi/code/js/anonymous-chat bootstrapping INFO 2025-12-20T16:24:40 +2ms service=config path=/Users/qi/.config/opencode/config.json loading INFO 2025-12-20T16:24:40 +0ms service=config path=/Users/qi/.config/opencode/opencode.json loading INFO 2025-12-20T16:24:40 +0ms service=config path=/Users/qi/.config/opencode/opencode.jsonc loading INFO 2025-12-20T16:24:40 +5ms service=bun cmd=["/opt/homebrew/Cellar/opencode/1.0.174/libexec/lib/node_modules/opencode-ai/node_modules/opencode-darwin-arm64/bin/opencode","add","@opencode-ai/plugin@1.0.174","--exact"] cwd=/Users/qi/.config/opencode running INFO 2025-12-20T16:24:40 +21ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd) installed @opencode-ai/plugin@1.0.174 [13.00ms] done stderr=Saved lockfile done INFO 2025-12-20T16:24:40 +2ms service=plugin path=opencode-copilot-auth@0.0.9 loading plugin INFO 2025-12-20T16:24:40 +2ms service=bun pkg=opencode-copilot-auth version=0.0.9 installing package using Bun's default registry resolution INFO 2025-12-20T16:24:40 +0ms service=bun cmd=["/opt/homebrew/Cellar/opencode/1.0.174/libexec/lib/node_modules/opencode-ai/node_modules/opencode-darwin-arm64/bin/opencode","add","--force","--exact","--cwd","/Users/qi/.cache/opencode","opencode-copilot-auth@0.0.9"] cwd=/Users/qi/.cache/opencode running INFO 2025-12-20T16:24:40 +8ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd) installed opencode-copilot-auth@0.0.9 1 package installed [3.00ms] stderr=Saved lockfile done INFO 2025-12-20T16:24:40 +6ms service=plugin path=opencode-anthropic-auth@0.0.5 loading plugin INFO 2025-12-20T16:24:40 +1ms service=bun pkg=opencode-anthropic-auth version=0.0.5 installing package using Bun's default registry resolution INFO 2025-12-20T16:24:40 +0ms service=bun cmd=["/opt/homebrew/Cellar/opencode/1.0.174/libexec/lib/node_modules/opencode-ai/node_modules/opencode-darwin-arm64/bin/opencode","add","--force","--exact","--cwd","/Users/qi/.cache/opencode","opencode-anthropic-auth@0.0.5"] cwd=/Users/qi/.cache/opencode running INFO 2025-12-20T16:24:41 +361ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd) + opencode-copilot-auth@0.0.9 installed opencode-anthropic-auth@0.0.5 14 packages installed [355.00ms] stderr=Resolving dependencies Resolved, downloaded and extracted [3] Saved lockfile done INFO 2025-12-20T16:24:41 +25ms service=bus type=* subscribing INFO 2025-12-20T16:24:41 +0ms service=bus type=session.updated subscribing INFO 2025-12-20T16:24:41 +0ms service=bus type=message.updated subscribing INFO 2025-12-20T16:24:41 +0ms service=bus type=message.part.updated subscribing INFO 2025-12-20T16:24:41 +0ms service=bus type=session.updated subscribing INFO 2025-12-20T16:24:41 +0ms service=bus type=message.updated subscribing INFO 2025-12-20T16:24:41 +0ms service=bus type=message.part.updated subscribing INFO 2025-12-20T16:24:41 +0ms service=bus type=session.diff subscribing INFO 2025-12-20T16:24:41 +0ms service=format init INFO 2025-12-20T16:24:41 +0ms service=bus type=file.edited subscribing INFO 2025-12-20T16:24:41 +1ms service=lsp serverIds=deno, typescript, vue, eslint, oxlint, biome, gopls, ruby-lsp, pyright, elixir-ls, zls, csharp, fsharp, sourcekit-lsp, rust, clangd, svelte, astro, jdtls, yaml-ls, lua-ls, php intelephense, dart, ocaml-lsp, bash, terraform, texlab, dockerfile, gleam enabled LSP servers INFO 2025-12-20T16:24:41 +0ms service=file.watcher init INFO 2025-12-20T16:24:41 +1ms service=bus type=command.executed subscribing INFO 2025-12-20T16:24:41 +0ms service=file.watcher platform=darwin backend=fs-events watcher backend INFO 2025-12-20T16:24:41 +45ms service=vcs branch=main initialized INFO 2025-12-20T16:24:41 +0ms service=bus type=file.watcher.updated subscribing INFO 2025-12-20T16:24:41 +9ms service=server method=POST path=/session request INFO 2025-12-20T16:24:41 +0ms service=server status=started method=POST path=/session request INFO 2025-12-20T16:24:41 +2ms service=session id=ses_4c36c267fffejMSKl5tdK60V42 version=1.0.174 projectID=983ca79f04d6ba3e6cbe80bb36d7597515e3b971 directory=/Users/qi/code/js/anonymous-chat title=New session - 2025-12-20T16:24:41.088Z time={"created":1766247881088,"updated":1766247881088} created INFO 2025-12-20T16:24:41 +1ms service=bus type=session.created publishing INFO 2025-12-20T16:24:41 +0ms service=bus type=session.updated publishing INFO 2025-12-20T16:24:41 +1ms service=server status=completed duration=4 method=POST path=/session request INFO 2025-12-20T16:24:41 +197ms service=server method=GET path=/config request INFO 2025-12-20T16:24:41 +0ms service=server status=started method=GET path=/config request INFO 2025-12-20T16:24:41 +0ms service=server status=completed duration=0 method=GET path=/config request INFO 2025-12-20T16:24:41 +4ms service=server method=GET path=/event request INFO 2025-12-20T16:24:41 +0ms service=server status=started method=GET path=/event request INFO 2025-12-20T16:24:41 +0ms service=server event connected INFO 2025-12-20T16:24:41 +2ms service=bus type=* subscribing INFO 2025-12-20T16:24:41 +1ms service=server status=completed duration=3 method=GET path=/event request INFO 2025-12-20T16:24:41 +1ms service=server method=POST path=/session/ses_4c36c267fffejMSKl5tdK60V42/message request INFO 2025-12-20T16:24:41 +0ms service=server status=started method=POST path=/session/ses_4c36c267fffejMSKl5tdK60V42/message request INFO 2025-12-20T16:24:41 +2ms service=server status=completed duration=2 method=POST path=/session/ses_4c36c267fffejMSKl5tdK60V42/message request INFO 2025-12-20T16:24:41 +4ms service=provider status=started state INFO 2025-12-20T16:24:41 +4ms service=models.dev file={} refreshing INFO 2025-12-20T16:24:41 +7ms service=provider init INFO 2025-12-20T16:24:41 +4ms service=provider providerID=github-copilot found INFO 2025-12-20T16:24:41 +0ms service=provider providerID=opencode found INFO 2025-12-20T16:24:41 +0ms service=provider status=completed duration=15 state INFO 2025-12-20T16:24:41 +2ms service=bus type=message.updated publishing INFO 2025-12-20T16:24:41 +2ms service=bus type=message.part.updated publishing INFO 2025-12-20T16:24:41 +1ms service=bus type=session.updated publishing INFO 2025-12-20T16:24:41 +1ms service=bus type=session.status publishing INFO 2025-12-20T16:24:41 +0ms service=session.prompt step=0 sessionID=ses_4c36c267fffejMSKl5tdK60V42 loop INFO 2025-12-20T16:24:41 +4ms service=llm providerID=opencode modelID=gpt-5-nano sessionID=ses_4c36c267fffejMSKl5tdK60V42 small=true agent=title stream INFO 2025-12-20T16:24:41 +0ms service=provider status=started providerID=opencode getSDK INFO 2025-12-20T16:24:41 +0ms service=bus type=message.updated publishing INFO 2025-12-20T16:24:41 +1ms service=provider providerID=opencode pkg=@ai-sdk/openai using bundled provider INFO 2025-12-20T16:24:41 +0ms service=provider status=completed duration=1 providerID=opencode getSDK INFO 2025-12-20T16:24:41 +0ms service=session.prompt status=started resolveTools INFO 2025-12-20T16:24:41 +2ms service=llm providerID=opencode modelID=gpt-5-nano sessionID=ses_4c36c267fffejMSKl5tdK60V42 small=true agent=title params={"options":{"reasoningEffort":"minimal","promptCacheKey":"ses_4c36c267fffejMSKl5tdK60V42","include":["reasoning.encrypted_content"],"reasoningSummary":"auto"}} params INFO 2025-12-20T16:24:41 +9ms service=tool.registry status=started invalid INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=started bash INFO 2025-12-20T16:24:41 +0ms service=bash-tool shell=/bin/zsh bash tool using shell INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=started read INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=started glob INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=started grep INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=started list INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=started edit INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=started write INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=started task INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=started webfetch INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=started todowrite INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=started todoread INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=completed duration=0 invalid INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=completed duration=0 read INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=completed duration=0 glob INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=completed duration=0 grep INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=completed duration=0 list INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=completed duration=0 edit INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=completed duration=0 write INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=completed duration=0 webfetch INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=completed duration=0 todowrite INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=completed duration=0 todoread INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=completed duration=0 bash INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=completed duration=0 task INFO 2025-12-20T16:24:41 +3ms service=mcp key=context7 type=remote found INFO 2025-12-20T16:24:41 +0ms service=mcp key=playwright type=local found ERROR 2025-12-20T16:24:42 +750ms service=acp-command promise={} reason=NotFoundError Unhandled rejection ERROR 2025-12-20T16:24:42 +0ms service=default e=NotFoundError rejection INFO 2025-12-20T16:24:42 +58ms service=mcp key=context7 transport=StreamableHTTP connected INFO 2025-12-20T16:24:42 +204ms service=mcp key=playwright toolCount=22 create() successfully created client INFO 2025-12-20T16:24:42 +435ms service=mcp key=context7 toolCount=2 create() successfully created client INFO 2025-12-20T16:24:42 +183ms service=session.prompt status=completed duration=1644 resolveTools INFO 2025-12-20T16:24:42 +4ms service=ripgrep cwd=/Users/qi/code/js/anonymous-chat limit=200 tree INFO 2025-12-20T16:24:42 +6ms service=bus type=message.updated publishing INFO 2025-12-20T16:24:42 +0ms service=llm providerID=opencode modelID=gpt-5-nano sessionID=ses_4c36c267fffejMSKl5tdK60V42 small=true agent=title stream INFO 2025-12-20T16:24:42 +0ms service=llm providerID=opencode modelID=gpt-5-nano sessionID=ses_4c36c267fffejMSKl5tdK60V42 small=true agent=title params={"options":{"reasoningEffort":"minimal","promptCacheKey":"ses_4c36c267fffejMSKl5tdK60V42","include":["reasoning.encrypted_content"],"reasoningSummary":"auto"}} params INFO 2025-12-20T16:24:42 +2ms service=bus type=session.updated publishing INFO 2025-12-20T16:24:42 +1ms service=bus type=session.diff publishing INFO 2025-12-20T16:24:42 +8ms service=session.processor process INFO 2025-12-20T16:24:42 +0ms service=llm providerID=github-copilot modelID=gemini-3-pro-preview sessionID=ses_4c36c267fffejMSKl5tdK60V42 small=false agent=build stream INFO 2025-12-20T16:24:42 +0ms service=provider status=started providerID=github-copilot getSDK INFO 2025-12-20T16:24:42 +0ms service=provider providerID=github-copilot pkg=@ai-sdk/github-copilot using bundled provider INFO 2025-12-20T16:24:42 +0ms service=provider status=completed duration=0 providerID=github-copilot getSDK INFO 2025-12-20T16:24:42 +1ms service=llm providerID=github-copilot modelID=gemini-3-pro-preview sessionID=ses_4c36c267fffejMSKl5tdK60V42 small=false agent=build params={"temperature":1,"options":{}} params INFO 2025-12-20T16:24:42 +0ms service=bus type=session.status publishing INFO 2025-12-20T16:24:43 +875ms service=server method=PUT path=/auth/github-copilot request INFO 2025-12-20T16:24:43 +0ms service=server status=started method=PUT path=/auth/github-copilot request INFO 2025-12-20T16:24:43 +2ms service=server status=completed duration=2 method=PUT path=/auth/github-copilot request ERROR 2025-12-20T16:24:43 +117ms service=acp-command promise={} reason=NotFoundError Unhandled rejection ERROR 2025-12-20T16:24:43 +0ms service=default e=NotFoundError rejection INFO 2025-12-20T16:24:44 +201ms service=bus type=session.updated publishing INFO 2025-12-20T16:24:44 +668ms service=session.summary title=Greeting message review title INFO 2025-12-20T16:24:44 +1ms service=bus type=message.updated publishing ERROR 2025-12-20T16:24:45 +335ms service=acp-command promise={} reason=NotFoundError Unhandled rejection ERROR 2025-12-20T16:24:45 +1ms service=default e=NotFoundError rejection INFO 2025-12-20T16:24:48 +3451ms service=snapshot hash=f51e11412b0ba24cf89db61504f90d111713cfdd cwd=/Users/qi/code/js/anonymous-chat git=/Users/qi/.local/share/opencode/snapshot/983ca79f04d6ba3e6cbe80bb36d7597515e3b971 tracking INFO 2025-12-20T16:24:48 +1ms service=bus type=message.part.updated publishing INFO 2025-12-20T16:24:48 +296ms service=bus type=message.part.updated publishing INFO 2025-12-20T16:24:48 +1ms service=bus type=message.part.updated publishing Hello! How can I help you with the `anonymous-chat` project today? INFO 2025-12-20T16:24:48 +39ms service=snapshot hash=f51e11412b0ba24cf89db61504f90d111713cfdd cwd=/Users/qi/code/js/anonymous-chat git=/Users/qi/.local/share/opencode/snapshot/983ca79f04d6ba3e6cbe80bb36d7597515e3b971 tracking INFO 2025-12-20T16:24:48 +1ms service=bus type=message.part.updated publishing INFO 2025-12-20T16:24:48 +0ms service=bus type=message.updated publishing INFO 2025-12-20T16:24:49 +29ms service=bus type=message.updated publishing INFO 2025-12-20T16:24:49 +0ms service=bus type=session.status publishing INFO 2025-12-20T16:24:49 +0ms service=session.prompt step=1 sessionID=ses_4c36c267fffejMSKl5tdK60V42 loop INFO 2025-12-20T16:24:49 +2ms service=session.prompt sessionID=ses_4c36c267fffejMSKl5tdK60V42 exiting loop INFO 2025-12-20T16:24:49 +0ms service=session.compaction pruning INFO 2025-12-20T16:24:49 +1ms service=session.prompt sessionID=ses_4c36c267fffejMSKl5tdK60V42 cancel INFO 2025-12-20T16:24:49 +0ms service=bus type=session.status publishing INFO 2025-12-20T16:24:49 +0ms service=bus type=session.idle publishing INFO 2025-12-20T16:24:49 +1ms service=default directory=/Users/qi/code/js/anonymous-chat disposing instance INFO 2025-12-20T16:24:49 +0ms service=state key=/Users/qi/code/js/anonymous-chat waiting for state disposal to complete INFO 2025-12-20T16:24:49 +1ms service=bus type=file.watcher.updated unsubscribing INFO 2025-12-20T16:24:49 +1ms service=state key=/Users/qi/code/js/anonymous-chat state disposal completed ``` </details> So the issue seems to be `bun install` when `HTTP_PROXY` is set. A workaround is to temporarily unset proxy, and run `opencode`, then set the proxy, `opencode` will use existing cahce ...
Author
Owner

@Liyw979 commented on GitHub (Dec 22, 2025):

I encounter this issue too, here are the steps: Proxy:

➜ echo $HTTPS_PROXY $HTTP_PROXY $ALL_PROXY
http://127.0.0.1:7890 http://127.0.0.1:7890 socks5://127.0.0.1:7890

Cache:

➜ ls -al ~/.cache/opencode/node_modules
total 0
drwxr-xr-x@ 3 qi  staff   96 Dec 21 00:08 .
drwxr-xr-x@ 6 qi  staff  192 Dec 21 00:08 ..
drwxr-xr-x@ 9 qi  staff  288 Dec 21 00:08 opencode-copilot-auth

Run with --print-logs: :

logs of stucked at installing plugins?

➜ opencode run hello --print-logs

INFO  2025-12-20T16:12:57 +552ms service=default version=1.0.174 args=["run","hello","--print-logs"] opencode
INFO  2025-12-20T16:12:57 +0ms service=default directory=/Users/qi/code/js/anonymous-chat creating instance
INFO  2025-12-20T16:12:57 +1ms service=project directory=/Users/qi/code/js/anonymous-chat fromDirectory
INFO  2025-12-20T16:12:57 +26ms service=default directory=/Users/qi/code/js/anonymous-chat bootstrapping
INFO  2025-12-20T16:12:57 +3ms service=config path=/Users/qi/.config/opencode/config.json loading
INFO  2025-12-20T16:12:57 +0ms service=config path=/Users/qi/.config/opencode/opencode.json loading
INFO  2025-12-20T16:12:57 +0ms service=config path=/Users/qi/.config/opencode/opencode.jsonc loading
INFO  2025-12-20T16:12:57 +5ms service=bun cmd=["/opt/homebrew/Cellar/opencode/1.0.174/libexec/lib/node_modules/opencode-ai/node_modules/opencode-darwin-arm64/bin/opencode","add","@opencode-ai/plugin@1.0.174","--exact"] cwd=/Users/qi/.config/opencode running
INFO  2025-12-20T16:12:57 +16ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd)

installed @opencode-ai/plugin@1.0.174

[9.00ms] done
 stderr=Saved lockfile
 done
INFO  2025-12-20T16:12:57 +3ms service=plugin path=opencode-copilot-auth@0.0.9 loading plugin
INFO  2025-12-20T16:12:57 +6ms service=plugin path=opencode-anthropic-auth@0.0.5 loading plugin
INFO  2025-12-20T16:12:57 +0ms service=bun pkg=opencode-anthropic-auth version=0.0.5 installing package using Bun's default registry resolution
INFO  2025-12-20T16:12:57 +0ms service=bun cmd=["/opt/homebrew/Cellar/opencode/1.0.174/libexec/lib/node_modules/opencode-ai/node_modules/opencode-darwin-arm64/bin/opencode","add","--force","--exact","--cwd","/Users/qi/.cache/opencode","opencode-anthropic-auth@0.0.5"] cwd=/Users/qi/.cache/opencode running

after 4 minites, it finally finished:

logs of 4 minutes later

INFO  2025-12-20T16:12:57 +0ms service=bun cmd=["/opt/homebrew/Cellar/opencode/1.0.174/libexec/lib/node_modules/opencode-ai/node_modules/opencode-darwin-arm64/bin/opencode","add","--force","--exact","--cwd","/Users/qi/.cache/opencode","opencode-anthropic-auth@0.0.5"] cwd=/Users/qi/.cache/opencode running
INFO  2025-12-20T16:16:57 +240367ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd)

+ opencode-copilot-auth@0.0.9

installed opencode-anthropic-auth@0.0.5

14 packages installed [240.36s]
 stderr=Resolving dependencies
Resolved, downloaded and extracted [3]
Saved lockfile
 done
INFO  2025-12-20T16:16:57 +33ms service=bus type=* subscribing
INFO  2025-12-20T16:16:57 +0ms service=bus type=session.updated subscribing
INFO  2025-12-20T16:16:57 +0ms service=bus type=message.updated subscribing
INFO  2025-12-20T16:16:57 +0ms service=bus type=message.part.updated subscribing
INFO  2025-12-20T16:16:57 +0ms service=bus type=session.updated subscribing
INFO  2025-12-20T16:16:57 +0ms service=bus type=message.updated subscribing
INFO  2025-12-20T16:16:57 +0ms service=bus type=message.part.updated subscribing
INFO  2025-12-20T16:16:57 +0ms service=bus type=session.diff subscribing
INFO  2025-12-20T16:16:57 +1ms service=format init
INFO  2025-12-20T16:16:57 +0ms service=bus type=file.edited subscribing
INFO  2025-12-20T16:16:57 +0ms service=lsp serverIds=deno, typescript, vue, eslint, oxlint, biome, gopls, ruby-lsp, pyright, elixir-ls, zls, csharp, fsharp, sourcekit-lsp, rust, clangd, svelte, astro, jdtls, yaml-ls, lua-ls, php intelephense, dart, ocaml-lsp, bash, terraform, texlab, dockerfile, gleam enabled LSP servers
INFO  2025-12-20T16:16:57 +0ms service=file.watcher init
INFO  2025-12-20T16:16:57 +2ms service=bus type=command.executed subscribing
INFO  2025-12-20T16:16:57 +1ms service=file.watcher platform=darwin backend=fs-events watcher backend
INFO  2025-12-20T16:16:57 +48ms service=vcs branch=main initialized
INFO  2025-12-20T16:16:57 +0ms service=bus type=file.watcher.updated subscribing
INFO  2025-12-20T16:16:57 +434ms service=server method=POST path=/session request
INFO  2025-12-20T16:16:57 +0ms service=server status=started method=POST path=/session request
INFO  2025-12-20T16:16:57 +3ms service=session id=ses_4c373379fffem75HqRPE2S6S29 version=1.0.174 projectID=983ca79f04d6ba3e6cbe80bb36d7597515e3b971 directory=/Users/qi/code/js/anonymous-chat title=New session - 2025-12-20T16:16:57.953Z time={"created":1766247417953,"updated":1766247417953} created
INFO  2025-12-20T16:16:57 +1ms service=bus type=session.created publishing
INFO  2025-12-20T16:16:57 +0ms service=bus type=session.updated publishing
INFO  2025-12-20T16:16:57 +3ms service=server status=completed duration=6 method=POST path=/session request
INFO  2025-12-20T16:16:57 +3ms service=server method=GET path=/config request
INFO  2025-12-20T16:16:57 +1ms service=server status=started method=GET path=/config request
INFO  2025-12-20T16:16:57 +0ms service=server status=completed duration=0 method=GET path=/config request
INFO  2025-12-20T16:16:57 +5ms service=server method=GET path=/event request
INFO  2025-12-20T16:16:57 +0ms service=server status=started method=GET path=/event request
INFO  2025-12-20T16:16:57 +0ms service=server event connected
INFO  2025-12-20T16:16:57 +3ms service=bus type=* subscribing
INFO  2025-12-20T16:16:57 +0ms service=server status=completed duration=3 method=GET path=/event request
INFO  2025-12-20T16:16:57 +7ms service=server method=POST path=/session/ses_4c373379fffem75HqRPE2S6S29/message request
INFO  2025-12-20T16:16:57 +0ms service=server status=started method=POST path=/session/ses_4c373379fffem75HqRPE2S6S29/message request
INFO  2025-12-20T16:16:57 +3ms service=server status=completed duration=3 method=POST path=/session/ses_4c373379fffem75HqRPE2S6S29/message request
INFO  2025-12-20T16:16:57 +8ms service=provider status=started state
INFO  2025-12-20T16:16:57 +4ms service=models.dev file={} refreshing
INFO  2025-12-20T16:16:57 +8ms service=provider init
INFO  2025-12-20T16:16:58 +5ms service=provider providerID=github-copilot found
INFO  2025-12-20T16:16:58 +1ms service=provider providerID=opencode found
INFO  2025-12-20T16:16:58 +0ms service=provider status=completed duration=18 state
INFO  2025-12-20T16:16:58 +3ms service=bus type=message.updated publishing
INFO  2025-12-20T16:16:58 +2ms service=bus type=message.part.updated publishing
INFO  2025-12-20T16:16:58 +1ms service=bus type=session.updated publishing
INFO  2025-12-20T16:16:58 +1ms service=bus type=session.status publishing
INFO  2025-12-20T16:16:58 +1ms service=session.prompt step=0 sessionID=ses_4c373379fffem75HqRPE2S6S29 loop
INFO  2025-12-20T16:16:58 +5ms service=llm providerID=opencode modelID=gpt-5-nano sessionID=ses_4c373379fffem75HqRPE2S6S29 small=true agent=title stream
INFO  2025-12-20T16:16:58 +0ms service=provider status=started providerID=opencode getSDK
INFO  2025-12-20T16:16:58 +0ms service=bus type=message.updated publishing
INFO  2025-12-20T16:16:58 +1ms service=provider providerID=opencode pkg=@ai-sdk/openai using bundled provider
INFO  2025-12-20T16:16:58 +0ms service=provider status=completed duration=1 providerID=opencode getSDK
INFO  2025-12-20T16:16:58 +0ms service=session.prompt status=started resolveTools
INFO  2025-12-20T16:16:58 +2ms service=llm providerID=opencode modelID=gpt-5-nano sessionID=ses_4c373379fffem75HqRPE2S6S29 small=true agent=title params={"options":{"reasoningEffort":"minimal","promptCacheKey":"ses_4c373379fffem75HqRPE2S6S29","include":["reasoning.encrypted_content"],"reasoningSummary":"auto"}} params
INFO  2025-12-20T16:16:58 +10ms service=tool.registry status=started invalid
INFO  2025-12-20T16:16:58 +0ms service=tool.registry status=started bash
INFO  2025-12-20T16:16:58 +0ms service=bash-tool shell=/bin/zsh bash tool using shell
INFO  2025-12-20T16:16:58 +1ms service=tool.registry status=started read
INFO  2025-12-20T16:16:58 +0ms service=tool.registry status=started glob
INFO  2025-12-20T16:16:58 +0ms service=tool.registry status=started grep
INFO  2025-12-20T16:16:58 +0ms service=tool.registry status=started list
INFO  2025-12-20T16:16:58 +0ms service=tool.registry status=started edit
INFO  2025-12-20T16:16:58 +0ms service=tool.registry status=started write
INFO  2025-12-20T16:16:58 +0ms service=tool.registry status=started task
INFO  2025-12-20T16:16:58 +0ms service=tool.registry status=started webfetch
INFO  2025-12-20T16:16:58 +0ms service=tool.registry status=started todowrite
INFO  2025-12-20T16:16:58 +0ms service=tool.registry status=started todoread
INFO  2025-12-20T16:16:58 +0ms service=tool.registry status=completed duration=1 invalid
INFO  2025-12-20T16:16:58 +0ms service=tool.registry status=completed duration=1 read
INFO  2025-12-20T16:16:58 +0ms service=tool.registry status=completed duration=0 glob
INFO  2025-12-20T16:16:58 +0ms service=tool.registry status=completed duration=0 grep
INFO  2025-12-20T16:16:58 +0ms service=tool.registry status=completed duration=0 list
INFO  2025-12-20T16:16:58 +0ms service=tool.registry status=completed duration=0 edit
INFO  2025-12-20T16:16:58 +0ms service=tool.registry status=completed duration=0 write
INFO  2025-12-20T16:16:58 +0ms service=tool.registry status=completed duration=0 webfetch
INFO  2025-12-20T16:16:58 +0ms service=tool.registry status=completed duration=0 todowrite
INFO  2025-12-20T16:16:58 +0ms service=tool.registry status=completed duration=0 todoread
INFO  2025-12-20T16:16:58 +0ms service=tool.registry status=completed duration=1 bash
INFO  2025-12-20T16:16:58 +0ms service=tool.registry status=completed duration=0 task
INFO  2025-12-20T16:16:58 +3ms service=mcp key=context7 type=remote found
INFO  2025-12-20T16:16:58 +0ms service=mcp key=playwright type=local found
ERROR 2025-12-20T16:16:58 +923ms service=acp-command promise={} reason=NotFoundError Unhandled rejection
ERROR 2025-12-20T16:16:58 +0ms service=default e=NotFoundError rejection
INFO  2025-12-20T16:16:59 +127ms service=mcp key=playwright toolCount=22 create() successfully created client
INFO  2025-12-20T16:16:59 +54ms service=mcp key=context7 transport=StreamableHTTP connected
INFO  2025-12-20T16:16:59 +556ms service=mcp key=context7 toolCount=2 create() successfully created client
INFO  2025-12-20T16:16:59 +233ms service=bus type=session.updated publishing
INFO  2025-12-20T16:17:00 +351ms service=session.prompt status=completed duration=2260 resolveTools
INFO  2025-12-20T16:17:00 +11ms service=ripgrep cwd=/Users/qi/code/js/anonymous-chat limit=200 tree
INFO  2025-12-20T16:17:00 +13ms service=bus type=message.updated publishing
INFO  2025-12-20T16:17:00 +1ms service=llm providerID=opencode modelID=gpt-5-nano sessionID=ses_4c373379fffem75HqRPE2S6S29 small=true agent=title stream
INFO  2025-12-20T16:17:00 +0ms service=llm providerID=opencode modelID=gpt-5-nano sessionID=ses_4c373379fffem75HqRPE2S6S29 small=true agent=title params={"options":{"reasoningEffort":"minimal","promptCacheKey":"ses_4c373379fffem75HqRPE2S6S29","include":["reasoning.encrypted_content"],"reasoningSummary":"auto"}} params
INFO  2025-12-20T16:17:00 +3ms service=bus type=session.updated publishing
INFO  2025-12-20T16:17:00 +1ms service=bus type=session.diff publishing
INFO  2025-12-20T16:17:00 +9ms service=session.processor process
INFO  2025-12-20T16:17:00 +0ms service=llm providerID=github-copilot modelID=gemini-3-pro-preview sessionID=ses_4c373379fffem75HqRPE2S6S29 small=false agent=build stream
INFO  2025-12-20T16:17:00 +0ms service=provider status=started providerID=github-copilot getSDK
INFO  2025-12-20T16:17:00 +0ms service=provider providerID=github-copilot pkg=@ai-sdk/github-copilot using bundled provider
INFO  2025-12-20T16:17:00 +0ms service=provider status=completed duration=0 providerID=github-copilot getSDK
INFO  2025-12-20T16:17:00 +1ms service=llm providerID=github-copilot modelID=gemini-3-pro-preview sessionID=ses_4c373379fffem75HqRPE2S6S29 small=false agent=build params={"temperature":1,"options":{}} params
INFO  2025-12-20T16:17:00 +1ms service=bus type=session.status publishing
ERROR 2025-12-20T16:17:00 +612ms service=acp-command promise={} reason=NotFoundError Unhandled rejection
ERROR 2025-12-20T16:17:00 +0ms service=default e=NotFoundError rejection
INFO  2025-12-20T16:17:01 +986ms service=session.summary title=Greeting handling title
INFO  2025-12-20T16:17:01 +12ms service=bus type=message.updated publishing
ERROR 2025-12-20T16:17:02 +1008ms service=acp-command promise={} reason=NotFoundError Unhandled rejection
ERROR 2025-12-20T16:17:02 +0ms service=default e=NotFoundError rejection
INFO  2025-12-20T16:17:05 +2343ms service=snapshot hash=f51e11412b0ba24cf89db61504f90d111713cfdd
 cwd=/Users/qi/code/js/anonymous-chat git=/Users/qi/.local/share/opencode/snapshot/983ca79f04d6ba3e6cbe80bb36d7597515e3b971 tracking
INFO  2025-12-20T16:17:05 +1ms service=bus type=message.part.updated publishing
INFO  2025-12-20T16:17:05 +310ms service=bus type=message.part.updated publishing
INFO  2025-12-20T16:17:05 +6ms service=bus type=message.part.updated publishing

Hello. I see you're working on the `anonymous-chat` project. How can I assist you with your codebase today?

INFO  2025-12-20T16:17:05 +64ms service=snapshot hash=f51e11412b0ba24cf89db61504f90d111713cfdd
 cwd=/Users/qi/code/js/anonymous-chat git=/Users/qi/.local/share/opencode/snapshot/983ca79f04d6ba3e6cbe80bb36d7597515e3b971 tracking
INFO  2025-12-20T16:17:05 +1ms service=bus type=message.part.updated publishing
INFO  2025-12-20T16:17:05 +1ms service=bus type=message.updated publishing
INFO  2025-12-20T16:17:05 +30ms service=bus type=message.updated publishing
INFO  2025-12-20T16:17:05 +0ms service=bus type=session.status publishing
INFO  2025-12-20T16:17:05 +0ms service=session.prompt step=1 sessionID=ses_4c373379fffem75HqRPE2S6S29 loop
INFO  2025-12-20T16:17:05 +2ms service=session.prompt sessionID=ses_4c373379fffem75HqRPE2S6S29 exiting loop
INFO  2025-12-20T16:17:05 +0ms service=session.compaction pruning
INFO  2025-12-20T16:17:05 +1ms service=session.prompt sessionID=ses_4c373379fffem75HqRPE2S6S29 cancel
INFO  2025-12-20T16:17:05 +1ms service=bus type=session.status publishing
INFO  2025-12-20T16:17:05 +0ms service=bus type=session.idle publishing
INFO  2025-12-20T16:17:05 +0ms service=session.compaction pruned=0 total=0 found
INFO  2025-12-20T16:17:05 +1ms service=default directory=/Users/qi/code/js/anonymous-chat disposing instance
INFO  2025-12-20T16:17:05 +0ms service=state key=/Users/qi/code/js/anonymous-chat waiting for state disposal to complete
INFO  2025-12-20T16:17:05 +0ms service=bus type=file.watcher.updated unsubscribing
INFO  2025-12-20T16:17:05 +1ms service=state key=/Users/qi/code/js/anonymous-chat state disposal completed

After that opencode opens immediately and I believe it's because there are caches inside ~/.cache/opencode/node_modules .

As a contrast, I remove the cache and unset proxy then run:

logs of opencode run without stucking
rm -rf ~/.cache/opencode && proxy unset && echo $HTTPS_PROXY $HTTP_PROXY $ALL_PROXY

empty, no proxy

opencode run hello --print-logs

INFO 2025-12-20T16:24:40 +356ms service=default version=1.0.174 args=["run","hello","--print-logs"] opencode
INFO 2025-12-20T16:24:40 +1ms service=default directory=/Users/qi/code/js/anonymous-chat creating instance
INFO 2025-12-20T16:24:40 +0ms service=project directory=/Users/qi/code/js/anonymous-chat fromDirectory
INFO 2025-12-20T16:24:40 +28ms service=default directory=/Users/qi/code/js/anonymous-chat bootstrapping
INFO 2025-12-20T16:24:40 +2ms service=config path=/Users/qi/.config/opencode/config.json loading
INFO 2025-12-20T16:24:40 +0ms service=config path=/Users/qi/.config/opencode/opencode.json loading
INFO 2025-12-20T16:24:40 +0ms service=config path=/Users/qi/.config/opencode/opencode.jsonc loading
INFO 2025-12-20T16:24:40 +5ms service=bun cmd=["/opt/homebrew/Cellar/opencode/1.0.174/libexec/lib/node_modules/opencode-ai/node_modules/opencode-darwin-arm64/bin/opencode","add","@opencode-ai/plugin@1.0.174","--exact"] cwd=/Users/qi/.config/opencode running
INFO 2025-12-20T16:24:40 +21ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd)

installed @opencode-ai/plugin@1.0.174

[13.00ms] done
stderr=Saved lockfile
done
INFO 2025-12-20T16:24:40 +2ms service=plugin path=opencode-copilot-auth@0.0.9 loading plugin
INFO 2025-12-20T16:24:40 +2ms service=bun pkg=opencode-copilot-auth version=0.0.9 installing package using Bun's default registry resolution
INFO 2025-12-20T16:24:40 +0ms service=bun cmd=["/opt/homebrew/Cellar/opencode/1.0.174/libexec/lib/node_modules/opencode-ai/node_modules/opencode-darwin-arm64/bin/opencode","add","--force","--exact","--cwd","/Users/qi/.cache/opencode","opencode-copilot-auth@0.0.9"] cwd=/Users/qi/.cache/opencode running
INFO 2025-12-20T16:24:40 +8ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd)

installed opencode-copilot-auth@0.0.9

1 package installed [3.00ms]
stderr=Saved lockfile
done
INFO 2025-12-20T16:24:40 +6ms service=plugin path=opencode-anthropic-auth@0.0.5 loading plugin
INFO 2025-12-20T16:24:40 +1ms service=bun pkg=opencode-anthropic-auth version=0.0.5 installing package using Bun's default registry resolution
INFO 2025-12-20T16:24:40 +0ms service=bun cmd=["/opt/homebrew/Cellar/opencode/1.0.174/libexec/lib/node_modules/opencode-ai/node_modules/opencode-darwin-arm64/bin/opencode","add","--force","--exact","--cwd","/Users/qi/.cache/opencode","opencode-anthropic-auth@0.0.5"] cwd=/Users/qi/.cache/opencode running
INFO 2025-12-20T16:24:41 +361ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd)

  • opencode-copilot-auth@0.0.9

installed opencode-anthropic-auth@0.0.5

14 packages installed [355.00ms]
stderr=Resolving dependencies
Resolved, downloaded and extracted [3]
Saved lockfile
done
INFO 2025-12-20T16:24:41 +25ms service=bus type=* subscribing
INFO 2025-12-20T16:24:41 +0ms service=bus type=session.updated subscribing
INFO 2025-12-20T16:24:41 +0ms service=bus type=message.updated subscribing
INFO 2025-12-20T16:24:41 +0ms service=bus type=message.part.updated subscribing
INFO 2025-12-20T16:24:41 +0ms service=bus type=session.updated subscribing
INFO 2025-12-20T16:24:41 +0ms service=bus type=message.updated subscribing
INFO 2025-12-20T16:24:41 +0ms service=bus type=message.part.updated subscribing
INFO 2025-12-20T16:24:41 +0ms service=bus type=session.diff subscribing
INFO 2025-12-20T16:24:41 +0ms service=format init
INFO 2025-12-20T16:24:41 +0ms service=bus type=file.edited subscribing
INFO 2025-12-20T16:24:41 +1ms service=lsp serverIds=deno, typescript, vue, eslint, oxlint, biome, gopls, ruby-lsp, pyright, elixir-ls, zls, csharp, fsharp, sourcekit-lsp, rust, clangd, svelte, astro, jdtls, yaml-ls, lua-ls, php intelephense, dart, ocaml-lsp, bash, terraform, texlab, dockerfile, gleam enabled LSP servers
INFO 2025-12-20T16:24:41 +0ms service=file.watcher init
INFO 2025-12-20T16:24:41 +1ms service=bus type=command.executed subscribing
INFO 2025-12-20T16:24:41 +0ms service=file.watcher platform=darwin backend=fs-events watcher backend
INFO 2025-12-20T16:24:41 +45ms service=vcs branch=main initialized
INFO 2025-12-20T16:24:41 +0ms service=bus type=file.watcher.updated subscribing
INFO 2025-12-20T16:24:41 +9ms service=server method=POST path=/session request
INFO 2025-12-20T16:24:41 +0ms service=server status=started method=POST path=/session request
INFO 2025-12-20T16:24:41 +2ms service=session id=ses_4c36c267fffejMSKl5tdK60V42 version=1.0.174 projectID=983ca79f04d6ba3e6cbe80bb36d7597515e3b971 directory=/Users/qi/code/js/anonymous-chat title=New session - 2025-12-20T16:24:41.088Z time={"created":1766247881088,"updated":1766247881088} created
INFO 2025-12-20T16:24:41 +1ms service=bus type=session.created publishing
INFO 2025-12-20T16:24:41 +0ms service=bus type=session.updated publishing
INFO 2025-12-20T16:24:41 +1ms service=server status=completed duration=4 method=POST path=/session request
INFO 2025-12-20T16:24:41 +197ms service=server method=GET path=/config request
INFO 2025-12-20T16:24:41 +0ms service=server status=started method=GET path=/config request
INFO 2025-12-20T16:24:41 +0ms service=server status=completed duration=0 method=GET path=/config request
INFO 2025-12-20T16:24:41 +4ms service=server method=GET path=/event request
INFO 2025-12-20T16:24:41 +0ms service=server status=started method=GET path=/event request
INFO 2025-12-20T16:24:41 +0ms service=server event connected
INFO 2025-12-20T16:24:41 +2ms service=bus type=* subscribing
INFO 2025-12-20T16:24:41 +1ms service=server status=completed duration=3 method=GET path=/event request
INFO 2025-12-20T16:24:41 +1ms service=server method=POST path=/session/ses_4c36c267fffejMSKl5tdK60V42/message request
INFO 2025-12-20T16:24:41 +0ms service=server status=started method=POST path=/session/ses_4c36c267fffejMSKl5tdK60V42/message request
INFO 2025-12-20T16:24:41 +2ms service=server status=completed duration=2 method=POST path=/session/ses_4c36c267fffejMSKl5tdK60V42/message request
INFO 2025-12-20T16:24:41 +4ms service=provider status=started state
INFO 2025-12-20T16:24:41 +4ms service=models.dev file={} refreshing
INFO 2025-12-20T16:24:41 +7ms service=provider init
INFO 2025-12-20T16:24:41 +4ms service=provider providerID=github-copilot found
INFO 2025-12-20T16:24:41 +0ms service=provider providerID=opencode found
INFO 2025-12-20T16:24:41 +0ms service=provider status=completed duration=15 state
INFO 2025-12-20T16:24:41 +2ms service=bus type=message.updated publishing
INFO 2025-12-20T16:24:41 +2ms service=bus type=message.part.updated publishing
INFO 2025-12-20T16:24:41 +1ms service=bus type=session.updated publishing
INFO 2025-12-20T16:24:41 +1ms service=bus type=session.status publishing
INFO 2025-12-20T16:24:41 +0ms service=session.prompt step=0 sessionID=ses_4c36c267fffejMSKl5tdK60V42 loop
INFO 2025-12-20T16:24:41 +4ms service=llm providerID=opencode modelID=gpt-5-nano sessionID=ses_4c36c267fffejMSKl5tdK60V42 small=true agent=title stream
INFO 2025-12-20T16:24:41 +0ms service=provider status=started providerID=opencode getSDK
INFO 2025-12-20T16:24:41 +0ms service=bus type=message.updated publishing
INFO 2025-12-20T16:24:41 +1ms service=provider providerID=opencode pkg=@ai-sdk/openai using bundled provider
INFO 2025-12-20T16:24:41 +0ms service=provider status=completed duration=1 providerID=opencode getSDK
INFO 2025-12-20T16:24:41 +0ms service=session.prompt status=started resolveTools
INFO 2025-12-20T16:24:41 +2ms service=llm providerID=opencode modelID=gpt-5-nano sessionID=ses_4c36c267fffejMSKl5tdK60V42 small=true agent=title params={"options":{"reasoningEffort":"minimal","promptCacheKey":"ses_4c36c267fffejMSKl5tdK60V42","include":["reasoning.encrypted_content"],"reasoningSummary":"auto"}} params
INFO 2025-12-20T16:24:41 +9ms service=tool.registry status=started invalid
INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=started bash
INFO 2025-12-20T16:24:41 +0ms service=bash-tool shell=/bin/zsh bash tool using shell
INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=started read
INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=started glob
INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=started grep
INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=started list
INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=started edit
INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=started write
INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=started task
INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=started webfetch
INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=started todowrite
INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=started todoread
INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=completed duration=0 invalid
INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=completed duration=0 read
INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=completed duration=0 glob
INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=completed duration=0 grep
INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=completed duration=0 list
INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=completed duration=0 edit
INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=completed duration=0 write
INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=completed duration=0 webfetch
INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=completed duration=0 todowrite
INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=completed duration=0 todoread
INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=completed duration=0 bash
INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=completed duration=0 task
INFO 2025-12-20T16:24:41 +3ms service=mcp key=context7 type=remote found
INFO 2025-12-20T16:24:41 +0ms service=mcp key=playwright type=local found
ERROR 2025-12-20T16:24:42 +750ms service=acp-command promise={} reason=NotFoundError Unhandled rejection
ERROR 2025-12-20T16:24:42 +0ms service=default e=NotFoundError rejection
INFO 2025-12-20T16:24:42 +58ms service=mcp key=context7 transport=StreamableHTTP connected
INFO 2025-12-20T16:24:42 +204ms service=mcp key=playwright toolCount=22 create() successfully created client
INFO 2025-12-20T16:24:42 +435ms service=mcp key=context7 toolCount=2 create() successfully created client
INFO 2025-12-20T16:24:42 +183ms service=session.prompt status=completed duration=1644 resolveTools
INFO 2025-12-20T16:24:42 +4ms service=ripgrep cwd=/Users/qi/code/js/anonymous-chat limit=200 tree
INFO 2025-12-20T16:24:42 +6ms service=bus type=message.updated publishing
INFO 2025-12-20T16:24:42 +0ms service=llm providerID=opencode modelID=gpt-5-nano sessionID=ses_4c36c267fffejMSKl5tdK60V42 small=true agent=title stream
INFO 2025-12-20T16:24:42 +0ms service=llm providerID=opencode modelID=gpt-5-nano sessionID=ses_4c36c267fffejMSKl5tdK60V42 small=true agent=title params={"options":{"reasoningEffort":"minimal","promptCacheKey":"ses_4c36c267fffejMSKl5tdK60V42","include":["reasoning.encrypted_content"],"reasoningSummary":"auto"}} params
INFO 2025-12-20T16:24:42 +2ms service=bus type=session.updated publishing
INFO 2025-12-20T16:24:42 +1ms service=bus type=session.diff publishing
INFO 2025-12-20T16:24:42 +8ms service=session.processor process
INFO 2025-12-20T16:24:42 +0ms service=llm providerID=github-copilot modelID=gemini-3-pro-preview sessionID=ses_4c36c267fffejMSKl5tdK60V42 small=false agent=build stream
INFO 2025-12-20T16:24:42 +0ms service=provider status=started providerID=github-copilot getSDK
INFO 2025-12-20T16:24:42 +0ms service=provider providerID=github-copilot pkg=@ai-sdk/github-copilot using bundled provider
INFO 2025-12-20T16:24:42 +0ms service=provider status=completed duration=0 providerID=github-copilot getSDK
INFO 2025-12-20T16:24:42 +1ms service=llm providerID=github-copilot modelID=gemini-3-pro-preview sessionID=ses_4c36c267fffejMSKl5tdK60V42 small=false agent=build params={"temperature":1,"options":{}} params
INFO 2025-12-20T16:24:42 +0ms service=bus type=session.status publishing
INFO 2025-12-20T16:24:43 +875ms service=server method=PUT path=/auth/github-copilot request
INFO 2025-12-20T16:24:43 +0ms service=server status=started method=PUT path=/auth/github-copilot request
INFO 2025-12-20T16:24:43 +2ms service=server status=completed duration=2 method=PUT path=/auth/github-copilot request
ERROR 2025-12-20T16:24:43 +117ms service=acp-command promise={} reason=NotFoundError Unhandled rejection
ERROR 2025-12-20T16:24:43 +0ms service=default e=NotFoundError rejection
INFO 2025-12-20T16:24:44 +201ms service=bus type=session.updated publishing
INFO 2025-12-20T16:24:44 +668ms service=session.summary title=Greeting message review title
INFO 2025-12-20T16:24:44 +1ms service=bus type=message.updated publishing
ERROR 2025-12-20T16:24:45 +335ms service=acp-command promise={} reason=NotFoundError Unhandled rejection
ERROR 2025-12-20T16:24:45 +1ms service=default e=NotFoundError rejection
INFO 2025-12-20T16:24:48 +3451ms service=snapshot hash=f51e11412b0ba24cf89db61504f90d111713cfdd
cwd=/Users/qi/code/js/anonymous-chat git=/Users/qi/.local/share/opencode/snapshot/983ca79f04d6ba3e6cbe80bb36d7597515e3b971 tracking
INFO 2025-12-20T16:24:48 +1ms service=bus type=message.part.updated publishing
INFO 2025-12-20T16:24:48 +296ms service=bus type=message.part.updated publishing
INFO 2025-12-20T16:24:48 +1ms service=bus type=message.part.updated publishing

Hello! How can I help you with the anonymous-chat project today?

INFO 2025-12-20T16:24:48 +39ms service=snapshot hash=f51e11412b0ba24cf89db61504f90d111713cfdd
cwd=/Users/qi/code/js/anonymous-chat git=/Users/qi/.local/share/opencode/snapshot/983ca79f04d6ba3e6cbe80bb36d7597515e3b971 tracking
INFO 2025-12-20T16:24:48 +1ms service=bus type=message.part.updated publishing
INFO 2025-12-20T16:24:48 +0ms service=bus type=message.updated publishing
INFO 2025-12-20T16:24:49 +29ms service=bus type=message.updated publishing
INFO 2025-12-20T16:24:49 +0ms service=bus type=session.status publishing
INFO 2025-12-20T16:24:49 +0ms service=session.prompt step=1 sessionID=ses_4c36c267fffejMSKl5tdK60V42 loop
INFO 2025-12-20T16:24:49 +2ms service=session.prompt sessionID=ses_4c36c267fffejMSKl5tdK60V42 exiting loop
INFO 2025-12-20T16:24:49 +0ms service=session.compaction pruning
INFO 2025-12-20T16:24:49 +1ms service=session.prompt sessionID=ses_4c36c267fffejMSKl5tdK60V42 cancel
INFO 2025-12-20T16:24:49 +0ms service=bus type=session.status publishing
INFO 2025-12-20T16:24:49 +0ms service=bus type=session.idle publishing
INFO 2025-12-20T16:24:49 +1ms service=default directory=/Users/qi/code/js/anonymous-chat disposing instance
INFO 2025-12-20T16:24:49 +0ms service=state key=/Users/qi/code/js/anonymous-chat waiting for state disposal to complete
INFO 2025-12-20T16:24:49 +1ms service=bus type=file.watcher.updated unsubscribing
INFO 2025-12-20T16:24:49 +1ms service=state key=/Users/qi/code/js/anonymous-chat state disposal completed
So the issue seems to be bun install when HTTP_PROXY is set. A workaround is to temporarily unset proxy, and run opencode, then set the proxy, opencode will use existing cahce ...

Agree, I encounter this using a proxy.

@Liyw979 commented on GitHub (Dec 22, 2025): > I encounter this issue too, here are the steps: Proxy: > > ``` > ➜ echo $HTTPS_PROXY $HTTP_PROXY $ALL_PROXY > http://127.0.0.1:7890 http://127.0.0.1:7890 socks5://127.0.0.1:7890 > ``` > > Cache: > > ``` > ➜ ls -al ~/.cache/opencode/node_modules > total 0 > drwxr-xr-x@ 3 qi staff 96 Dec 21 00:08 . > drwxr-xr-x@ 6 qi staff 192 Dec 21 00:08 .. > drwxr-xr-x@ 9 qi staff 288 Dec 21 00:08 opencode-copilot-auth > ``` > > Run with `--print-logs`: : > > logs of stucked at installing plugins? > ``` > ➜ opencode run hello --print-logs > > INFO 2025-12-20T16:12:57 +552ms service=default version=1.0.174 args=["run","hello","--print-logs"] opencode > INFO 2025-12-20T16:12:57 +0ms service=default directory=/Users/qi/code/js/anonymous-chat creating instance > INFO 2025-12-20T16:12:57 +1ms service=project directory=/Users/qi/code/js/anonymous-chat fromDirectory > INFO 2025-12-20T16:12:57 +26ms service=default directory=/Users/qi/code/js/anonymous-chat bootstrapping > INFO 2025-12-20T16:12:57 +3ms service=config path=/Users/qi/.config/opencode/config.json loading > INFO 2025-12-20T16:12:57 +0ms service=config path=/Users/qi/.config/opencode/opencode.json loading > INFO 2025-12-20T16:12:57 +0ms service=config path=/Users/qi/.config/opencode/opencode.jsonc loading > INFO 2025-12-20T16:12:57 +5ms service=bun cmd=["/opt/homebrew/Cellar/opencode/1.0.174/libexec/lib/node_modules/opencode-ai/node_modules/opencode-darwin-arm64/bin/opencode","add","@opencode-ai/plugin@1.0.174","--exact"] cwd=/Users/qi/.config/opencode running > INFO 2025-12-20T16:12:57 +16ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd) > > installed @opencode-ai/plugin@1.0.174 > > [9.00ms] done > stderr=Saved lockfile > done > INFO 2025-12-20T16:12:57 +3ms service=plugin path=opencode-copilot-auth@0.0.9 loading plugin > INFO 2025-12-20T16:12:57 +6ms service=plugin path=opencode-anthropic-auth@0.0.5 loading plugin > INFO 2025-12-20T16:12:57 +0ms service=bun pkg=opencode-anthropic-auth version=0.0.5 installing package using Bun's default registry resolution > INFO 2025-12-20T16:12:57 +0ms service=bun cmd=["/opt/homebrew/Cellar/opencode/1.0.174/libexec/lib/node_modules/opencode-ai/node_modules/opencode-darwin-arm64/bin/opencode","add","--force","--exact","--cwd","/Users/qi/.cache/opencode","opencode-anthropic-auth@0.0.5"] cwd=/Users/qi/.cache/opencode running > ``` > > after 4 minites, it finally finished: > > logs of 4 minutes later > ``` > INFO 2025-12-20T16:12:57 +0ms service=bun cmd=["/opt/homebrew/Cellar/opencode/1.0.174/libexec/lib/node_modules/opencode-ai/node_modules/opencode-darwin-arm64/bin/opencode","add","--force","--exact","--cwd","/Users/qi/.cache/opencode","opencode-anthropic-auth@0.0.5"] cwd=/Users/qi/.cache/opencode running > INFO 2025-12-20T16:16:57 +240367ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd) > > + opencode-copilot-auth@0.0.9 > > installed opencode-anthropic-auth@0.0.5 > > 14 packages installed [240.36s] > stderr=Resolving dependencies > Resolved, downloaded and extracted [3] > Saved lockfile > done > INFO 2025-12-20T16:16:57 +33ms service=bus type=* subscribing > INFO 2025-12-20T16:16:57 +0ms service=bus type=session.updated subscribing > INFO 2025-12-20T16:16:57 +0ms service=bus type=message.updated subscribing > INFO 2025-12-20T16:16:57 +0ms service=bus type=message.part.updated subscribing > INFO 2025-12-20T16:16:57 +0ms service=bus type=session.updated subscribing > INFO 2025-12-20T16:16:57 +0ms service=bus type=message.updated subscribing > INFO 2025-12-20T16:16:57 +0ms service=bus type=message.part.updated subscribing > INFO 2025-12-20T16:16:57 +0ms service=bus type=session.diff subscribing > INFO 2025-12-20T16:16:57 +1ms service=format init > INFO 2025-12-20T16:16:57 +0ms service=bus type=file.edited subscribing > INFO 2025-12-20T16:16:57 +0ms service=lsp serverIds=deno, typescript, vue, eslint, oxlint, biome, gopls, ruby-lsp, pyright, elixir-ls, zls, csharp, fsharp, sourcekit-lsp, rust, clangd, svelte, astro, jdtls, yaml-ls, lua-ls, php intelephense, dart, ocaml-lsp, bash, terraform, texlab, dockerfile, gleam enabled LSP servers > INFO 2025-12-20T16:16:57 +0ms service=file.watcher init > INFO 2025-12-20T16:16:57 +2ms service=bus type=command.executed subscribing > INFO 2025-12-20T16:16:57 +1ms service=file.watcher platform=darwin backend=fs-events watcher backend > INFO 2025-12-20T16:16:57 +48ms service=vcs branch=main initialized > INFO 2025-12-20T16:16:57 +0ms service=bus type=file.watcher.updated subscribing > INFO 2025-12-20T16:16:57 +434ms service=server method=POST path=/session request > INFO 2025-12-20T16:16:57 +0ms service=server status=started method=POST path=/session request > INFO 2025-12-20T16:16:57 +3ms service=session id=ses_4c373379fffem75HqRPE2S6S29 version=1.0.174 projectID=983ca79f04d6ba3e6cbe80bb36d7597515e3b971 directory=/Users/qi/code/js/anonymous-chat title=New session - 2025-12-20T16:16:57.953Z time={"created":1766247417953,"updated":1766247417953} created > INFO 2025-12-20T16:16:57 +1ms service=bus type=session.created publishing > INFO 2025-12-20T16:16:57 +0ms service=bus type=session.updated publishing > INFO 2025-12-20T16:16:57 +3ms service=server status=completed duration=6 method=POST path=/session request > INFO 2025-12-20T16:16:57 +3ms service=server method=GET path=/config request > INFO 2025-12-20T16:16:57 +1ms service=server status=started method=GET path=/config request > INFO 2025-12-20T16:16:57 +0ms service=server status=completed duration=0 method=GET path=/config request > INFO 2025-12-20T16:16:57 +5ms service=server method=GET path=/event request > INFO 2025-12-20T16:16:57 +0ms service=server status=started method=GET path=/event request > INFO 2025-12-20T16:16:57 +0ms service=server event connected > INFO 2025-12-20T16:16:57 +3ms service=bus type=* subscribing > INFO 2025-12-20T16:16:57 +0ms service=server status=completed duration=3 method=GET path=/event request > INFO 2025-12-20T16:16:57 +7ms service=server method=POST path=/session/ses_4c373379fffem75HqRPE2S6S29/message request > INFO 2025-12-20T16:16:57 +0ms service=server status=started method=POST path=/session/ses_4c373379fffem75HqRPE2S6S29/message request > INFO 2025-12-20T16:16:57 +3ms service=server status=completed duration=3 method=POST path=/session/ses_4c373379fffem75HqRPE2S6S29/message request > INFO 2025-12-20T16:16:57 +8ms service=provider status=started state > INFO 2025-12-20T16:16:57 +4ms service=models.dev file={} refreshing > INFO 2025-12-20T16:16:57 +8ms service=provider init > INFO 2025-12-20T16:16:58 +5ms service=provider providerID=github-copilot found > INFO 2025-12-20T16:16:58 +1ms service=provider providerID=opencode found > INFO 2025-12-20T16:16:58 +0ms service=provider status=completed duration=18 state > INFO 2025-12-20T16:16:58 +3ms service=bus type=message.updated publishing > INFO 2025-12-20T16:16:58 +2ms service=bus type=message.part.updated publishing > INFO 2025-12-20T16:16:58 +1ms service=bus type=session.updated publishing > INFO 2025-12-20T16:16:58 +1ms service=bus type=session.status publishing > INFO 2025-12-20T16:16:58 +1ms service=session.prompt step=0 sessionID=ses_4c373379fffem75HqRPE2S6S29 loop > INFO 2025-12-20T16:16:58 +5ms service=llm providerID=opencode modelID=gpt-5-nano sessionID=ses_4c373379fffem75HqRPE2S6S29 small=true agent=title stream > INFO 2025-12-20T16:16:58 +0ms service=provider status=started providerID=opencode getSDK > INFO 2025-12-20T16:16:58 +0ms service=bus type=message.updated publishing > INFO 2025-12-20T16:16:58 +1ms service=provider providerID=opencode pkg=@ai-sdk/openai using bundled provider > INFO 2025-12-20T16:16:58 +0ms service=provider status=completed duration=1 providerID=opencode getSDK > INFO 2025-12-20T16:16:58 +0ms service=session.prompt status=started resolveTools > INFO 2025-12-20T16:16:58 +2ms service=llm providerID=opencode modelID=gpt-5-nano sessionID=ses_4c373379fffem75HqRPE2S6S29 small=true agent=title params={"options":{"reasoningEffort":"minimal","promptCacheKey":"ses_4c373379fffem75HqRPE2S6S29","include":["reasoning.encrypted_content"],"reasoningSummary":"auto"}} params > INFO 2025-12-20T16:16:58 +10ms service=tool.registry status=started invalid > INFO 2025-12-20T16:16:58 +0ms service=tool.registry status=started bash > INFO 2025-12-20T16:16:58 +0ms service=bash-tool shell=/bin/zsh bash tool using shell > INFO 2025-12-20T16:16:58 +1ms service=tool.registry status=started read > INFO 2025-12-20T16:16:58 +0ms service=tool.registry status=started glob > INFO 2025-12-20T16:16:58 +0ms service=tool.registry status=started grep > INFO 2025-12-20T16:16:58 +0ms service=tool.registry status=started list > INFO 2025-12-20T16:16:58 +0ms service=tool.registry status=started edit > INFO 2025-12-20T16:16:58 +0ms service=tool.registry status=started write > INFO 2025-12-20T16:16:58 +0ms service=tool.registry status=started task > INFO 2025-12-20T16:16:58 +0ms service=tool.registry status=started webfetch > INFO 2025-12-20T16:16:58 +0ms service=tool.registry status=started todowrite > INFO 2025-12-20T16:16:58 +0ms service=tool.registry status=started todoread > INFO 2025-12-20T16:16:58 +0ms service=tool.registry status=completed duration=1 invalid > INFO 2025-12-20T16:16:58 +0ms service=tool.registry status=completed duration=1 read > INFO 2025-12-20T16:16:58 +0ms service=tool.registry status=completed duration=0 glob > INFO 2025-12-20T16:16:58 +0ms service=tool.registry status=completed duration=0 grep > INFO 2025-12-20T16:16:58 +0ms service=tool.registry status=completed duration=0 list > INFO 2025-12-20T16:16:58 +0ms service=tool.registry status=completed duration=0 edit > INFO 2025-12-20T16:16:58 +0ms service=tool.registry status=completed duration=0 write > INFO 2025-12-20T16:16:58 +0ms service=tool.registry status=completed duration=0 webfetch > INFO 2025-12-20T16:16:58 +0ms service=tool.registry status=completed duration=0 todowrite > INFO 2025-12-20T16:16:58 +0ms service=tool.registry status=completed duration=0 todoread > INFO 2025-12-20T16:16:58 +0ms service=tool.registry status=completed duration=1 bash > INFO 2025-12-20T16:16:58 +0ms service=tool.registry status=completed duration=0 task > INFO 2025-12-20T16:16:58 +3ms service=mcp key=context7 type=remote found > INFO 2025-12-20T16:16:58 +0ms service=mcp key=playwright type=local found > ERROR 2025-12-20T16:16:58 +923ms service=acp-command promise={} reason=NotFoundError Unhandled rejection > ERROR 2025-12-20T16:16:58 +0ms service=default e=NotFoundError rejection > INFO 2025-12-20T16:16:59 +127ms service=mcp key=playwright toolCount=22 create() successfully created client > INFO 2025-12-20T16:16:59 +54ms service=mcp key=context7 transport=StreamableHTTP connected > INFO 2025-12-20T16:16:59 +556ms service=mcp key=context7 toolCount=2 create() successfully created client > INFO 2025-12-20T16:16:59 +233ms service=bus type=session.updated publishing > INFO 2025-12-20T16:17:00 +351ms service=session.prompt status=completed duration=2260 resolveTools > INFO 2025-12-20T16:17:00 +11ms service=ripgrep cwd=/Users/qi/code/js/anonymous-chat limit=200 tree > INFO 2025-12-20T16:17:00 +13ms service=bus type=message.updated publishing > INFO 2025-12-20T16:17:00 +1ms service=llm providerID=opencode modelID=gpt-5-nano sessionID=ses_4c373379fffem75HqRPE2S6S29 small=true agent=title stream > INFO 2025-12-20T16:17:00 +0ms service=llm providerID=opencode modelID=gpt-5-nano sessionID=ses_4c373379fffem75HqRPE2S6S29 small=true agent=title params={"options":{"reasoningEffort":"minimal","promptCacheKey":"ses_4c373379fffem75HqRPE2S6S29","include":["reasoning.encrypted_content"],"reasoningSummary":"auto"}} params > INFO 2025-12-20T16:17:00 +3ms service=bus type=session.updated publishing > INFO 2025-12-20T16:17:00 +1ms service=bus type=session.diff publishing > INFO 2025-12-20T16:17:00 +9ms service=session.processor process > INFO 2025-12-20T16:17:00 +0ms service=llm providerID=github-copilot modelID=gemini-3-pro-preview sessionID=ses_4c373379fffem75HqRPE2S6S29 small=false agent=build stream > INFO 2025-12-20T16:17:00 +0ms service=provider status=started providerID=github-copilot getSDK > INFO 2025-12-20T16:17:00 +0ms service=provider providerID=github-copilot pkg=@ai-sdk/github-copilot using bundled provider > INFO 2025-12-20T16:17:00 +0ms service=provider status=completed duration=0 providerID=github-copilot getSDK > INFO 2025-12-20T16:17:00 +1ms service=llm providerID=github-copilot modelID=gemini-3-pro-preview sessionID=ses_4c373379fffem75HqRPE2S6S29 small=false agent=build params={"temperature":1,"options":{}} params > INFO 2025-12-20T16:17:00 +1ms service=bus type=session.status publishing > ERROR 2025-12-20T16:17:00 +612ms service=acp-command promise={} reason=NotFoundError Unhandled rejection > ERROR 2025-12-20T16:17:00 +0ms service=default e=NotFoundError rejection > INFO 2025-12-20T16:17:01 +986ms service=session.summary title=Greeting handling title > INFO 2025-12-20T16:17:01 +12ms service=bus type=message.updated publishing > ERROR 2025-12-20T16:17:02 +1008ms service=acp-command promise={} reason=NotFoundError Unhandled rejection > ERROR 2025-12-20T16:17:02 +0ms service=default e=NotFoundError rejection > INFO 2025-12-20T16:17:05 +2343ms service=snapshot hash=f51e11412b0ba24cf89db61504f90d111713cfdd > cwd=/Users/qi/code/js/anonymous-chat git=/Users/qi/.local/share/opencode/snapshot/983ca79f04d6ba3e6cbe80bb36d7597515e3b971 tracking > INFO 2025-12-20T16:17:05 +1ms service=bus type=message.part.updated publishing > INFO 2025-12-20T16:17:05 +310ms service=bus type=message.part.updated publishing > INFO 2025-12-20T16:17:05 +6ms service=bus type=message.part.updated publishing > > Hello. I see you're working on the `anonymous-chat` project. How can I assist you with your codebase today? > > INFO 2025-12-20T16:17:05 +64ms service=snapshot hash=f51e11412b0ba24cf89db61504f90d111713cfdd > cwd=/Users/qi/code/js/anonymous-chat git=/Users/qi/.local/share/opencode/snapshot/983ca79f04d6ba3e6cbe80bb36d7597515e3b971 tracking > INFO 2025-12-20T16:17:05 +1ms service=bus type=message.part.updated publishing > INFO 2025-12-20T16:17:05 +1ms service=bus type=message.updated publishing > INFO 2025-12-20T16:17:05 +30ms service=bus type=message.updated publishing > INFO 2025-12-20T16:17:05 +0ms service=bus type=session.status publishing > INFO 2025-12-20T16:17:05 +0ms service=session.prompt step=1 sessionID=ses_4c373379fffem75HqRPE2S6S29 loop > INFO 2025-12-20T16:17:05 +2ms service=session.prompt sessionID=ses_4c373379fffem75HqRPE2S6S29 exiting loop > INFO 2025-12-20T16:17:05 +0ms service=session.compaction pruning > INFO 2025-12-20T16:17:05 +1ms service=session.prompt sessionID=ses_4c373379fffem75HqRPE2S6S29 cancel > INFO 2025-12-20T16:17:05 +1ms service=bus type=session.status publishing > INFO 2025-12-20T16:17:05 +0ms service=bus type=session.idle publishing > INFO 2025-12-20T16:17:05 +0ms service=session.compaction pruned=0 total=0 found > INFO 2025-12-20T16:17:05 +1ms service=default directory=/Users/qi/code/js/anonymous-chat disposing instance > INFO 2025-12-20T16:17:05 +0ms service=state key=/Users/qi/code/js/anonymous-chat waiting for state disposal to complete > INFO 2025-12-20T16:17:05 +0ms service=bus type=file.watcher.updated unsubscribing > INFO 2025-12-20T16:17:05 +1ms service=state key=/Users/qi/code/js/anonymous-chat state disposal completed > ``` > > After that `opencode` opens immediately and I believe it's because there are caches inside `~/.cache/opencode/node_modules` . > > As a contrast, I _remove the cache_ and _unset_ proxy then run: > > logs of opencode run without stucking > rm -rf ~/.cache/opencode && proxy unset && echo $HTTPS_PROXY $HTTP_PROXY $ALL_PROXY > # empty, no proxy > > opencode run hello --print-logs > > > INFO 2025-12-20T16:24:40 +356ms service=default version=1.0.174 args=["run","hello","--print-logs"] opencode > INFO 2025-12-20T16:24:40 +1ms service=default directory=/Users/qi/code/js/anonymous-chat creating instance > INFO 2025-12-20T16:24:40 +0ms service=project directory=/Users/qi/code/js/anonymous-chat fromDirectory > INFO 2025-12-20T16:24:40 +28ms service=default directory=/Users/qi/code/js/anonymous-chat bootstrapping > INFO 2025-12-20T16:24:40 +2ms service=config path=/Users/qi/.config/opencode/config.json loading > INFO 2025-12-20T16:24:40 +0ms service=config path=/Users/qi/.config/opencode/opencode.json loading > INFO 2025-12-20T16:24:40 +0ms service=config path=/Users/qi/.config/opencode/opencode.jsonc loading > INFO 2025-12-20T16:24:40 +5ms service=bun cmd=["/opt/homebrew/Cellar/opencode/1.0.174/libexec/lib/node_modules/opencode-ai/node_modules/opencode-darwin-arm64/bin/opencode","add","@opencode-ai/plugin@1.0.174","--exact"] cwd=/Users/qi/.config/opencode running > INFO 2025-12-20T16:24:40 +21ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd) > > installed @opencode-ai/plugin@1.0.174 > > [13.00ms] done > stderr=Saved lockfile > done > INFO 2025-12-20T16:24:40 +2ms service=plugin path=opencode-copilot-auth@0.0.9 loading plugin > INFO 2025-12-20T16:24:40 +2ms service=bun pkg=opencode-copilot-auth version=0.0.9 installing package using Bun's default registry resolution > INFO 2025-12-20T16:24:40 +0ms service=bun cmd=["/opt/homebrew/Cellar/opencode/1.0.174/libexec/lib/node_modules/opencode-ai/node_modules/opencode-darwin-arm64/bin/opencode","add","--force","--exact","--cwd","/Users/qi/.cache/opencode","opencode-copilot-auth@0.0.9"] cwd=/Users/qi/.cache/opencode running > INFO 2025-12-20T16:24:40 +8ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd) > > installed opencode-copilot-auth@0.0.9 > > 1 package installed [3.00ms] > stderr=Saved lockfile > done > INFO 2025-12-20T16:24:40 +6ms service=plugin path=opencode-anthropic-auth@0.0.5 loading plugin > INFO 2025-12-20T16:24:40 +1ms service=bun pkg=opencode-anthropic-auth version=0.0.5 installing package using Bun's default registry resolution > INFO 2025-12-20T16:24:40 +0ms service=bun cmd=["/opt/homebrew/Cellar/opencode/1.0.174/libexec/lib/node_modules/opencode-ai/node_modules/opencode-darwin-arm64/bin/opencode","add","--force","--exact","--cwd","/Users/qi/.cache/opencode","opencode-anthropic-auth@0.0.5"] cwd=/Users/qi/.cache/opencode running > INFO 2025-12-20T16:24:41 +361ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd) > > + opencode-copilot-auth@0.0.9 > > installed opencode-anthropic-auth@0.0.5 > > 14 packages installed [355.00ms] > stderr=Resolving dependencies > Resolved, downloaded and extracted [3] > Saved lockfile > done > INFO 2025-12-20T16:24:41 +25ms service=bus type=* subscribing > INFO 2025-12-20T16:24:41 +0ms service=bus type=session.updated subscribing > INFO 2025-12-20T16:24:41 +0ms service=bus type=message.updated subscribing > INFO 2025-12-20T16:24:41 +0ms service=bus type=message.part.updated subscribing > INFO 2025-12-20T16:24:41 +0ms service=bus type=session.updated subscribing > INFO 2025-12-20T16:24:41 +0ms service=bus type=message.updated subscribing > INFO 2025-12-20T16:24:41 +0ms service=bus type=message.part.updated subscribing > INFO 2025-12-20T16:24:41 +0ms service=bus type=session.diff subscribing > INFO 2025-12-20T16:24:41 +0ms service=format init > INFO 2025-12-20T16:24:41 +0ms service=bus type=file.edited subscribing > INFO 2025-12-20T16:24:41 +1ms service=lsp serverIds=deno, typescript, vue, eslint, oxlint, biome, gopls, ruby-lsp, pyright, elixir-ls, zls, csharp, fsharp, sourcekit-lsp, rust, clangd, svelte, astro, jdtls, yaml-ls, lua-ls, php intelephense, dart, ocaml-lsp, bash, terraform, texlab, dockerfile, gleam enabled LSP servers > INFO 2025-12-20T16:24:41 +0ms service=file.watcher init > INFO 2025-12-20T16:24:41 +1ms service=bus type=command.executed subscribing > INFO 2025-12-20T16:24:41 +0ms service=file.watcher platform=darwin backend=fs-events watcher backend > INFO 2025-12-20T16:24:41 +45ms service=vcs branch=main initialized > INFO 2025-12-20T16:24:41 +0ms service=bus type=file.watcher.updated subscribing > INFO 2025-12-20T16:24:41 +9ms service=server method=POST path=/session request > INFO 2025-12-20T16:24:41 +0ms service=server status=started method=POST path=/session request > INFO 2025-12-20T16:24:41 +2ms service=session id=ses_4c36c267fffejMSKl5tdK60V42 version=1.0.174 projectID=983ca79f04d6ba3e6cbe80bb36d7597515e3b971 directory=/Users/qi/code/js/anonymous-chat title=New session - 2025-12-20T16:24:41.088Z time={"created":1766247881088,"updated":1766247881088} created > INFO 2025-12-20T16:24:41 +1ms service=bus type=session.created publishing > INFO 2025-12-20T16:24:41 +0ms service=bus type=session.updated publishing > INFO 2025-12-20T16:24:41 +1ms service=server status=completed duration=4 method=POST path=/session request > INFO 2025-12-20T16:24:41 +197ms service=server method=GET path=/config request > INFO 2025-12-20T16:24:41 +0ms service=server status=started method=GET path=/config request > INFO 2025-12-20T16:24:41 +0ms service=server status=completed duration=0 method=GET path=/config request > INFO 2025-12-20T16:24:41 +4ms service=server method=GET path=/event request > INFO 2025-12-20T16:24:41 +0ms service=server status=started method=GET path=/event request > INFO 2025-12-20T16:24:41 +0ms service=server event connected > INFO 2025-12-20T16:24:41 +2ms service=bus type=* subscribing > INFO 2025-12-20T16:24:41 +1ms service=server status=completed duration=3 method=GET path=/event request > INFO 2025-12-20T16:24:41 +1ms service=server method=POST path=/session/ses_4c36c267fffejMSKl5tdK60V42/message request > INFO 2025-12-20T16:24:41 +0ms service=server status=started method=POST path=/session/ses_4c36c267fffejMSKl5tdK60V42/message request > INFO 2025-12-20T16:24:41 +2ms service=server status=completed duration=2 method=POST path=/session/ses_4c36c267fffejMSKl5tdK60V42/message request > INFO 2025-12-20T16:24:41 +4ms service=provider status=started state > INFO 2025-12-20T16:24:41 +4ms service=models.dev file={} refreshing > INFO 2025-12-20T16:24:41 +7ms service=provider init > INFO 2025-12-20T16:24:41 +4ms service=provider providerID=github-copilot found > INFO 2025-12-20T16:24:41 +0ms service=provider providerID=opencode found > INFO 2025-12-20T16:24:41 +0ms service=provider status=completed duration=15 state > INFO 2025-12-20T16:24:41 +2ms service=bus type=message.updated publishing > INFO 2025-12-20T16:24:41 +2ms service=bus type=message.part.updated publishing > INFO 2025-12-20T16:24:41 +1ms service=bus type=session.updated publishing > INFO 2025-12-20T16:24:41 +1ms service=bus type=session.status publishing > INFO 2025-12-20T16:24:41 +0ms service=session.prompt step=0 sessionID=ses_4c36c267fffejMSKl5tdK60V42 loop > INFO 2025-12-20T16:24:41 +4ms service=llm providerID=opencode modelID=gpt-5-nano sessionID=ses_4c36c267fffejMSKl5tdK60V42 small=true agent=title stream > INFO 2025-12-20T16:24:41 +0ms service=provider status=started providerID=opencode getSDK > INFO 2025-12-20T16:24:41 +0ms service=bus type=message.updated publishing > INFO 2025-12-20T16:24:41 +1ms service=provider providerID=opencode pkg=@ai-sdk/openai using bundled provider > INFO 2025-12-20T16:24:41 +0ms service=provider status=completed duration=1 providerID=opencode getSDK > INFO 2025-12-20T16:24:41 +0ms service=session.prompt status=started resolveTools > INFO 2025-12-20T16:24:41 +2ms service=llm providerID=opencode modelID=gpt-5-nano sessionID=ses_4c36c267fffejMSKl5tdK60V42 small=true agent=title params={"options":{"reasoningEffort":"minimal","promptCacheKey":"ses_4c36c267fffejMSKl5tdK60V42","include":["reasoning.encrypted_content"],"reasoningSummary":"auto"}} params > INFO 2025-12-20T16:24:41 +9ms service=tool.registry status=started invalid > INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=started bash > INFO 2025-12-20T16:24:41 +0ms service=bash-tool shell=/bin/zsh bash tool using shell > INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=started read > INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=started glob > INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=started grep > INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=started list > INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=started edit > INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=started write > INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=started task > INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=started webfetch > INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=started todowrite > INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=started todoread > INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=completed duration=0 invalid > INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=completed duration=0 read > INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=completed duration=0 glob > INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=completed duration=0 grep > INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=completed duration=0 list > INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=completed duration=0 edit > INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=completed duration=0 write > INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=completed duration=0 webfetch > INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=completed duration=0 todowrite > INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=completed duration=0 todoread > INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=completed duration=0 bash > INFO 2025-12-20T16:24:41 +0ms service=tool.registry status=completed duration=0 task > INFO 2025-12-20T16:24:41 +3ms service=mcp key=context7 type=remote found > INFO 2025-12-20T16:24:41 +0ms service=mcp key=playwright type=local found > ERROR 2025-12-20T16:24:42 +750ms service=acp-command promise={} reason=NotFoundError Unhandled rejection > ERROR 2025-12-20T16:24:42 +0ms service=default e=NotFoundError rejection > INFO 2025-12-20T16:24:42 +58ms service=mcp key=context7 transport=StreamableHTTP connected > INFO 2025-12-20T16:24:42 +204ms service=mcp key=playwright toolCount=22 create() successfully created client > INFO 2025-12-20T16:24:42 +435ms service=mcp key=context7 toolCount=2 create() successfully created client > INFO 2025-12-20T16:24:42 +183ms service=session.prompt status=completed duration=1644 resolveTools > INFO 2025-12-20T16:24:42 +4ms service=ripgrep cwd=/Users/qi/code/js/anonymous-chat limit=200 tree > INFO 2025-12-20T16:24:42 +6ms service=bus type=message.updated publishing > INFO 2025-12-20T16:24:42 +0ms service=llm providerID=opencode modelID=gpt-5-nano sessionID=ses_4c36c267fffejMSKl5tdK60V42 small=true agent=title stream > INFO 2025-12-20T16:24:42 +0ms service=llm providerID=opencode modelID=gpt-5-nano sessionID=ses_4c36c267fffejMSKl5tdK60V42 small=true agent=title params={"options":{"reasoningEffort":"minimal","promptCacheKey":"ses_4c36c267fffejMSKl5tdK60V42","include":["reasoning.encrypted_content"],"reasoningSummary":"auto"}} params > INFO 2025-12-20T16:24:42 +2ms service=bus type=session.updated publishing > INFO 2025-12-20T16:24:42 +1ms service=bus type=session.diff publishing > INFO 2025-12-20T16:24:42 +8ms service=session.processor process > INFO 2025-12-20T16:24:42 +0ms service=llm providerID=github-copilot modelID=gemini-3-pro-preview sessionID=ses_4c36c267fffejMSKl5tdK60V42 small=false agent=build stream > INFO 2025-12-20T16:24:42 +0ms service=provider status=started providerID=github-copilot getSDK > INFO 2025-12-20T16:24:42 +0ms service=provider providerID=github-copilot pkg=@ai-sdk/github-copilot using bundled provider > INFO 2025-12-20T16:24:42 +0ms service=provider status=completed duration=0 providerID=github-copilot getSDK > INFO 2025-12-20T16:24:42 +1ms service=llm providerID=github-copilot modelID=gemini-3-pro-preview sessionID=ses_4c36c267fffejMSKl5tdK60V42 small=false agent=build params={"temperature":1,"options":{}} params > INFO 2025-12-20T16:24:42 +0ms service=bus type=session.status publishing > INFO 2025-12-20T16:24:43 +875ms service=server method=PUT path=/auth/github-copilot request > INFO 2025-12-20T16:24:43 +0ms service=server status=started method=PUT path=/auth/github-copilot request > INFO 2025-12-20T16:24:43 +2ms service=server status=completed duration=2 method=PUT path=/auth/github-copilot request > ERROR 2025-12-20T16:24:43 +117ms service=acp-command promise={} reason=NotFoundError Unhandled rejection > ERROR 2025-12-20T16:24:43 +0ms service=default e=NotFoundError rejection > INFO 2025-12-20T16:24:44 +201ms service=bus type=session.updated publishing > INFO 2025-12-20T16:24:44 +668ms service=session.summary title=Greeting message review title > INFO 2025-12-20T16:24:44 +1ms service=bus type=message.updated publishing > ERROR 2025-12-20T16:24:45 +335ms service=acp-command promise={} reason=NotFoundError Unhandled rejection > ERROR 2025-12-20T16:24:45 +1ms service=default e=NotFoundError rejection > INFO 2025-12-20T16:24:48 +3451ms service=snapshot hash=f51e11412b0ba24cf89db61504f90d111713cfdd > cwd=/Users/qi/code/js/anonymous-chat git=/Users/qi/.local/share/opencode/snapshot/983ca79f04d6ba3e6cbe80bb36d7597515e3b971 tracking > INFO 2025-12-20T16:24:48 +1ms service=bus type=message.part.updated publishing > INFO 2025-12-20T16:24:48 +296ms service=bus type=message.part.updated publishing > INFO 2025-12-20T16:24:48 +1ms service=bus type=message.part.updated publishing > > Hello! How can I help you with the `anonymous-chat` project today? > > INFO 2025-12-20T16:24:48 +39ms service=snapshot hash=f51e11412b0ba24cf89db61504f90d111713cfdd > cwd=/Users/qi/code/js/anonymous-chat git=/Users/qi/.local/share/opencode/snapshot/983ca79f04d6ba3e6cbe80bb36d7597515e3b971 tracking > INFO 2025-12-20T16:24:48 +1ms service=bus type=message.part.updated publishing > INFO 2025-12-20T16:24:48 +0ms service=bus type=message.updated publishing > INFO 2025-12-20T16:24:49 +29ms service=bus type=message.updated publishing > INFO 2025-12-20T16:24:49 +0ms service=bus type=session.status publishing > INFO 2025-12-20T16:24:49 +0ms service=session.prompt step=1 sessionID=ses_4c36c267fffejMSKl5tdK60V42 loop > INFO 2025-12-20T16:24:49 +2ms service=session.prompt sessionID=ses_4c36c267fffejMSKl5tdK60V42 exiting loop > INFO 2025-12-20T16:24:49 +0ms service=session.compaction pruning > INFO 2025-12-20T16:24:49 +1ms service=session.prompt sessionID=ses_4c36c267fffejMSKl5tdK60V42 cancel > INFO 2025-12-20T16:24:49 +0ms service=bus type=session.status publishing > INFO 2025-12-20T16:24:49 +0ms service=bus type=session.idle publishing > INFO 2025-12-20T16:24:49 +1ms service=default directory=/Users/qi/code/js/anonymous-chat disposing instance > INFO 2025-12-20T16:24:49 +0ms service=state key=/Users/qi/code/js/anonymous-chat waiting for state disposal to complete > INFO 2025-12-20T16:24:49 +1ms service=bus type=file.watcher.updated unsubscribing > INFO 2025-12-20T16:24:49 +1ms service=state key=/Users/qi/code/js/anonymous-chat state disposal completed > So the issue seems to be `bun install` when `HTTP_PROXY` is set. A workaround is to temporarily unset proxy, and run `opencode`, then set the proxy, `opencode` will use existing cahce ... Agree, I encounter this using a proxy.
Author
Owner

@ferrao commented on GitHub (Jan 28, 2026):

I am getting this due to very slow install of @gitlab/opencode-gitlab-auth@1.3.2, altough my local network is fast and working fine for everything else.

The problem is that we get a blank screen and no clue as to what is happening. If there was a installing plugins loader of some kind, it would make things simple...

The way I understood what was going on was by looking at the logs and found opencode was stuck at:

2026-01-28T234123.log:INFO  2026-01-28T23:41:23 +0ms service=bun cmd=["/home/ferrao/.local/share/mise/installs/github-anomalyco-opencode/1.1.40/opencode","add","--force","--exact","--cwd","/home/ferrao/.cache/opencode","@gitlab/opencode-gitlab-auth@1.3.2"] cwd=/home/ferrao/.cache/opencode running

Then I installed the plugin manually with:

cd ~/.cache/opencode/node_modules
npx bun install @gitlab/opencode-gitlab-auth@1.3.2

Because bun install actually tells me what is going on and the progress of the install, I was able to patiently wait for all the 56 deps of this plugin to download....

Once it finished I could fire opencode and it would open instantly. Hope this helps other people with the same issue.

@ferrao commented on GitHub (Jan 28, 2026): I am getting this due to very slow install of `@gitlab/opencode-gitlab-auth@1.3.2`, altough my local network is fast and working fine for everything else. The problem is that we get a blank screen and no clue as to what is happening. If there was a `installing plugins` loader of some kind, it would make things simple... The way I understood what was going on was by looking at the logs and found opencode was stuck at: ``` 2026-01-28T234123.log:INFO 2026-01-28T23:41:23 +0ms service=bun cmd=["/home/ferrao/.local/share/mise/installs/github-anomalyco-opencode/1.1.40/opencode","add","--force","--exact","--cwd","/home/ferrao/.cache/opencode","@gitlab/opencode-gitlab-auth@1.3.2"] cwd=/home/ferrao/.cache/opencode running ``` Then I installed the plugin manually with: ``` cd ~/.cache/opencode/node_modules npx bun install @gitlab/opencode-gitlab-auth@1.3.2 ``` Because `bun install` actually tells me what is going on and the progress of the install, I was able to patiently wait for all the 56 deps of this plugin to download.... Once it finished I could fire `opencode` and it would open instantly. Hope this helps other people with the same issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3582