Agent mode skipped when switching with hotkey

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

The Agent mode is skipped when switching modes with the hotkey (shift+tab) on the first lap. In the steps below, I reproduce it by cancelling the execution, but the same often happens after the execution finishes, and I want to switch to the Agent mode to start building.

Steps to Reproduce

  1. Open a new agent
  2. Type in a prompt
  3. Switch to the Ask mode
  4. Send the prompt
  5. Cancel the execution
  6. Press shift + tab

Expected Behavior

The mode switches to Plan instead of Agent

Operating System

Windows 10/11

Version Information

Version: 3.2.11 (user setup)
VSCode Version: 1.105.1
Commit: e9ee1339915a927dfb2df4a836dd9c8337e17cc0
Date: 2026-04-24T14:36:47.933Z
Layout: editor
Build Type: Stable
Release Track: Default
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.26200

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hi @Oleg_Mastriukov!

Since Agent Mode is the default, have you already switched to another mode (like Plan Mode) to start? Just want to make sure I have the repro steps correct!

@Colin oops, sorry, updated the description. You send the first prompt in the Ask mode, then cancel it, and press the hotkey to swith the mode – the next mode will be Plan instead of Agent. If you keep pressing, it will go Debug → Ask → Agent, so the next time the Agent mode is properly chosen.

Thanks @Oleg_Mastriukov! I can reproduce if the agent response has started streaming (and hasn’t finished) when I cancel. I’ve filed a bug with the team. Thanks for the flagging.