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
{{ message }}
Repository navigation
Can't run OpenCode under WSL2 Ubuntu, returns empty screen #9963
I don't think it is WSL specific. We've heard about that at rare occasions, but cannot properly reproduce it. cc @rekram1-node what would help to debug this?
Hello there, I found that ipv6 stack in wsl2 may cause such blank screen problem.
For my case, I disabled ipv6 once but dns returns AAAA records rather than A.
Then I re-enabled ipv6 in 'network=Mirrored' mode and it got fixed.
Try disabling ipv6 dns records in your env may helps.
I had a poorly configured opencode.json in my project that was causing this. I had removed a project local plugin, but not the opencode.json file at the root of the project that still referenced the plugin.
Activity
github-actions commentedon Jan 22, 2026
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
it-sha commentedon Jan 22, 2026
Most recommended solution is to change DNS settings
Checked. Problem still remains
it-sha commentedon Jan 22, 2026
Logs
opencode run hello --print-logs
Details
$ opencode run hello --print-logs
INFO 2026-01-22T14:20:48 +263ms service=default version=1.1.31 args=["run","hello","--print-logs"] opencode
INFO 2026-01-22T14:20:48 +1ms service=default directory=/home/max creating instance
INFO 2026-01-22T14:20:48 +0ms service=project directory=/home/max fromDirectory
INFO 2026-01-22T14:20:48 +6ms service=default directory=/home/max bootstrapping
INFO 2026-01-22T14:20:48 +4ms service=config path=/home/max/.config/opencode/config.json loading
INFO 2026-01-22T14:20:48 +1ms service=config path=/home/max/.config/opencode/opencode.json loading
INFO 2026-01-22T14:20:48 +0ms service=config path=/home/max/.config/opencode/opencode.jsonc loading
INFO 2026-01-22T14:20:48 +6ms service=bun cmd=["/home/max/.opencode/bin/opencode","add","@opencode-ai/plugin@1.1.31","--exact"] cwd=/home/max/.config/opencode running
INFO 2026-01-22T14:20:48 +11ms service=config path=/home/max/.opencode/opencode.jsonc loading
INFO 2026-01-22T14:20:48 +0ms service=config path=/home/max/.opencode/opencode.json loading
INFO 2026-01-22T14:20:48 +1ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd)
installed @opencode-ai/plugin@1.1.31
[2.00ms] done
stderr=Saved lockfile
done
INFO 2026-01-22T14:20:48 +0ms service=bun cmd=["/home/max/.opencode/bin/opencode","install"] cwd=/home/max/.config/opencode running
INFO 2026-01-22T14:20:48 +0ms service=bun cmd=["/home/max/.opencode/bin/opencode","add","@opencode-ai/plugin@1.1.31","--exact"] cwd=/home/max/.opencode running
INFO 2026-01-22T14:20:48 +6ms service=plugin name=CodexAuthPlugin loading internal plugin
INFO 2026-01-22T14:20:48 +0ms service=plugin name=CopilotAuthPlugin loading internal plugin
INFO 2026-01-22T14:20:48 +0ms service=plugin path=opencode-anthropic-auth@0.0.9 loading plugin
INFO 2026-01-22T14:20:48 +2ms service=bun code=0 stdout=bun install v1.3.5 (1e86cebd)
Checked 3 installs across 4 packages (no changes) [1.00ms]
stderr= done
INFO 2026-01-22T14:20:48 +1ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd)
installed @opencode-ai/plugin@1.1.31
[1.00ms] done
stderr=Saved lockfile
done
INFO 2026-01-22T14:20:48 +0ms service=bun cmd=["/home/max/.opencode/bin/opencode","install"] cwd=/home/max/.opencode running
INFO 2026-01-22T14:20:48 +15ms service=plugin path=@gitlab/opencode-gitlab-auth@1.3.2 loading plugin
INFO 2026-01-22T14:20:48 +0ms service=bun code=0 stdout=bun install v1.3.5 (1e86cebd)
Checked 3 installs across 4 packages (no changes) [1.00ms]
stderr= done
INFO 2026-01-22T14:20:48 +5ms service=bun pkg=@gitlab/opencode-gitlab-auth version=1.3.2 installing package using Bun's default registry resolution
INFO 2026-01-22T14:20:48 +0ms service=bun cmd=["/home/max/.opencode/bin/opencode","add","--force","--exact","--cwd","/home/max/.cache/opencode","@gitlab/opencode-gitlab-auth@1.3.2"] cwd=/home/max/.cache/opencode running
it-sha commentedon Jan 23, 2026
opencode web --hostname 127.0.0.1 --port 4096
also returns empty screen
it-sha commentedon Jan 23, 2026
@kommander Could you take a look when you have time?
Maybe we have some FAQ for such cases?
kommander commentedon Jan 24, 2026
Seems like the agent server is not coming up properly. Do you have a proxy running?
it-sha commentedon Jan 25, 2026
@kommander
Just WSL on Ubuntu with out-of-the-box config, proxy is not set by intention
OpenCode starts working in 15-20 min with empty screen
It seems like something should be uploaded in the background without any indication to the user
The problem is getting back if I install the Zed plugin for OpenCode

To fix that I have to:
If you need any additional info please let me know
a lot of developers have to use Windows, so WSL in only option for us for AI development.
kommander commentedon Jan 26, 2026
I don't think it is WSL specific. We've heard about that at rare occasions, but cannot properly reproduce it. cc @rekram1-node what would help to debug this?
li-yifei commentedon Jan 27, 2026
Hello there, I found that ipv6 stack in wsl2 may cause such blank screen problem.
For my case, I disabled ipv6 once but dns returns AAAA records rather than A.
Then I re-enabled ipv6 in 'network=Mirrored' mode and it got fixed.
Try disabling ipv6 dns records in your env may helps.
kastrophony commentedon Jan 28, 2026
I found this as well, disabling ipv6 has it working again
GollyJer commentedon Feb 4, 2026
uhg... frustrating road to a fix for this one. Should have come here to search first. 🙃
For those interested.
[wsl2] networkingMode=mirrored dnsTunneling=true firewall=true autoProxy=true kernelCommandLine=ipv6.disable=1 # <-- this fixes it.kommander commentedon Feb 4, 2026
Interesting. We should probably take that into the documentation for windows. wdyt @rekram1-node
tontide1 commentedon Feb 5, 2026
hi ! you can try this
#5361
i got this problem and i fixed it as above
csullivannet commentedon Feb 16, 2026
I had a poorly configured
opencode.jsonin my project that was causing this. I had removed a project local plugin, but not theopencode.jsonfile at the root of the project that still referenced the plugin.github-actions commentedon Apr 22, 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.