Skip to content

v0.1.161 - Opencode hangs, presumably from limits, with no error messaging #519

Closed

Description

@austinm911

Started noticing opencode hanging indefinitely on many prompts with 0.1.160. Not really sure how to debug this. I noticed this happening before spending any tokens in a new working session. I am on the $20 pro plan for Claude so also wondering if it will hang if you exceed your limits.

The error message shown sometimes also appears in my situation when opening a new session.

Image

Activity

  1. cravenceiling commented on Jun 29, 2025

    @cravenceiling
    Contributor

    Try running opencode --print-logs it might give you more info about the error.

  2. self-assigned this
    on Jun 29, 2025
  3. thdxr commented on Jun 29, 2025

    @thdxr
    Member

    can you try opencode run hey --print-logs and show me what it does

  4. assigned and unassigned on Jun 29, 2025
  5. austinm911 commented on Jun 29, 2025

    @austinm911
    Author

    @thdxr @cravenceiling here is what both commands end up showing

    Image Image
  6. austinm911 commented on Jun 29, 2025

    @austinm911
    Author

    @thdxr @cravenceiling here is what both commands end up showing

    Image Image

    I'm not sure what was going on with the output in warp so here are the logs with ghostyy

    ❯ opencode run hey --print-logs
    INFO  2025-06-29T23:46:37 +41ms service=default version=0.1.163 args=run,hey,--print-logs opencode
    INFO  2025-06-29T23:46:37 +1ms service=app cwd=/Users/am/Coding/the-forge creating
    INFO  2025-06-29T23:46:37 +6ms service=app git=/Users/am/Coding/the-forge git
    INFO  2025-06-29T23:46:37 +3ms service=bus type=storage.write subscribing
    INFO  2025-06-29T23:46:37 +0ms service=app name=bus registering service
    INFO  2025-06-29T23:46:37 +1ms service=format init
    INFO  2025-06-29T23:46:37 +0ms service=bus type=file.edited subscribing
    INFO  2025-06-29T23:46:37 +0ms service=config.hooks init
    INFO  2025-06-29T23:46:37 +0ms service=bus type=file.edited subscribing
    INFO  2025-06-29T23:46:37 +0ms service=bus type=session.idle subscribing
    INFO  2025-06-29T23:46:37 +0ms service=session id=ses_841ea129effeuudS9GsdjXCaFx version=0.1.163 title=New Session - 2025-06-29T23:46:37.537Z time=[object Object] created
    INFO  2025-06-29T23:46:37 +1ms service=app name=session registering service
    INFO  2025-06-29T23:46:37 +0ms service=app name=storage registering service
    INFO  2025-06-29T23:46:37 +0ms service=storage path=/Users/am/.local/share/opencode/project/Users-am-Coding-the-forge/storage init
    INFO  2025-06-29T23:46:37 +1ms service=bus type=storage.write publishing
    INFO  2025-06-29T23:46:37 +0ms service=app name=config registering service
    INFO  2025-06-29T23:46:37 +4ms service=config $schema=https://opencode.ai/config.json theme=system autoshare=false autoupdate=true mcp=[object Object] loaded
    INFO  2025-06-29T23:46:37 +0ms service=bus type=session.updated publishing
    
    █▀▀█ █▀▀█ █▀▀ █▀▀▄ █▀▀ █▀▀█ █▀▀▄ █▀▀
    █░░█ █░░█ █▀▀ █░░█ █░░ █░░█ █░░█ █▀▀
    ▀▀▀▀ █▀▀▀ ▀▀▀ ▀  ▀ ▀▀▀ ▀▀▀▀ ▀▀▀  ▀▀▀
    
    >  hey
    
    INFO  2025-06-29T23:46:37 +0ms service=app name=provider registering service
    INFO  2025-06-29T23:46:37 +2ms service=models.dev refreshing
    INFO  2025-06-29T23:46:37 +1ms service=provider init
    INFO  2025-06-29T23:46:37 +12ms service=provider providerID=openai found
    INFO  2025-06-29T23:46:37 +0ms service=provider providerID=deepseek found
    INFO  2025-06-29T23:46:37 +0ms service=provider providerID=openrouter found
    INFO  2025-06-29T23:46:37 +0ms service=provider providerID=groq found
    INFO  2025-06-29T23:46:37 +0ms service=provider providerID=google found
    INFO  2025-06-29T23:46:37 +0ms service=provider providerID=anthropic found
    @  openai/codex-mini-latest
    
    INFO  2025-06-29T23:46:37 +1ms service=bus type=message.part.updated subscribing
    INFO  2025-06-29T23:46:37 +1ms service=session session=ses_841ea129effeuudS9GsdjXCaFx chatting
    INFO  2025-06-29T23:46:37 +0ms service=provider providerID=openai modelID=codex-mini-latest getModel
    INFO  2025-06-29T23:46:37 +0ms service=provider status=started providerID=openai getSDK
    INFO  2025-06-29T23:46:37 +1ms service=bun cmd=/Users/am/.bun/install/global/node_modules/opencode-darwin-arm64/bin/opencode,install,--registry=https://registry.npmjs.org cwd=/Users/am/.cache/opencode running
    INFO  2025-06-29T23:46:37 +201ms service=bun code=0 stdout=bun install v1.2.17 (282dda62)
    
    + @ai-sdk/openai@1.3.22
    
    1 package installed [188.00ms]
     stderr=Resolving dependencies
    Resolved, downloaded and extracted [2]
    Saved lockfile
     done
    INFO  2025-06-29T23:46:37 +30ms service=provider status=completed duration=232 providerID=openai getSDK
    INFO  2025-06-29T23:46:37 +0ms service=provider providerID=openai modelID=codex-mini-latest found
    INFO  2025-06-29T23:46:37 +1ms service=session sessionID=ses_841ea129effeuudS9GsdjXCaFx locking
    INFO  2025-06-29T23:46:37 +5ms service=bus type=storage.write publishing
    INFO  2025-06-29T23:46:37 +0ms service=bus type=message.updated publishing
    INFO  2025-06-29T23:46:37 +5ms service=bus type=storage.write publishing
    INFO  2025-06-29T23:46:37 +0ms service=bus type=message.updated publishing
    INFO  2025-06-29T23:46:37 +0ms service=app name=mcp registering service
    INFO  2025-06-29T23:46:37 +1ms service=mcp key=context7 type=remote found
    INFO  2025-06-29T23:46:38 +775ms service=mcp key=effect docs type=local found
    
  7. austinm911 commented on Jul 1, 2025

    @austinm911
    Author

    Ok, it appears that defining MCP servers causes the issues above.

  8. Yusuf007R commented on Jul 6, 2025

    @Yusuf007R

    samething when i put context7 mcp remote mcp server it crashes, but only with the remote one, if i use the local one it works

    {
      "$schema": "https://opencode.ai/config.json",
      "theme": "opencode",
      "autoshare": false,
      "autoupdate": true,
      "mcp": {
        "localmcp": {
          "type": "remote",
          "url": "https://mcp.context7.com/mcp",
          "enabled": true
        }
      }
    }
    
    ❯ opencode run hey --print-logs
    INFO  2025-07-06T03:25:30 +47ms service=default version=0.1.194 args=run,hey,--print-logs opencode
    INFO  2025-07-06T03:25:30 +0ms service=app cwd=/home/yusuf/code/background-cheap creating
    INFO  2025-07-06T03:25:30 +2ms service=app git=/home/yusuf/code/background-cheap git
    INFO  2025-07-06T03:25:30 +5ms service=bus type=storage.write subscribing
    INFO  2025-07-06T03:25:30 +0ms service=app name=bus registering service
    INFO  2025-07-06T03:25:30 +0ms service=format init
    INFO  2025-07-06T03:25:30 +0ms service=bus type=file.edited subscribing
    INFO  2025-07-06T03:25:30 +0ms service=config.hooks init
    INFO  2025-07-06T03:25:30 +0ms service=bus type=file.edited subscribing
    INFO  2025-07-06T03:25:30 +0ms service=bus type=session.idle subscribing
    INFO  2025-07-06T03:25:30 +0ms service=app name=lsp registering service
    INFO  2025-07-06T03:25:30 +0ms service=lsp initializing
    INFO  2025-07-06T03:25:30 +1ms service=app name=file.watcher registering service
    INFO  2025-07-06T03:25:30 +0ms service=session id=ses_8223b858fffeuivUjC8ozW3x0e version=0.1.194 title=New Session - 2025-07-06T03:25:30.608Z time=[object Object] created
    INFO  2025-07-06T03:25:30 +0ms service=app name=session registering service
    INFO  2025-07-06T03:25:30 +1ms service=app name=storage registering service
    INFO  2025-07-06T03:25:30 +0ms service=storage path=/home/yusuf/.local/share/opencode/project/home-yusuf-code-background-cheap/storage init
    INFO  2025-07-06T03:25:30 +93ms service=lsp.client id=typescript starting client
    INFO  2025-07-06T03:25:30 +1ms service=lsp.client id=typescript sending initialize
    INFO  2025-07-06T03:25:30 +2ms service=bus type=storage.write publishing
    INFO  2025-07-06T03:25:30 +0ms service=app name=config registering service
    INFO  2025-07-06T03:25:30 +69ms service=lsp.client serverID=typescript initialized
    INFO  2025-07-06T03:25:30 +99ms service=config $schema=https://opencode.ai/config.json theme=opencode autoshare=false autoupdate=true mcp=[object Object] loaded
    INFO  2025-07-06T03:25:30 +0ms service=bus type=session.updated publishing
    
    █▀▀█ █▀▀█ █▀▀ █▀▀▄ █▀▀ █▀▀█ █▀▀▄ █▀▀
    █░░█ █░░█ █▀▀ █░░█ █░░ █░░█ █░░█ █▀▀
    ▀▀▀▀ █▀▀▀ ▀▀▀ ▀  ▀ ▀▀▀ ▀▀▀▀ ▀▀▀  ▀▀▀
    
    >  hey
    
    INFO  2025-07-06T03:25:30 +0ms service=app name=provider registering service
    INFO  2025-07-06T03:25:30 +57ms service=models.dev refreshing
    INFO  2025-07-06T03:25:30 +1ms service=provider init
    INFO  2025-07-06T03:25:31 +87ms service=lsp initialized
    INFO  2025-07-06T03:25:31 +228ms service=provider providerID=amazon-bedrock found
    INFO  2025-07-06T03:25:31 +0ms service=provider providerID=github-copilot found
    @  amazon-bedrock/anthropic.claude-sonnet-4-20250514-v1:0
    
    INFO  2025-07-06T03:25:31 +2ms service=bus type=message.part.updated subscribing
    INFO  2025-07-06T03:25:31 +2ms service=session session=ses_8223b858fffeuivUjC8ozW3x0e chatting
    INFO  2025-07-06T03:25:31 +0ms service=provider providerID=amazon-bedrock modelID=anthropic.claude-sonnet-4-20250514-v1:0 getModel
    INFO  2025-07-06T03:25:31 +0ms service=provider status=started providerID=amazon-bedrock getSDK
    INFO  2025-07-06T03:25:31 +41ms service=provider status=completed duration=41 providerID=amazon-bedrock getSDK
    INFO  2025-07-06T03:25:31 +0ms service=provider providerID=amazon-bedrock modelID=anthropic.claude-sonnet-4-20250514-v1:0 found
    INFO  2025-07-06T03:25:31 +2ms service=session sessionID=ses_8223b858fffeuivUjC8ozW3x0e locking
    ERROR 2025-07-06T03:25:31 +8ms service=default e=ENOENT: no such file or directory, open '/home/yusuf/code/background-cheap/node_modules/stringify' exception
    INFO  2025-07-06T03:25:31 +6ms service=bus type=storage.write publishing
    INFO  2025-07-06T03:25:31 +0ms service=bus type=message.updated publishing
    INFO  2025-07-06T03:25:31 +40ms service=bus type=storage.write publishing
    INFO  2025-07-06T03:25:31 +0ms service=bus type=message.updated publishing
    INFO  2025-07-06T03:25:31 +0ms service=app name=mcp registering service
    INFO  2025-07-06T03:25:31 +0ms service=mcp key=localmcp type=remote found
  9. rekram1-node commented on Dec 28, 2025

    @rekram1-node
    Contributor

    [automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!

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