Skip to content

Session simply stalls #232

Closed
Closed

Description

@user-0a

When I type in "hello", it simply gets stuck on "working..."

Reproduction steps (including everything, not sure what's relevant)

  1. Set up OpenCode w/ Anthropic API key
  2. Did a test session saying "hello", it responded successfully
  3. Added the Cloudflare Observability tool and effect-mcp tool
  4. Tried another session where I asked it what tools it had access to, it stalled
  5. Removed the tools
  6. Created a new session and just said "hello", still stalling
  7. Every session stalls now

Session share link: https://opencode.ai/s/90d91b80
Screenshot:
Image

My original config:
(I used local w/ mcp-remote for cloudflare-observability so that I could pass the necessary header)

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "cloudflare-observability": {
      "type": "local",
      "command": [
        "bunx",
        "mcp-remote",
        "https://observability.mcp.cloudflare.com/sse",
        "--header",
        "Authorization: Bearer <redacted>"
      ]
    },
    "effect-docs": {
      "type": "local",
      "command": ["bunx", "-y", "effect-mcp"]
    }
  }
}

My current config:

{
  "$schema": "https://opencode.ai/config.json"
}

Activity

  1. thdxr commented on Jun 20, 2025

    @thdxr
    Member

    i think we have some mcp issues. can you update to latest and then do opencode run hello --print-logs

  2. user-0a commented on Jun 20, 2025

    @user-0a
    Author

    Yup, here's the log:

    user@MacBook-Pro sakura2 % opencode run hello --print-logs
    INFO  2025-06-20T05:04:20 +22ms service=default version=0.1.108 args=run,hello,--print-logs opencode
    INFO  2025-06-20T05:04:20 +0ms service=app cwd=/Users/user/Projects/sakura2 creating
    INFO  2025-06-20T05:04:20 +1ms service=app git=/Users/user/Projects/sakura2 git
    INFO  2025-06-20T05:04:20 +1ms service=app name=share registering service
    INFO  2025-06-20T05:04:20 +0ms service=bus type=storage.write subscribing
    INFO  2025-06-20T05:04:20 +0ms service=app name=bus registering service
    INFO  2025-06-20T05:04:20 +1ms service=session id=ses_87446cb13ffe834c24298b059d version=0.1.108 title=New Session - 2025-06-20T05:04:20.204Z time=[object Object] created
    INFO  2025-06-20T05:04:20 +0ms service=app name=session registering service
    INFO  2025-06-20T05:04:20 +0ms service=app name=storage registering service
    INFO  2025-06-20T05:04:20 +0ms service=storage path=/Users/user/.local/share/opencode/project/-Users-user-Projects-sakura2/storage init
    INFO  2025-06-20T05:04:20 +0ms service=bus type=storage.write publishing
    INFO  2025-06-20T05:04:20 +0ms service=app name=config registering service
    INFO  2025-06-20T05:04:20 +1ms service=config $schema=https://opencode.ai/config.json mcp=[object Object] loaded
    INFO  2025-06-20T05:04:20 +0ms service=bus type=session.updated publishing
    
    █▀▀█ █▀▀█ █▀▀ █▀▀▄ █▀▀ █▀▀█ █▀▀▄ █▀▀
    █░░█ █░░█ █▀▀ █░░█ █░░ █░░█ █░░█ █▀▀
    ▀▀▀▀ █▀▀▀ ▀▀▀ ▀  ▀ ▀▀▀ ▀▀▀▀ ▀▀▀  ▀▀▀
    
    >  hello
    
    INFO  2025-06-20T05:04:20 +1ms service=app name=provider registering service
    INFO  2025-06-20T05:04:20 +0ms service=models.dev refreshing
    INFO  2025-06-20T05:04:20 +0ms service=provider init
    INFO  2025-06-20T05:04:20 +1ms service=provider providerID=anthropic found
    @  anthropic/claude-sonnet-4-20250514
    
    INFO  2025-06-20T05:04:20 +0ms service=bus type=message.part.updated subscribing
    INFO  2025-06-20T05:04:20 +0ms service=session session=ses_87446cb13ffe834c24298b059d chatting
    INFO  2025-06-20T05:04:20 +0ms service=provider providerID=anthropic modelID=claude-sonnet-4-20250514 getModel
    INFO  2025-06-20T05:04:20 +1ms service=provider status=started providerID=anthropic getSDK
    INFO  2025-06-20T05:04:20 +9ms service=provider status=completed duration=9 providerID=anthropic getSDK
    INFO  2025-06-20T05:04:20 +0ms service=provider providerID=anthropic modelID=claude-sonnet-4-20250514 found
    INFO  2025-06-20T05:04:20 +1ms service=session sessionID=ses_87446cb13ffe834c24298b059d locking
    INFO  2025-06-20T05:04:20 +4ms service=bus type=storage.write publishing
    INFO  2025-06-20T05:04:20 +0ms service=bus type=message.updated publishing
    INFO  2025-06-20T05:04:20 +1ms service=bus type=storage.write publishing
    INFO  2025-06-20T05:04:20 +0ms service=bus type=message.updated publishing
    INFO  2025-06-20T05:04:20 +0ms service=app name=mcp registering service
    INFO  2025-06-20T05:04:22 +1932ms service=bus type=storage.write publishing
    INFO  2025-06-20T05:04:22 +1ms service=bus type=session.updated publishing
    INFO  2025-06-20T05:04:24 +2251ms service=session sessionID=ses_87446cb13ffe834c24298b059d unlocking
    ERROR 2025-06-20T05:04:24 +1ms service=default name=MCPClientError message=Connection closed fatal
    
  3. self-assigned this
    on Jun 20, 2025
  4. user-0a commented on Jun 21, 2025

    @user-0a
    Author

    Okay I got it working now. The issue was the effect-docs MCP crashing on startup due to being misconfigured. Once I fixed that, the stalls no longer happened. I suppose it would be helpful to surface this info in the TUI though.

  5. added a commit that references this issue on Jan 1, 2026
    157eb6e
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