You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: delegate_task mode "wait" outlasts Cursor's ~60s MCP timeout; the child starts but the parent never gets its taskId #35714
I searched existing issues and did not find a duplicate.
I included enough detail to reproduce or investigate the problem.
Area
apps/server
Steps to reproduce
Start a thread on the Cursor provider (seen with gemini-4-carbon).
Have it call delegate_task with mode: "wait" and timeoutMs: 600000 for a task that takes more than about a minute (here, a read-only plan review).
Expected behavior
One of:
The call returns before the client's request timeout with the taskId and childThreadId, and the child keeps running.
mode: "wait" is capped below the MCP client's request timeout, or turned into async when the client can't wait that long.
The parent can always find out which child it started.
Actual behavior
The child starts, but the parent's tool call fails after about 60 seconds with:
MCP error -32001: Request timed out
That is Cursor's MCP request timeout. The server is still inside its 10-minute wait. The taskId and childThreadId never reach the parent, which sees a failed call. In one thread the Fable child was created at 23:47:47.244Z, and the parent's call failed at 23:48:45.750Z with the child still running.
To recover, the parent called t3_thread_list with includeSubagents: true to find the children it had just started. It then polled t3_thread_wait with a 45-second timeout about 8 times. A model that treated the failure as real could just as easily have started the child again.
Impact
Major degradation or frequent failure
Version or commit
T3 Code (Beta) desktop 0.1.8
Environment
macOS 26 (Darwin 25.6), Cursor provider (cursor-agent), parent model gemini-4-carbon; children on Cursor (claude-fable-5-2) and Codex (gpt-6-astra).
Logs or stack traces
delegate_task mode=wait timeoutMs=600000 title="Fable 5.2 High review of #1901 Core 25 judge benchmark plan"
-> {"message": "MCP error -32001: Request timed out"}
child thread createdAt 2026-11-12T23:47:47.244Z, status running
Workaround
Use mode: "async" from Cursor, and find children with t3_thread_list if a wait call times out.
Related: #30006 (wait mode makes Codex cell harnesses poll every 30s). Same root mismatch: the server-side wait is longer than what the client harness allows for one tool call.
Confirming this on the pi provider with a longer client timeout — same mechanism, now with server-side span timing.
T3 Code desktop/server 0.1.9 (Linux x64, Node v26.12.1), pi provider, parent and child both glm-5.3: delegate_task with mode: "wait", timeoutMs: 900000 for a docs review that ran ~6 minutes. The pi harness MCP client (Node fetch/undici, default 300 s headers/body timeout) aborted at almost exactly 300 s:
Child thread created at 20:12:47.143Z — 17 ms after the call began — and completed normally at 20:18:47Z; its completion was delivered to the parent under the same node id as the dispatch.
Parent saw the raw transport error fetch failed with no taskId/childThreadId, and had to find the child via t3_thread_list (which showed it running, 29 items in). A parent that treated the failure as real would have re-run the delegate.
So the mismatch is not Cursor-specific: any harness whose MCP request timeout is shorter than the child's runtime turns mode: "wait" into a guaranteed transport error. The v0.1.9 server-side wait constants (OrchestratorMcpService.ts: default 10 min, max 60 min) sit far above every known client limit (Cursor ~60 s here, Codex 30 s per #30006, pi/undici 300 s). Your workaround (async + t3_thread_list) is exactly what a project skill here had to teach the agent to do after a wait failure.
Related: #36147 — same "error return leaves a running child with no handle" hazard, triggered there by a transient provider error instead of the client timeout.
Fixed by #15622, now on main: Repeating the reported delegate_task call with mode "wait" and timeoutMs 600000 now returns taskId and childThreadId after at most 45 seconds of observation, with waitTimedOut true while the child continues, below the reported Cursor ~60-second and Pi ~300-second client timeouts.
Activity
jhillyerd commentedon Nov 14, 2026
Note
🤖 GLM 5.3 responding on behalf of jhillyerd
Confirming this on the pi provider with a longer client timeout — same mechanism, now with server-side span timing.
T3 Code desktop/server 0.1.9 (Linux x64, Node v26.12.1), pi provider, parent and child both glm-5.3:
delegate_taskwithmode: "wait",timeoutMs: 900000for a docs review that ran ~6 minutes. The pi harness MCP client (Nodefetch/undici, default 300 s headers/body timeout) aborted at almost exactly 300 s:McpServer tools/call → delegate_taskspan 2026-11-14T20:12:47.126Z → 20:17:48.044Z, 300,918 ms, exitInterrupted(client disconnect).fetch failedwith notaskId/childThreadId, and had to find the child viat3_thread_list(which showed it running, 29 items in). A parent that treated the failure as real would have re-run the delegate.So the mismatch is not Cursor-specific: any harness whose MCP request timeout is shorter than the child's runtime turns
mode: "wait"into a guaranteed transport error. The v0.1.9 server-side wait constants (OrchestratorMcpService.ts: default 10 min, max 60 min) sit far above every known client limit (Cursor ~60 s here, Codex 30 s per #30006, pi/undici 300 s). Your workaround (async +t3_thread_list) is exactly what a project skill here had to teach the agent to do after awaitfailure.Related: #36147 — same "error return leaves a running child with no handle" hazard, triggered there by a transient provider error instead of the client timeout.
juliusmarminge commentedon Nov 14, 2026
Fixed by #15622, now on main: Repeating the reported delegate_task call with mode "wait" and timeoutMs 600000 now returns taskId and childThreadId after at most 45 seconds of observation, with waitTimedOut true while the child continues, below the reported Cursor ~60-second and Pi ~300-second client timeouts.