Repository navigation
TUI stuck forever #2819
Description
when I run:
opencode run hello --print-logs --log-level DEBUG
I always get stuck:
INFO 2025-09-27T08:20:10 +55ms service=default version=0.12.1 args=["run","hello","--print-logs","--log-level","DEBUG"] opencode
INFO 2025-09-27T08:20:10 +0ms service=project directory=/Users/xiaofei.yin fromDirectory
INFO 2025-09-27T08:20:10 +127ms service=config path=/Users/xiaofei.yin/.config/opencode/config.json loading
INFO 2025-09-27T08:20:10 +1ms service=config path=/Users/xiaofei.yin/.config/opencode/opencode.json loading
INFO 2025-09-27T08:20:10 +0ms service=config path=/Users/xiaofei.yin/.config/opencode/opencode.jsonc loading
INFO 2025-09-27T08:20:10 +1ms service=plugin path=opencode-copilot-auth@0.0.3 loading plugin
INFO 2025-09-27T08:20:10 +3ms service=plugin path=opencode-anthropic-auth@0.0.2 loading plugin
INFO 2025-09-27T08:20:10 +29ms service=bus type=* subscribing
INFO 2025-09-27T08:20:10 +0ms service=bus type=session.updated subscribing
INFO 2025-09-27T08:20:10 +0ms service=bus type=message.updated subscribing
INFO 2025-09-27T08:20:10 +0ms service=bus type=message.part.updated subscribing
INFO 2025-09-27T08:20:10 +0ms service=format init
INFO 2025-09-27T08:20:10 +0ms service=bus type=file.edited subscribing
INFO 2025-09-27T08:20:10 +1ms service=session id=ses_675bde9a3ffeh8pMDwrhrYA09p version=0.12.1 projectID=26072424ee3750becfd7240c09e7a038ed2f7ff8 directory=/Users/xiaofei.yin title=New session - 2025-09-27T08:20:10.972Z time={"created":1758961210972,"updated":1758961210972} created
INFO 2025-09-27T08:20:10 +0ms service=lsp serverIds=typescript, vue, eslint, gopls, ruby-lsp, pyright, elixir-ls, zls, csharp, rust, clangd, svelte, jdtls enabled LSP servers
INFO 2025-09-27T08:20:10 +1ms service=bus type=session.updated publishing
INFO 2025-09-27T08:20:10 +2ms service=bus type=message.part.updated subscribing
INFO 2025-09-27T08:20:10 +0ms service=bus type=session.error subscribing
INFO 2025-09-27T08:20:10 +1ms service=session.prompt session=ses_675bde9a3ffeh8pMDwrhrYA09p prompt
INFO 2025-09-27T08:20:10 +4ms service=bus type=message.updated publishing
INFO 2025-09-27T08:20:10 +0ms service=bus type=message.part.updated publishing
INFO 2025-09-27T08:20:10 +1ms service=bus type=session.updated publishing
INFO 2025-09-27T08:20:10 +2ms service=models.dev file={} refreshing
INFO 2025-09-27T08:20:10 +1ms service=provider init
INFO 2025-09-27T08:20:10 +1ms service=provider providerID=openrouter found
INFO 2025-09-27T08:20:10 +0ms service=provider providerID=opencode found
INFO 2025-09-27T08:20:10 +0ms service=provider providerID=opencode modelID=code-supernova getModel
INFO 2025-09-27T08:20:10 +0ms service=provider status=started providerID=opencode getSDK
INFO 2025-09-27T08:20:11 +61ms service=provider status=completed duration=61 providerID=opencode getSDK
INFO 2025-09-27T08:20:11 +0ms service=provider providerID=opencode modelID=code-supernova found
INFO 2025-09-27T08:20:11 +0ms service=session.prompt session=ses_675bde9a3ffeh8pMDwrhrYA09p sessionID=ses_675bde9a3ffeh8pMDwrhrYA09p locking
any idea?
Activity
github-actions commentedon Sep 27, 2025
This issue might be a duplicate of existing issues. Please check:
opencode runcommand hangs and never completesThe common pattern across these issues is the TUI getting stuck at various stages (initialization, session locking, generating state). Your issue shows it getting stuck at "session locking" which is very similar to the hanging behaviors reported in the above issues.
Feel free to ignore if none of these address your specific case.
rekram1-node commentedon Sep 29, 2025
hmm @eminemead this is interesting... How long will it hang for?
this is pretty weird...
eminemead commentedon Sep 29, 2025
from my observation more than an hour. Usually I'll just kill it by that time. :(
rekram1-node commentedon Sep 29, 2025
yikes that is awful hmm i will have to look into that more for u
lucaspbordignon commentedon Sep 29, 2025
Hey @rekram1-node! Just noticed the same happening with me here, after an upgrade from v0.11.2 to v0.13.4 (if it helps)
Noticed I'm also using opencode zen as the provider, but with a different model (GPT5-codex and Grok), wondering if it has anything to do with that
rekram1-node commentedon Sep 29, 2025
@lucaspbordignon hmm do you see the same logs more or less as OP? if you do:
opencode run hello --print-logsAlso if u don't mind sharing, what countries are yall in? I have seen zen have issues in certain countries due to restrictions
lucaspbordignon commentedon Sep 29, 2025
@rekram1-node - Yes, I see basically the same thing (added the full log with MCP startups and so one), it gets stuck after this chunk of logs
I'm currently in Brazil, re country restrictions. Not sure if that is the cause (have been using zen last week with zero issues, just for context)
rekram1-node commentedon Sep 29, 2025
@lucaspbordignon ah in this case the issue is your mcp server, specifically the figma one is causing the hanging
eminemead commentedon Oct 9, 2025
I'm in Taiwan/singapore, no restrictions either.
for me, it hangs regardless if I'm using zen or not. meh...
jayair commentedon Oct 11, 2025
@eminemead doesn't matter what model you use? even Claude?
fix: add stream idle timeout to prevent sessions from hanging indefin…
fix: add stream idle timeout to prevent sessions from hanging indefin…
fix: add stream idle timeout to prevent sessions from hanging indefin…
fix: add stream idle timeout to prevent sessions from hanging indefin…
fix: add stream idle timeout to prevent sessions from hanging indefin…
thdxr commentedon Mar 25, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.