Toggle agent layout ignore sidebar location if set to right

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.