Skip to content

TUI stuck forever #2819

Closed
Closed

Description

@eminemead

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

  1. github-actions commented on Sep 27, 2025

    @github-actions
    Contributor

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

    The 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.

  2. self-assigned this
    on Sep 27, 2025
  3. rekram1-node commented on Sep 29, 2025

    @rekram1-node
    Collaborator

    hmm @eminemead this is interesting... How long will it hang for?

    this is pretty weird...

  4. eminemead commented on Sep 29, 2025

    @eminemead
    Author

    from my observation more than an hour. Usually I'll just kill it by that time. :(

  5. rekram1-node commented on Sep 29, 2025

    @rekram1-node
    Collaborator

    yikes that is awful hmm i will have to look into that more for u

  6. lucaspbordignon commented on Sep 29, 2025

    @lucaspbordignon

    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

  7. rekram1-node commented on Sep 29, 2025

    @rekram1-node
    Collaborator

    @lucaspbordignon hmm do you see the same logs more or less as OP? if you do:

    opencode run hello --print-logs

    Also if u don't mind sharing, what countries are yall in? I have seen zen have issues in certain countries due to restrictions

  8. lucaspbordignon commented on Sep 29, 2025

    @lucaspbordignon

    @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)

    ❯ opencode run hello --print-logs
    INFO  2025-09-29T16:24:41 +52ms service=default version=0.13.4 args=["run","hello","--print-logs"] opencode
    INFO  2025-09-29T16:24:41 +1ms service=project directory=/Users/lucasbordignon/code fromDirectory
    INFO  2025-09-29T16:24:41 +5ms service=config path=/Users/lucasbordignon/.config/opencode/config.json loading
    INFO  2025-09-29T16:24:41 +0ms service=config path=/Users/lucasbordignon/.config/opencode/opencode.json loading
    INFO  2025-09-29T16:24:41 +4ms service=config path=/Users/lucasbordignon/.config/opencode/opencode.jsonc loading
    INFO  2025-09-29T16:24:41 +6ms service=plugin path=opencode-copilot-auth@0.0.3 loading plugin
    INFO  2025-09-29T16:24:41 +2ms service=plugin path=opencode-anthropic-auth@0.0.2 loading plugin
    INFO  2025-09-29T16:24:41 +22ms service=bus type=* subscribing
    INFO  2025-09-29T16:24:41 +0ms service=bus type=session.updated subscribing
    INFO  2025-09-29T16:24:41 +0ms service=bus type=message.updated subscribing
    INFO  2025-09-29T16:24:41 +0ms service=bus type=message.part.updated subscribing
    INFO  2025-09-29T16:24:41 +0ms service=format init
    INFO  2025-09-29T16:24:41 +0ms service=bus type=file.edited subscribing
    INFO  2025-09-29T16:24:41 +1ms service=session id=ses_669b59e4dffejQCpv25pixNIm2 version=0.13.4 projectID=global directory=/Users/lucasbordignon/code title=New session - 2025-09-29T16:24:41.138Z time={"created":1759163081138,"updated":1759163081138} created
    INFO  2025-09-29T16:24:41 +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-29T16:24:41 +0ms service=bus type=session.updated publishing
    INFO  2025-09-29T16:24:41 +1ms service=bus type=message.part.updated subscribing
    INFO  2025-09-29T16:24:41 +0ms service=bus type=session.error subscribing
    INFO  2025-09-29T16:24:41 +0ms service=session.prompt session=ses_669b59e4dffejQCpv25pixNIm2 prompt
    INFO  2025-09-29T16:24:41 +2ms service=bus type=message.updated publishing
    INFO  2025-09-29T16:24:41 +0ms service=bus type=message.part.updated publishing
    INFO  2025-09-29T16:24:41 +1ms service=bus type=session.updated publishing
    INFO  2025-09-29T16:24:41 +1ms service=models.dev file={} refreshing
    INFO  2025-09-29T16:24:41 +2ms service=provider init
    INFO  2025-09-29T16:24:41 +1ms service=provider providerID=google found
    INFO  2025-09-29T16:24:41 +0ms service=provider providerID=opencode found
    INFO  2025-09-29T16:24:41 +0ms service=provider providerID=anthropic found
    INFO  2025-09-29T16:24:41 +0ms service=provider providerID=opencode modelID=grok-code getModel
    INFO  2025-09-29T16:24:41 +0ms service=provider status=started providerID=opencode getSDK
    INFO  2025-09-29T16:24:41 +48ms service=provider status=completed duration=48 providerID=opencode getSDK
    INFO  2025-09-29T16:24:41 +0ms service=provider providerID=opencode modelID=grok-code found
    INFO  2025-09-29T16:24:41 +0ms service=session.prompt session=ses_669b59e4dffejQCpv25pixNIm2 sessionID=ses_669b59e4dffejQCpv25pixNIm2 locking
    INFO  2025-09-29T16:24:41 +6ms service=mcp key=playwright type=local found
    INFO  2025-09-29T16:24:41 +733ms service=mcp key=context7 type=remote found
    INFO  2025-09-29T16:24:42 +567ms service=mcp key=figma-dev-mode-mcp-server type=remote found
  9. rekram1-node commented on Sep 29, 2025

    @rekram1-node
    Collaborator

    @lucaspbordignon ah in this case the issue is your mcp server, specifically the figma one is causing the hanging

  10. eminemead commented on Oct 9, 2025

    @eminemead
    Author

    @lucaspbordignon hmm do you see the same logs more or less as OP? if you do:

    opencode run hello --print-logs

    Also if u don't mind sharing, what countries are yall in? I have seen zen have issues in certain countries due to restrictions

    I'm in Taiwan/singapore, no restrictions either.

    for me, it hangs regardless if I'm using zen or not. meh...

  11. jayair commented on Oct 11, 2025

    @jayair
    Contributor

    @eminemead doesn't matter what model you use? even Claude?

  12. thdxr commented on Mar 25, 2026

    @thdxr
    Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions