Repository navigation
Description
Summary
When AskUserQuestion is used through the Cursor ACP provider, the MCP call times out after about 60 seconds while the BB interaction remains open. If the user later submits the visible form, BB records it as resolved, but the answer never reaches the agent because the original tool call has already failed.
Environment
- BB:
0.42.1 - Provider: Cursor via ACP (
acp-cursor) - Plugin: builtin
[email protected] - Plugin SDK bundle:
0.4.47 - Ubuntu 26.04 on WSL2
Reproduction
- Start a Cursor/ACP thread.
- Call
AskUserQuestionwith one or more options. - Leave the form unanswered for more than 60 seconds.
- Observe the tool result:
MCP error -32001: Request timed out. - The form is still visible and the thread still has a pending interaction.
- A second
AskUserQuestioncall reports that the thread is already awaiting user interaction. - Submit the original form before its BB interaction expiry.
Actual behavior
The submission closes the UI, but the selected answers never reach the agent. The user must repeat them manually in chat.
In the observed run:
- interaction became pending at T+0
- MCP tool call failed at approximately T+60s
- interaction resolved with
plugin_submittedat T+299.8s - plugin handler duration was approximately 299.9s
- the resolved interaction had no surviving provider call to receive its result
The interaction itself had a 10-minute expiry, so the MCP timeout and BB interaction lifetime disagree.
Expected behavior
The system should have one coherent lifecycle:
- either keep the ACP/MCP tool call alive until the interaction resolves,
- or cancel/expire the BB interaction when the provider call times out,
- or persist and deliver a late submitted result through a supported follow-up mechanism.
The UI must not continue accepting an answer that will be silently discarded.
Likely boundary
The builtin plugin awaits bb.ui.requestInput(...), whose default timeout is 10 minutes. The Cursor MCP caller appears to enforce roughly 60 seconds. Cancellation/timeout is not propagated across the ACP dynamic-tool bridge, leaving a live BB interaction after the provider has abandoned the request.
Suggested tests
- ACP dynamic tool awaiting user input for more than 60 seconds still returns the selected answer.
- Provider cancellation removes or cancels the corresponding BB interaction.
- A timed-out provider call cannot leave a submit-capable orphan form.
- Retrying after cancellation does not report a stale pending interaction.
Activity
neox31 commentedon Sep 10, 2026
Related: #1944 was the same symptom in OpenCode and was fixed by #1945. That fix sends heartbeats only when the MCP request includes
_meta.progressToken; requests without a token explicitly retain the old behavior. The current reproduction is Cursor ACP on BB 0.42.1, where the call still expires at ~60s despite the heartbeat code being present. This issue should therefore track the uncovered Cursor/no-progress-token path rather than repeat the already-fixed OpenCode path.bb-slop-cop commentedon Sep 10, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotClassification: Bug · Priority: High · Effort: Medium. Applied
providers,provider-acp,ask-user-question, andpartial-repro.Reproduction and root-cause report — PARTIALLY REPRODUCED, medium root-cause confidence.
The ACP MCP proxy drops cancellation notifications and later sends answers to request IDs the caller has abandoned. In two clean checkouts of trusted
origin/main, a focused MCP SDK test timed out, left the bridge request open, and rejected the late answer as an unknown message ID. Existing progress-aware tests pass. Cursor's exact timeout and the live BB form lifecycle remain unverified.No PR: the full lifecycle is only partially reproduced, and an end-to-end cancellation repair may cross protocol boundaries outside this rule's simple-fix limits.
neox31 commentedon Sep 10, 2026
Reproduced again in the same Cursor ACP environment while planning follow-up work: a new two-question
AskUserQuestioninteraction remained open, but the MCP call returned-32001: Request timed outafter ~60 seconds. The choices again had to be supplied manually as a normal user message. This confirms the issue is deterministic/repeatable on BB 0.42.1 rather than a one-off race.akshendra commentedon Sep 11, 2026
Related native Codex lifecycle evidence, with an agent error that must be separated from BB's transport behavior. I am adding it here for cancellation/cleanup triage, not claiming to reproduce the Cursor/no-progress-token cause or late-answer loss in this issue.
Environment: BB desktop
0.42.1, native Codex CLI0.153.4, macOS26.5/arm64, worktree environment with BB Connect paired. This is an observed trace on the installed release; I have not repeated it in a clean environment or on a newer release/main. No BB source commit was tested or patched.The worker called the bundled
AskUserQuestionthrough code mode:The execution returned
Script running with cell ID 3after 31 seconds. The worker calledwaitonce with{"cell_id":"3","yield_time_ms":30000,"max_tokens":2000}and again receivedScript running with cell ID 3after 31 seconds. It then ended its turn instead of continuing the wait. Its final said it was blocked on the client choice. The rollover to a final response is a worker error; the trace does not show the later HTTP timeout causing that decision.BB's recorded sequence for the same call:
item/started, AskUserQuestion pending (seq 48)turn/completed(seq 74)item/completed, failed,Dynamic tool call failed(seq 75)request-aborted(seq 76)The failed item's separate
durationMsfield is72296; the elapsed column above is computed by subtracting the start event's timestamp, not by treating that duration as the HTTP request lifetime.Trimmed matching daemon error (local address and stack omitted):
{ "component": "host-daemon", "tool": "AskUserQuestion", "threadId": "thr_d27zavx6c9", "turnId": "dac5ea4961-t1", "callId": "dac5ea4961-i7", "msg": "Failed to forward dynamic tool call to server", "err": { "type": "TypeError", "message": "terminated", "cause": { "type": "BodyTimeoutError", "message": "Body Timeout Error", "code": "UND_ERR_BODY_TIMEOUT" } } }The remaining question for BB is whether provider turn completion/tool abandonment should cancel the forwarding request and corresponding interaction immediately, rather than leaving their cleanup to the later body timeout. This suggests a cancellation-lifecycle gap, but does not establish its root cause. There was no submitted answer in this trace; I have not tested late-answer delivery or independently inspected the form after turn completion.
Closest reenactment to verify: invoke this pending question through native Codex code mode, let
exec/waityield, then finish the provider turn with the cell still running; compare tool, interaction, and HTTP-request termination. This is a proposed regression scenario, not an independently rerun reproduction. It differs from simply waiting five minutes in a correctly waiting agent.Source investigation thread (owner access required): https://akshendra.getbb.app/projects/proj_d7z3rqv2fj/threads/thr_d27zavx6c9 . The relevant payload, events, and calculation are included above so this comment can be assessed without that private thread.
Fix ACP question cancellation and reject lost late answers (#3701)