Repository navigation
Send MCP progress during ACP dynamic tool calls so AskUserQuestion does not time out - #1945
Merged
SawyerHood merged 1 commit intoAug 19, 2026
Merged
Conversation
…tion does not time out The bb-bridge MCP server answered tools/call only when the plugin tool returned. OpenCode's MCP SDK client fails a request after 60 seconds unless notifications/progress resets its timer, so any AskUserQuestion answer slower than a minute was lost. The server now emits a progress heartbeat for the call's progressToken every 15 seconds until the call settles. Fixes #1944 Co-Authored-By: Claude <[email protected]>
SawyerHood
deleted the
bb/reproduce-and-fix-reported-issue-thr_scbf6inpv6
branch
August 19, 2026 19:38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What was wrong
The
bb-bridgeMCP server that exposes bb's dynamic tools to ACP agents answeredtools/callonly when the plugin tool returned. OpenCode (and other agents on the MCP TypeScript SDK) fail a request after 60 seconds unless the server sendsnotifications/progressfor the call'sprogressToken.AskUserQuestionwaits on the user for minutes, so the agent gotMCP error -32001: Request timed out, reported that the user did not answer, and the later answer went nowhere. Issue: #1944.What changed
plugins/provider-acp/src/bridge/tool-proxy-mcp.ts: when atools/callrequest carries_meta.progressToken, the server sends anotifications/progressheartbeat every 15 seconds until the bridge round trip settles. Requests without a token behave as before.BB_ACP_DYNAMIC_TOOL_PROGRESS_INTERVAL_MSis an internal env override that the test uses to shrink the interval. The ACP bridge never sets it.plugins/provider-acp/package.json:@modelcontextprotocol/sdkas a devDependency so the test drives the server with the real client that OpenCode uses.No wire change between server and daemon.
How you verified
plugins/provider-acp/src/bridge/tool-proxy-mcp.test.ts: real MCP SDKClientover stdio withresetTimeoutOnProgress: true,onprogress, and a 1 s timeout, against the--mcp-stdioserver and a fake bridge socket that answers after 2.5 s. Before the fix it fails withMCP error -32001: Request timed out; after the fix the call returns the answer and progress notifications arrive.pnpm exec turbo run typecheck test --filter=bb-plugin-provider-acp: 166 tests pass.Fixes #1944