Unexpected mode change

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

When I edit already sent prompt and sending it once again in agent moge, and i have awaiting promt after this one, in agent mode, but i want to change mode in awaiting prompt, to PLAN for example, mode is also changing in previous edited prompt. If i do it fast enought, the previous promt is sent with diffrent mode that stated in the first place.

Steps to Reproduce

send promt,
send another prompt
stop ai
edit first prompt. in agent
send it
edit awaiting prompt, change mode
save it

If you do this fast enough, first prompt will go with mode of the second

Expected Behavior

think

Operating System

Windows 10/11

Version Information

Version: 2.6.12 (system setup)
VSCode Version: 1.105.1
Commit: 1917e900a0c4b0111dc7975777cfff60853059d0
Date: 2026-03-04T21:41:18.914Z
Build Type: Stable
Release Track: Default
Electron: 39.6.0
Chromium: 142.0.7444.265
Node.js: 22.22.0
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.26200

For AI issues: which model did you use?

whatever

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report. This is a known issue with mode state management. The mode selection is currently shared globally per agent, not scoped per prompt, which causes the exact race condition you described.

Workaround for now: avoid switching modes on queued prompts right after resending an edited one. If you need different modes per prompt, wait for the first one to fully dispatch before changing the mode on the next.

The team is aware of this. Your report with clear repro steps helps with prioritization. We’ll update here if there’s news.