Session simply stalls #161

Closed
opened 2026-02-16 17:25:29 -05:00 by yindo · 3 comments
Owner

Originally created by @user-0a on GitHub (Jun 20, 2025).

Originally assigned to: @thdxr on GitHub.

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"
}
Originally created by @user-0a on GitHub (Jun 20, 2025). Originally assigned to: @thdxr on GitHub. 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](https://github.com/cloudflare/mcp-server-cloudflare/tree/main/apps/workers-observability) and [effect-mcp](https://github.com/tim-smart/effect-mcp) tool 4. Tried another session where I asked it what tools it had access to, it stalled 6. Removed the tools 7. Created a new session and just said "hello", still stalling 8. Every session stalls now Session share link: https://opencode.ai/s/90d91b80 Screenshot: <img width="1041" alt="Image" src="https://github.com/user-attachments/assets/ab5a4bb9-54ae-499c-9a46-e362f095499e" /> 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" } ```
yindo closed this issue 2026-02-16 17:25:30 -05:00
Author
Owner

@thdxr commented on GitHub (Jun 20, 2025):

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

@thdxr commented on GitHub (Jun 20, 2025): i think we have some mcp issues. can you update to latest and then do `opencode run hello --print-logs`
Author
Owner

@user-0a commented on GitHub (Jun 20, 2025):

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
@user-0a commented on GitHub (Jun 20, 2025): 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 ```
Author
Owner

@user-0a commented on GitHub (Jun 21, 2025):

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.

@user-0a commented on GitHub (Jun 21, 2025): 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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#161