t3code icon indicating copy to clipboard operation
t3code copied to clipboard

Cursor provider should use cursor-agent when Grok agent is on PATH

Open Aditya190803 opened this issue 5 months ago • 1 comments

Problem

When Cursor is configured with the default binary path agent, T3 can spawn the wrong CLI if Grok's agent appears earlier on PATH.

On my machine:

  • which agent → /home/adi/.grok/bin/agent (Grok CLI)
  • which cursor-agent → /home/adi/.local/bin/cursor-agent (Cursor CLI)

With Cursor settings like:

"cursor": {
  "enabled": true,
  "binaryPath": "agent"
}

startup runs Cursor provider discovery via ACP (agent acp), but that resolves to Grok's agent, not Cursor's. Result:

Cursor ACP model discovery failed { errorTag: 'AcpTransportError' }

cursor-agent about and cursor-agent acp work fine when invoked directly.

Expected behavior

Cursor provider checks/discovery should use the Cursor CLI (cursor-agent), not whatever agent happens to be on PATH.

Suggested fix

  1. Change Cursor default binaryPath from agent to cursor-agent in settings/contracts.
  2. Optionally map legacy "agent" → cursor-agent when resolving the Cursor binary, since Cursor's historical default collides with Grok's agent.
  3. Update docs/settings placeholder to recommend cursor-agent.

Workaround (today)

In T3 Settings → Cursor, set binary path to cursor-agent (or full path to the Cursor binary).

Why this matters

Both providers can be enabled on the same machine. A shared default of agent is fragile once Grok ships its own agent binary and it wins PATH resolution.

Offer

Happy to open a separate PR for this if that's useful — e.g. defaulting to cursor-agent and/or mapping legacy "agent" for existing configs.

Aditya190803 avatar Jun 21 '26 10:06 Aditya190803

Closing in favor of the properly formatted bug report: #3479

Aditya190803 avatar Jun 21 '26 10:06 Aditya190803