Hey, this is a known issue. The agent panel state doesn’t persist when switching between editor mode and agent mode. Yeah, it’s annoying.
For the sidebar position, you can try adding this to settings.json via Ctrl+Shift+P > Preferences: Open User Settings (JSON):
"workbench.sideBar.location": "right"
But for the main issue where the agent panel shows up again after switching, there isn’t a working workaround right now.
Related threads for context:
- Appearance/view settings not persisting
- V2.5.17 - Interface issues when changing between Editor and Agent
Let me know if you’ve got any questions.