anomalyco / anomalyco/opencode

Local MCP requests time out when stderr pipe fills

Open
#46,367 1 comment 0 reactions 1 assignee View on GitHub

@rekram1-node is already working on this.

Since Aug 31, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description

Verbose local MCP output eventually causes a 60-second timeout. OpenCode creates the local transport with stderr: "pipe" but does not consume the SDK stream. On Linux Desktop 1.18.23, the child was observed blocked in write(2) with a full stderr send queue, preventing the request from completing.

Plugins

None required.

OpenCode version

1.18.23

Steps to reproduce
  1. Start a local MCP fixture that writes 1 MiB to stderr before returning a tool result and waits for drain.
  2. Connect it as a local MCP server.
  3. Invoke the tool.
  4. Observe the request time out after 60 seconds because the child blocks writing stderr.

Expected: OpenCode drains the local MCP stderr stream and the tool returns.
Actual: the child blocks on stderr and the tool times out.

Screenshot and/or share link

Not applicable; deterministic regression fixture available.

Operating System

Linux Desktop

Terminal

Not applicable

Related context

Prior automatically closed reports/PRs #12229, #16449, and #37634 are related context; this report adds direct process evidence and a deterministic regression.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.