Repository navigation
Backlog
Labels
bugSomething is broken or behaving incorrectly.needs-triageIssue needs maintainer review and initial categorization.
Description
Before submitting
- 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
- Work in a thread that has been handed off to the Cursor provider (
provider-thread:provider:cursor:native-thread:pending:...). - Run a turn whose shell command tool calls produce very large outputs (~160k–262k characters).
- When the turn fails during resume, send a follow-up message (e.g.,
"continue") in the same thread.
Expected behavior
- Large command outputs do not stall provider turn resume (or are bounded with a handle to full output).
- A failed turn recovers cleanly on the next user message in the same thread from the last acknowledged tool result.
- Interrupted turns do not repeatedly replay completed parallel MCP tool calls and leave orphaned idle child threads behind.
Actual behavior
- In two consecutive runs on the same Cursor thread, a
shelltool call with very large output (159,644chars on run 1,262,141chars on run 2) never emittedtool-call-completedon thecursor-agent-sdk.localstream. - Each time, the runtime retried the entire tool batch 3 times with new
modelCallIds and identicalcallIds—re-executing the sibling tools (mcp:t3_thread_launchon run 1;mcp:t3_thread_listand a 12k-charshellcall on run 2) on every attempt—before terminating with:Agent turn stopped after repeated resume attempts made no progress - Sending
"continue"in the same Cursor thread immediately repeated the failure; the thread remained wedged until manually switched back to Codex (which completed the follow-up). - Because run 1 launched an idle child thread (
t3_thread_launchwithoutmessage, intending to configure and send its prompt next) before dying on the shell call, the child thread was left empty/idle.
Suggested fix
- Return a bounded excerpt plus a full-output handle from the command adapter for oversized outputs so large shell outputs do not drop/stall
tool-call-completed. - Resume from the last acknowledged tool result rather than replaying the full tool batch into a wedged state.
Impact
Major degradation or frequent failure
Version or commit
T3 Code (Beta) 0.1.10
Environment
macOS 26 (Darwin 25.6.0). Provider / CLI: Cursor CLI 2026.11.19-f005e9d (gemini-4-neon, context=1m, reasoning_effort=xhigh, following a provider handoff from Codex to Cursor).
Logs or stack traces
--- Provider event log (~/.t3/userdata/logs/provider/events.<thread>.log, sanitized) ---
# Run 1 (run-eaf89e41-3546-42e4-8e16-4e0fb3c0e308): shell tool 0_tool_549ee7a9 (159,644-char output) never emits tool-call-completed;
# batch of [shell, mcp:t3_thread_launch] replays 3 times with new modelCallIds before failing:
[2026-11-23T17:21:47.356Z] agent.open operation="resume" model={"id":"gemini-4-neon","params":[{"id":"context","value":"1m"},{"id":"reasoning_effort","value":"xhigh"}]}
[2026-11-23T17:22:08.621Z] tool-call-started callId=0_tool_549ee7a9... modelCallId=f38a27e6-...-0-ybdp tool=shell
[2026-11-23T17:22:09.564Z] tool-call-started callId=1_tool_549ee7a9... modelCallId=f38a27e6-...-0-ybdp tool=mcp:t3_thread_launch
[2026-11-23T17:22:10.100Z] tool-call-completed callId=1_tool_549ee7a9... modelCallId=f38a27e6-...-0-ybdp tool=mcp:t3_thread_launch status=success (returned idle child threadId)
[2026-11-23T17:22:16.058Z] tool-call-started callId=0_tool_549ee7a9... modelCallId=2bf41eaf-...-0-m3wq tool=shell
[2026-11-23T17:22:16.074Z] tool-call-started callId=1_tool_549ee7a9... modelCallId=2bf41eaf-...-0-m3wq tool=mcp:t3_thread_launch
[2026-11-23T17:22:16.168Z] tool-call-completed callId=1_tool_549ee7a9... modelCallId=2bf41eaf-...-0-m3wq tool=mcp:t3_thread_launch status=success
[2026-11-23T17:22:24.785Z] tool-call-started callId=0_tool_549ee7a9... modelCallId=3cac05af-...-0-twtg tool=shell
[2026-11-23T17:22:24.792Z] tool-call-started callId=1_tool_549ee7a9... modelCallId=3cac05af-...-0-twtg tool=mcp:t3_thread_launch
[2026-11-23T17:22:24.871Z] tool-call-completed callId=1_tool_549ee7a9... modelCallId=3cac05af-...-0-twtg tool=mcp:t3_thread_launch status=success
[2026-11-23T17:22:29.435Z] run.completed {"id":"run-eaf89e41-3546-42e4-8e16-4e0fb3c0e308","requestId":"f38a27e6-e6eb-41a2-98fb-40e01cbce49e","status":"error","error":{"message":"Agent turn stopped after repeated resume attempts made no progress"},"model":{"id":"gemini-4-neon","params":[{"id":"context","value":"1m"},{"id":"reasoning_effort","value":"xhigh"}],"maxMode":true},"durationMs":42023}
# Run 2 (run-ee1a6a17-e1ea-4421-8271-65f8a3f5a9ad, after user sent "continue"):
# shell tool 1_tool_09cb6906 (262,141-char output) never emits tool-call-completed;
# batch of [mcp:t3_thread_list, shell(262k), shell(12k)] replays 3 times before failing identically:
[2026-11-23T17:35:06.536Z] run.start ("continue")
[2026-11-23T17:35:21.480Z] tool-call-started callId=0_tool_09cb6906... modelCallId=03de135c-...-0-2rj5 tool=mcp:t3_thread_list
[2026-11-23T17:35:21.912Z] tool-call-completed callId=0_tool_09cb6906... modelCallId=03de135c-...-0-2rj5 tool=mcp:t3_thread_list status=success
[2026-11-23T17:35:22.671Z] tool-call-started callId=1_tool_09cb6906... modelCallId=03de135c-...-0-2rj5 tool=shell
[2026-11-23T17:35:22.766Z] tool-call-started callId=2_tool_09cb6906... modelCallId=03de135c-...-0-2rj5 tool=shell
[2026-11-23T17:35:24.431Z] tool-call-completed callId=2_tool_09cb6906... modelCallId=03de135c-...-0-2rj5 tool=shell status=success exit=0 stdout_chars=12398
[2026-11-23T17:35:34.417Z] tool-call-started callId=1_tool_09cb6906... modelCallId=f6eb44a1-...-0-xtrx tool=shell
[2026-11-23T17:35:34.424Z] tool-call-started callId=2_tool_09cb6906... modelCallId=f6eb44a1-...-0-xtrx tool=shell
[2026-11-23T17:35:34.436Z] tool-call-started callId=0_tool_09cb6906... modelCallId=f6eb44a1-...-0-xtrx tool=mcp:t3_thread_list
[2026-11-23T17:35:34.568Z] tool-call-completed callId=0_tool_09cb6906... modelCallId=f6eb44a1-...-0-xtrx tool=mcp:t3_thread_list status=success
[2026-11-23T17:35:36.224Z] tool-call-completed callId=2_tool_09cb6906... modelCallId=f6eb44a1-...-0-xtrx tool=shell status=success exit=0 stdout_chars=12398
[2026-11-23T17:35:50.209Z] tool-call-started callId=1_tool_09cb6906... modelCallId=584fc8c7-...-0-iadp tool=shell
[2026-11-23T17:35:50.216Z] tool-call-started callId=2_tool_09cb6906... modelCallId=584fc8c7-...-0-iadp tool=shell
[2026-11-23T17:35:50.229Z] tool-call-started callId=0_tool_09cb6906... modelCallId=584fc8c7-...-0-iadp tool=mcp:t3_thread_list
[2026-11-23T17:35:50.431Z] tool-call-completed callId=0_tool_09cb6906... modelCallId=584fc8c7-...-0-iadp tool=mcp:t3_thread_list status=success
[2026-11-23T17:35:51.578Z] tool-call-completed callId=2_tool_09cb6906... modelCallId=584fc8c7-...-0-iadp tool=shell status=success exit=0 stdout_chars=12398
[2026-11-23T17:36:01.699Z] run.completed {"id":"run-ee1a6a17-e1ea-4421-8271-65f8a3f5a9ad","requestId":"03de135c-26c8-4799-8cd9-ecde67c8fef8","status":"error","error":{"message":"Agent turn stopped after repeated resume attempts made no progress"},"model":{"id":"gemini-4-neon","params":[{"id":"context","value":"1m"},{"id":"reasoning_effort","value":"xhigh"}],"maxMode":true},"durationMs":55160}
Screenshots, recordings, or supporting files
No response
Workaround
Switching the wedged thread from Cursor back to Codex (provider handoff) allowed the follow-up turn to complete.
Metadata
Metadata
Assignees
Labels
bugSomething is broken or behaving incorrectly.needs-triageIssue needs maintainer review and initial categorization.
Activity
juliusmarminge commentedon Nov 25, 2026
@llama887 Could you attach the provider event log for the affected thread (~/.t3/userdata/logs/provider/events..log; on desktop it is under the app's userdata/logs/provider folder), covering the two failed runs and the 'continue' message? Please also say which Cursor model the thread used. The log shows whether 'continue' started a new run and what Cursor did before it gave up, which large command output alone does not reproduce.
llama887 commentedon Nov 25, 2026
@juliusmarminge Here is the redacted provider event log (
events.<threadId>.log, lines coveringagent.open, both failed runs, the"continue"run, andagent.close).gemini-4-neonwithparams: [{"id": "context", "value": "1m"}, {"id": "reasoning_effort", "value": "xhigh"}],maxMode: true,enableAgentRetries: true(Cursor CLI2026.11.19-f005e9d)."continue": Yes,"continue"started a new run (run-ee1a6a17-e1ea-4421-8271-65f8a3f5a9adat17:35:06.536Z) on the existingagentId(agent-19ceb88d-a9db-4376-85f2-1ce009cb4afe).shellcall (0_tool_549ee7a9...in run 1;1_tool_09cb6906...in run 2 — bothgh pr viewcommands withtimeout: 30000) emittedtool-call-startedand never emittedtool-call-completed. Cursor replayed the full tool-call batch 3 times with newmodelCallIds and identicalcallIds (~7–16s between attempts, re-executing sibling toolsmcp:t3_thread_launchin run 1 andmcp:t3_thread_list+ the secondshellcall in run 2 each time) before failing with"Agent turn stopped after repeated resume attempts made no progress".Redacted provider event log (38 lines, 2026-11-23T17:15:21Z – 17:39:51Z)