You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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:
@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?
@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.
➜ 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 resolutionINFO 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 runningINFO 2025-12-20T16:24:40 +8ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd)installed opencode-copilot-auth@0.0.91 package installed [3.00ms] stderr=Saved lockfile doneINFO 2025-12-20T16:24:40 +6ms service=plugin path=opencode-anthropic-auth@0.0.5 loading pluginINFO 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 ...
➜ 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 ...
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:
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.
I had this exact issue and was able to resolve it. If bun is not installed and if IPv6 is enabled but non-functional, bun's DNS resolution hangs indefinitely trying to reach registry.npmjs.org via IPv6. The TUI never renders because it waits for plugin installation to complete. Disabling ipv6 and installing bun resolved the issue for me
Activity
github-actions commentedon Dec 16, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
rekram1-node commentedon 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
tconn93 commentedon Dec 17, 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
yulqen commentedon 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:
rekram1-node commentedon 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?
yulqen commentedon Dec 19, 2025
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.
rekram1-node commentedon Dec 19, 2025
Does it have any proxies setup?
Ill look into this
yulqen commentedon Dec 20, 2025
DNS via Adguard, otherwise a straightforward domestic wifi router.
daolanfler commentedon Dec 20, 2025
I encounter this issue too, here are the steps:
Proxy:
Cache:
Run with
--print-logs: :logs of stucked at installing plugins?
after 4 minites, it finally finished:
logs of 4 minutes later
After that
opencodeopens 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
So the issue seems to be
bun installwhenHTTP_PROXYis set. A workaround is to temporarily unset proxy, and runopencode, then set the proxy,opencodewill use existing cahce ...Liyw979 commentedon Dec 23, 2025
Agree, I encounter this using a proxy.
ferrao commentedon Jan 29, 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 pluginsloader 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:
Then I installed the plugin manually with:
Because
bun installactually 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
opencodeand it would open instantly. Hope this helps other people with the same issue.tbasten commentedon Mar 11, 2026
I had this exact issue and was able to resolve it. If bun is not installed and if IPv6 is enabled but non-functional, bun's DNS resolution hangs indefinitely trying to reach registry.npmjs.org via IPv6. The TUI never renders because it waits for plugin installation to complete. Disabling ipv6 and installing bun resolved the issue for me
FrankHB commentedon Apr 6, 2026
Installing bun directly resolved the issue for me.
github-actions commentedon Jul 3, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.