Where does the bug appear (feature/product)?
Somewhere else…
Describe the Bug
Cursor SDK local agents fail inside Agent.send(). Agent.create() succeeds, but when send(“hi”) is called on a local repo, the run only emits RUNNING and then ERROR. No assistant message is produced,
onDelta/onStep never fire, and run.wait() returns a generic error result with no useful payload.
Steps to Reproduce
`1. Set CURSOR_API_KEY and CURSOR_USE_HTTP1=1 in the environment.
2. Run a minimal local SDK script:
const agent = await Agent.create({ apiKey: process.env.CURSOR_API_KEY, model: { id: “gpt-5.3-codex” }, local: { cwd: “/Users/ankurtayal/workspace/cns/cursor-sdk-poc” } });
const run = await agent.send(“hi”);
for await (const event of run.stream()) console.log(event);
console.log(await run.wait());
error detail.
Expected Behavior
Agent.send() should start a local run and produce either assistant output or a structured error that explains why execution failed. The run should not go straight from RUNNING to ERROR with an empty
conversation, no onDelta/onStep events, and no actionable error detail.
Operating System
MacOS
Version Information
About Cursor CLI
CLI Version 2026.05.09-0afadcc
Model Auto
Subscription Tier Enterprise
OS darwin (arm64)
Terminal apple-terminal
Shell zsh
bun.lock
“@cursor/sdk”: “1.0.12”,
Tested with bun - Bun 1.3.14
Tested with - Node v24.10.0
For AI issues: which model did you use?
gpt-5.3-codex
also tested: composer-2, gpt-5.5, claude-sonnet-4-6, gemini-3.1-pro
For AI issues: add Request ID with privacy disabled
agent.platform.listRuns: {
items: [
DetachedStoreRun {
id: ‘run-fee6a295-4be1-4f3a-98d3-9a44aa3d2cdd’,
agentId: ‘agent-044e4e27-a9bb-4a44-8e6c-333f0cb2510f’,
currentStatus: ‘error’,
result: undefined,
durationMs: 5212,
streamFactory: [Function (anonymous)],
git: undefined,
createdAt: 1778734573481,
model: {
id: ‘gpt-5.3-codex’
}
}
],
nextCursor: undefined
}
Does this stop you from using Cursor
Yes - Cursor is unusable