Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
Agent stops mid-task without user pressing Stop. UI shows progress (e.g. “Worked 1m 13s”, todo 2/3, message “I will save changes to shg_visualizer.py…”) but the run ends the turn after only updating todos — no StrReplace / write / terminal tools for the actual code changes.
This is not the same as the known BYOK vision bug (multimodal → Unauthorized). Text-only Agent runs exhibit early stopping: backend appears to complete successfully (turnEnded), but work is incomplete.
Reproduced in a fresh Agent chat (not the same long thread): used an explicit prompt requiring end-to-end edits in this turn and forbidding stop after planning/todos only. Agent still explored files (~59s), stated it would edit shg_visualizer.py and shg_threejs.py, then ended the turn with no file diff. Same early stopping.
Steps to Reproduce
Steps to reproduce
- Cursor Settings → Models → enable OpenAI API Key + Override Base URL (Sub2API - AI API Gateway).
- Add custom model gpt-5.5, select it in Agent chat.
- Open Agent on a codebase task requiring multi-step edits (e.g. modify two Python files + run tests).
- Prompt example: “Please complete the modification: fix floor slab outline in shg_visualizer.py and wall material in shg_threejs.py; do not stop after planning.”
- Observe: Agent may update todos and print intent to edit files, then idle with “Send follow-up” — user did not click Stop.
Expected Behavior
Agent should continue tool calls (read/write files, run tests) until todos are complete or a real blocker occurs.
Operating System
Windows 10/11
Version Information
Cursor version: 3.6.31 ([email protected], Electron 39.8.1)
OS: Windows 10.0.26200 (x64)
Mode: Agent
Account: Pro Plan
For AI issues: which model did you use?
Model: gpt-5.5 (Medium) via Bring Your Own Key (BYOK)
OpenAI Override Base URL: Sub2API - AI API Gateway (OpenAI-compatible third-party gateway; text + tool calls work; not the issue here)
For AI issues: add Request ID with privacy disabled
1087477e-08b5-4024-a713-b43ae7401fb6
Primary report: local telemetry shows only updateTodosToolCall then turnEnded (~48s), model gpt-5.5, prompt ~164 chars
Additional Information
Actual behavior
- Agent updates todos (updateTodosToolCall) and sometimes shows planning text.
- Turn ends (turnEnded) with no file-edit tools executed for the stated work.
- User must manually send follow-up repeatedly; same pattern can recur in the same thread.
- No Unauthorized error in these runs (unlike attaching images with BYOK — separate confirmed bug).
Workarounds tried
- Explicit prompt in a new Agent chat: “must finish edits and verification in this round; do not stop after planning or updating todos only” — still stops after exploration/plan text, no diff.
- Explicit prompt: “complete end-to-end, do not stop after exploration” — still stops after todos/plan.
- Direct API to gateway (PowerShell chat/completions) works — not a gateway issue.
Does this stop you from using Cursor
No - Cursor works, but with this issue