Toggle agent layout ignore sidebar location if set to right

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

“Toggle Agent Layout” (⌘E), ignores “Move Primary Side Bar Right.”

Steps to Reproduce

If I have my side bar set to right, and I hit ⌘E, I would expect it to stay there, no matter how many times I hit ⌘E.

Expected Behavior

It used to stay on the right, giving me easy access to switch between my current Agent and Editor layouts.

Operating System

MacOS

Version Information

Version: 2.6.19 (Universal)
VSCode Version: 1.105.1
Commit: 224838f96445be37e3db643a163a817c15b36060
Date: 2026-03-12T04:07:27.435Z
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 24.6.0

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, this is a known issue: the sidebar position resets when you switch layouts with Cmd+E. This was fixed before, but it looks like the regression is back.

Try this workaround: open settings.json (Cmd + Shift + P > “Preferences: Open User Settings (JSON)”) and add:

"workbench.sideBar.location": "right"

Then restart Cursor. Honestly, it doesn’t help everyone, but it’s worth a try.

Related threads, if you’re interested:

Let me know if the workaround helps.

I already had this in my User Settings JSON, and even after removing it, restarting, adding, restarting. It still doesn’t appear to be working.

I remember when the bug was originally around and when it was then fixed. Definitely, quite annoying to have it be reintroduced.

1 Like

I should add that, previously I was able to tell if I was on the Agent or Editor layout by the background color of the agent chat (which was already fairly obscure, but that’s a different problem). It was darker when in the Editor layout, and lighter in the Agent layout. Now, however it’s always the same lighter color as when I am in the Agent layout.