Cursor provider fails through local ACP with internal max-retries error #10480
This was generated by AI during triage.
Summary#
Cursor does not currently work through T3 Code on macOS, although both Cursor CLI entry points work normally in local interactive mode. T3 reports a generic Cursor reported a transport failure, while the underlying Cursor response is Error: RetriableError: [internal] Failed to run step, exceeded max retries.
Environment#
- T3 Code early-access build:
v2026.09.02-c22c1a3 - Cursor Agent:
v2026.09.02-c22c1a3 - macOS
- Cursor Ultra subscription
- Cursor model tested: Grok 4.6
- Binary paths tested:
cursor-agentandagent - Execution is local on the machine, not a cloud T3 environment
What works#
Both local interactive commands work in Hitch terminals:
- Terminal 1:
agentstarts, authenticates, and responds tohey. - Terminal 2:
cursor-agentstarts, authenticates, responds tohey, and successfully runspwd. - The local Cursor CLI can reach Cursor services and use Grok 4.6 interactively.
Reproduction in T3#
- Enable the Cursor provider in T3 Code.
- Set Binary path to either
cursor-agentoragent. - Use the authenticated Cursor account and Grok 4.6.
- Start a Cursor thread and send a simple prompt such as
hey. - T3 displays:
Cursor reported a transport failure.
Error: RetriableError: [internal] Failed to run step, exceeded max retries
Findings#
T3 launches Cursor through the local ACP process, currently equivalent to:
agent --force acp
In the T3 provider log, the ACP initialize, authenticate, session/new, and session/prompt requests are recorded as successful. The assistant content itself contains the max-retries error. T3 then classifies that diagnostic as a transport failure in apps/server/src/provider/acp/CursorTransportFailure.ts.
A direct Hitch test of agent --force acp confirmed that ACP initialization succeeds. The process then failed to complete the subsequent authentication/session exchange, whereas interactive mode continues to work.
This suggests the issue is specific to Cursor Agent ACP mode or to the ACP request/context sent by T3, rather than:
- the binary name or PATH;
- Cursor authentication generally;
- the local machine’s network connectivity;
- T3 cloud execution; or
- a general Grok 4.6 outage.
T3 does not currently use Cursor’s SDK; it uses Cursor’s local Agent CLI over ACP/stdin/stdout JSON-RPC.
Expected behavior#
A Cursor ACP session started by T3 should authenticate, create a session, and successfully process a simple prompt using the selected model. If Cursor returns an internal agent error, T3 should surface the underlying error distinctly from a transport failure.
Screenshots#
Suggested next investigation#
- Compare T3’s ACP handshake and prompt payload with Cursor’s documented minimal ACP client flow.
- Test the same flow with and without T3’s
--forcepermission flag. - Test against a newer Cursor Agent/nightly build if available.
- Preserve the original Cursor ACP error instead of mapping it only to
Cursor reported a transport failure.
juliusmarminge added labelsvia-triage
juliusmarminge added labelsbug
juliusmarminge added labelsupstream
I keep getting
Error: RetriableError: [canceled] http/2 stream closed with error code CANCEL (0x8)in middle of a run, need to continue it many timesjuliusmarminge closed this
Sign in to join this conversation.
Triage#
Not a wash duplicate of #7830. That issue was Cursor leaking transport/network dumps (
WritableIterable is closed,ConnectError: [unavailable], …) as assistant text and T3 marking the turn completed. #10337 already fails those turns.This report is different: Cursor ACP completes
initialize/authenticate/session/new/session/prompt, then returnsas the assistant answer. Interactive
agent/cursor-agenton the same machine still work. A standaloneagent --force acpHitch test also failed after initialize, which points at Cursor Agent ACP mode, not T3 PATH, binary name, login, or a general Grok 4.6 outage.T3 does mislabel it.
CursorTransportFailurematches anyError: RetriableError: …, so this[internal]step-retry dump becomes “Cursor reported a transport failure.” The original diagnostic is kept ascause. That matcher is doing what #10337 designed for transport dumps; it is too broad for this error class.--forceis only added in full-access (CursorAcpSupport/ #9283). Other T3 extras on the ACP session:cursor_login, optional T3 MCP onsession/new, modelsetModel/ config options, and aruntime_infoprompt block.Cursor’s own forum treats
[internal] Failed to run step, exceeded max retriesas an agent-loop / context-summarization retry exhaustion, not a T3 WebSocket or stdin transport break. Same leak-as-assistant-text pattern they already acknowledged for ACP.Next#
cursor-agent acp, no--force, no T3 MCP, no runtime_info) vs T3’s full payload, on2026.09.02-c22c1a3and a newer Cursor Agent nightly.[internal]/ max-retriesRetriableErrordumps as a transport failure; surface Cursor’s text as-is.Labels:
bugupstreamvia-triage(removeneeds-triage)