Command + i does not function as expected

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

It used to work just fine, when I selected code and entered Command + i, it would add the highlighted code to the chat agent window. Now, the behavior is completely unpredictable. Sometimes it opens the chat window to the right, sometimes it creates a new chat “tab” that looks like an editor tab, and sometimes it clears the chat window to the right completely. It’s almost like it’s trying to get me to go into “agent” mode which I find to be inferior personally. It’s really frustrating, because I really liked the way I could easily add code to the chat window just by highlighting.

I see that there are clearly two types of chat windows - one that is embedded in the sidebar and one that exists in a tab. There seems to be some kind of overlapping handling of the signal for Command + i, which is causing the bug.

I’ve checked for overlapping keybindings for command + i and there are none that I could find, but even if there is, there should not be overlapping keyboard shortcuts with the same precendent. I’m on MacOS 26.3 but this issue has been around for at least 3-4 months now.

Steps to Reproduce

  1. Go to the Cursor IDE
  2. Select code in a file
  3. See that the code you selected isn’t added to the chat window, or that the it’s added to another tabbed chat window

Operating System

MacOS

Version Information

Version: 2.5.25
VSCode Version: 1.105.1
Commit: 7150844152b426ed50d2b68dd6b33b5c5beb73c0
Date: 2026-02-24T07:17:49.417Z (2 days ago)
Build Type: Stable
Release Track: Default
Electron: 39.4.0
Chromium: 142.0.7444.265
Node.js: 22.22.0
V8: 14.2.231.22-electron.0
OS: Darwin arm64 25.3.0

Does this stop you from using Cursor

No - Cursor works, but with this issue

1 Like

Hey, thanks for the report.

There are a few things worth clarifying. In the current version of Cursor, the shortcuts work like this:

  • Cmd+K: Inline Edit (edits the selected code in place)
  • Cmd+L: Send the selected code to chat
  • Cmd+I: Show or hide the AI panel (chat or agent)

What you’re describing, selecting code and having it added to the chat window, sounds like what Cmd+L does.

As for Cmd+I, the inconsistent behavior between the sidebar panel and the editor tab is a known issue, and the team is aware of it. Right now the chat can live in two places, the sidebar panel or an editor tab, and Cmd+I can sometimes switch between them in an unpredictable way depending on where the chat was last opened.

If your main workflow is “select code, add it to chat”, try using Cmd+L, since it’s built for that.

Let me know if this helps, or if the issue still happens even when you use Cmd+L.

Check Cursor Settings > Agents > Default Location.

If this setting is set to Pane, it will likely work as expected.

2 Likes