# Cursor Agent ACP fails every session/prompt while interactive CLI works

**URL:** <https://forum.cursor.com/t/cursor-agent-acp-fails-every-session-prompt-while-interactive-cli-works/171447>\
**Category:** Bug Reports\
**Tags:** cli, acp\
**Created:** [September 12, 2026, 6:07pm UTC](https://forum.cursor.com/t/cursor-agent-acp-fails-every-session-prompt-while-interactive-cli-works/171447 "2026-09-12T18:07:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![plutotom](https://avatars.discourse-cdn.com/v4/letter/p/ac91a4/32.png) [@plutotom](https://forum.cursor.com/u/plutotom)\
**Post date:** [September 12, 2026, 6:07pm UTC](https://forum.cursor.com/t/cursor-agent-acp-fails-every-session-prompt-while-interactive-cli-works/171447/1 "2026-09-12T18:07:44Z")

</div>

### Where does the bug appear (feature/product)?

Cursor CLI

### Describe the Bug

Cursor Agent works correctly in direct interactive CLI mode, but consistently fails when invoked through its ACP stdin/stdout JSON-RPC interface by T3 Code. ACP initialization, authentication, and session creation succeed. Every session/prompt request then fails almost immediately with:

Error: RetriableError: [internal] Failed to run step, exceeded max retries

T3 sometimes displays this as ‘Cursor reported a transport failure,’ but the underlying response is the Cursor RetriableError above.

### Steps to Reproduce

1. Authenticate Cursor Agent normally.
2. In a completely empty folder, confirm that a direct interactive Cursor Agent prompt works.
3. Configure T3 Code to use the local cursor-agent binary through ACP.
4. Create a completely new T3 session.
5. Send a minimal prompt such as ‘hey’.
6. The ACP prompt fails almost immediately with the max-retries error.
7. Repeating the prompt or allowing three automatic retries produces the same error each time.

### Expected Behavior

An authenticated ACP session should process the same basic prompt that succeeds through the direct interactive Cursor Agent CLI. If the backend cannot process it, ACP should return an actionable diagnostic and Request ID.

### Operating System

MacOS

### Version Information

IDE:  
Cursor 3.20.17

CLI:  
Cursor Agent 2026.09.10-fd3934a

OS:  
macOS

### For AI issues: which model did you use?

Auto and Composer 2.5. Direct CLI smoke tests succeed with both the default model and --model auto.

### For AI issues: add Request ID with privacy disabled

No Request ID is exposed in the Cursor Agent ACP response. It returns only: Error: RetriableError: [internal] Failed to run step, exceeded max retries

### Additional Information

Troubleshooting already completed:

- Clean-installed Cursor IDE and Cursor Agent CLI.
- Confirmed direct CLI prompts work with the default model and --model auto.
- Confirmed Cursor Agent authentication succeeds.
- Confirmed api2.cursor.sh is reachable with valid TLS and HTTP 200.
- Confirmed no HTTP\_PROXY, HTTPS\_PROXY, or ALL\_PROXY environment variables are set.
- Tested fresh T3 threads and a completely empty folder.
- Tested Auto, Composer 2.5, Full Access, and auto-accept modes.
- Tested a T3 build that retries Cursor ACP failures three times; every retry failed identically.
- session/new succeeds; the failure occurs during session/prompt.

This appears specific to Cursor Agent’s ACP execution path rather than installation, authentication, project contents, model selection, or general Cursor service connectivity.

Related T3 Code issue:

> <https://github.com/pingdotgg/t3code/issues/10480>
>
> \> \*This was generated by AI during triage.\*
> 
> \## Summary
> 
> Cursor does not current…ly 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-agent\` and \`agent\`
> \- Execution is local on the machine, not a cloud T3 environment
> 
> \## What works
> 
> Both local interactive commands work in Hitch terminals:
> 
> \- Terminal 1: \`agent\` starts, authenticates, and responds to \`hey\`.
> \- Terminal 2: \`cursor-agent\` starts, authenticates, responds to \`hey\`, and successfully runs \`pwd\`.
> \- The local Cursor CLI can reach Cursor services and use Grok 4.6 interactively.
> 
> \## Reproduction in T3
> 
> 1. Enable the Cursor provider in T3 Code.
> 2. Set Binary path to either \`cursor-agent\` or \`agent\`.
> 3. Use the authenticated Cursor account and Grok 4.6.
> 4. Start a Cursor thread and send a simple prompt such as \`hey\`.
> 5. T3 displays:
> 
> \`\`\`text
> 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:
> 
> \`\`\`text
> 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
> 
> !\[Cursor transport failure\](https://gist.githubusercontent.com/ferran9908/46aff953ddc71324e7f67ebc3d291a38/raw/ec8e6331e0f4047a2abdc8e342af302ea4932ea5/cursor-transport-failure.svg)
> 
> !\[Cursor binary path set to agent\](https://gist.githubusercontent.com/ferran9908/46aff953ddc71324e7f67ebc3d291a38/raw/588f7435cb512e35de695fea33aa15f8afa63b38/cursor-settings-agent-path.svg)
> 
> \## 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 \`--force\` permission 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\`.

Related Cursor forum acknowledgement of the same error:

> [@All agent requests result in internal errors](https://forum.cursor.com/t/all-agent-requests-result-in-internal-errors/150768/3):
>
> Hey, thanks for the report. I can see you’ve already tried the main workarounds. This “Failed to run step, exceeded max retries” error is something the team is investigating. It’s different from the common SSL/HTTP2 errors they’re currently fixing. Try this workaround: Switch from Early Access to the Default track: Cursor Settings Cmd+Shift+J \> Beta \> Update Access Select “Default” instead of “Early Access” Restart Cursor It should prompt you to downgrade to the stable version The Early Ac…

Please advise how to collect the corresponding Request ID or diagnostic bundle from Cursor Agent ACP mode.

### Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

---

<div class="post-metadata">

**Author:** ![Colin](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/colin/32/90452_2.png) [@Colin](https://forum.cursor.com/u/Colin)\
**Post date:** [September 13, 2026, 8:03am UTC](https://forum.cursor.com/t/cursor-agent-acp-fails-every-session-prompt-while-interactive-cli-works/171447/5 "2026-09-13T08:03:54Z")

</div>

Hey @plutotom, thanks for the detailed report, and for testing both paths.

I found your requests on our side. The failure is not network or auth-related. Every prompt sent through T3 Code arrives at the model at roughly 570,000 tokens, which is about 3x more than the model accepts. Your direct CLI prompts arrive at 12k to 30k tokens, which is why those work.

That extra ~550k tokens is probaly always-on context that gets loaded from the folder the session runs in: rules files (`.cursor/rules`, `AGENTS.md`, `CLAUDE.md`, including ones in parent folders and subfolders), skills, and MCP tool definitions.

Could you try this so we can pin it down?

1. In T3 Code, note the exact project folder path for the thread that fails.
2. Open a terminal and cd into that same folder.
3. Run `agent` (interactive mode) and send the prompt `hey`.
4. Once it answers (or fails), type `/context` and press Enter. It shows a breakdown of what is in the context (rules, MCP tools, skills, etc.).
5. Reply with that breakdown, plus: does that folder or any parent folder up to your home directory contain an AGENTS.md, CLAUDE.md, .cursor/rules, .claude or .codex folder? And how many MCP servers are in ~/.cursor/mcp.json or the project’s .cursor/mcp.json?

If the interactive run in that folder also fails or shows a very large context, the fix is to trim that context.

---

<div class="post-metadata">

**Author:** ![plutotom](https://avatars.discourse-cdn.com/v4/letter/p/ac91a4/32.png) [@plutotom](https://forum.cursor.com/u/plutotom)\
**Post date:** [September 13, 2026, 1:57pm UTC](https://forum.cursor.com/t/cursor-agent-acp-fails-every-session-prompt-while-interactive-cli-works/171447/7 "2026-09-13T13:57:36Z")

</div>

Thanks, Colin. I ran the requested test from the exact same project folder used by the failing T3 Code thread:

`/Users/proctoi/Desktop/test-t3`

The direct interactive `agent` run succeeded with the prompt `hey`. `/context` reported only 25.5K / 200K tokens (12.8%) (See screenshot below as well):

- System prompt: 511
- Rules: 3.6K
- MCP: 6.9K
- Conversation: 2.0K
- Tool definitions: 7.2K
- Skills: 3.8K
- Subagents: 1.2K
- Free space: 174K

I also checked the project folder and each parent directory up to my home directory:

- No `AGENTS.md`
- No `CLAUDE.md`
- No `.cursor/rules`
- No project-level `.cursor/mcp.json`
- Home-level `~/.claude` and `~/.codex` directories exist
- `~/.cursor/mcp.json` contains 4 MCP servers (Vercel, PostHog, Better Auth, and Sentry).

I got curious and ran a trace locally of the raw ACP request/response trace. Here is the resaults.

/Users/proctoi/Desktop/test-t3`

Cursor Agent version: `2026.09.10-fd3934a`

## Request sizes

| Direction | Message | Bytes |
| --- | --- | --- |
| T3 → Cursor | `initialize` | 369 |
| T3 → Cursor | `authenticate` | 195 |
| T3 → Cursor | `session/new` | 387 |
| T3 → Cursor | `session/prompt` | 535 |
| T3 → Cursor | Complete stream | 1,490 |
| Cursor → T3 | Complete stream | 18,490 |

Cursor emitted these ACP updates:

1. `session_info_update`: 176 bytes
2. `available_commands_update`: 12,405 bytes
3. `agent_message_chunk`: 268 bytes, containing  
`Error: RetriableError: [internal] Failed to run step, exceeded max retries`

Cursor then returned a successful JSON-RPC response for the prompt with  
`stopReason: "end_turn"`. The failure is therefore delivered as assistant text,  
not as a JSON-RPC error object.

It seems that t3 Code did not send the 500k token prompt, but that it must be assembled or duplicated after the local Cursor Agent receives the ACP request—inside Cursor’s ACP context construction or backend request path.

Link to the raw trace if helpful: [https://dropover.cloud/8e5981](https://dropover.cloud/8e5981)

Thanks @Colin

 ![Screenshot 2026-09-13 at 8.32.22 AM](https://us1.discourse-cdn.com/cursor1/original/3X/8/c/8cabb847c89eb8c74a3dcabe3eceb8f1c4fd3109.jpeg)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/colin/32/90452_2.png) [@Colin](https://forum.cursor.com/u/Colin)\
**Post date:** [September 14, 2026, 9:23am UTC](https://forum.cursor.com/t/cursor-agent-acp-fails-every-session-prompt-while-interactive-cli-works/171447/11 "2026-09-14T09:23:11Z")

</div>

Hey @plutotom, thanks for running that test and for the trace, that pinned it down!

You’re right that the extra context is added on our side, not by T3 Code. It is the tool definitions from your MCP servers. In the interactive CLI and the IDE, MCP tools are loaded on demand (that is why `/context` only shows 6.9K for MCP). The ACP mode that T3 Code uses does not do that yet: it sends the full definition of every tool from every configured MCP server with each prompt, which in your setup is about 259 tools and roughly 490k tokens. That alone is more than the model’s context window, so the request fails before the model ever sees “hey”. I’ve flagged this to the team.

In the meantime you can work around it by disabling the MCP servers for that project, which ACP respects:

1. Open a terminal and `cd /Users/proctoi/Desktop/test-t3` (the disable list is per project, so this has to be the same folder T3 uses).
2. Run `agent mcp list` to see the server names.
3. Run `agent mcp disable <name>` for each server (Vercel, PostHog, Better Auth, Sentry).
4. Start a brand new thread in T3 Code and send `hey`.

If that works, you can re-enable them one at a time with `agent mcp enable <name>` to find out which one carries most of the weight (PostHog and Vercel tend to be the largest). Interactive `agent` sessions in that folder will also stop using those servers until you re-enable them.

Let me know if the prompt still fails with all four disabled and I’ll dig further.

---

<div class="post-metadata">

**Author:** ![plutotom](https://avatars.discourse-cdn.com/v4/letter/p/ac91a4/32.png) [@plutotom](https://forum.cursor.com/u/plutotom)\
**Post date:** [September 14, 2026, 6:43pm UTC](https://forum.cursor.com/t/cursor-agent-acp-fails-every-session-prompt-while-interactive-cli-works/171447/12 "2026-09-14T18:43:01Z")

</div>

Hey that did the trick! Thanks @Colin for all the help with this!

---

<div class="post-metadata">

**Author:** ![Colin](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/colin/32/90452_2.png) [@Colin](https://forum.cursor.com/u/Colin)\
**Post date:** [September 14, 2026, 7:27pm UTC](https://forum.cursor.com/t/cursor-agent-acp-fails-every-session-prompt-while-interactive-cli-works/171447/18 "2026-09-14T19:27:57Z")

</div>

Thanks for confirming. I’ve flagged this for the team!
