[BUG] Files open in same panel/sidebar as Claude Code chat instead of main editor
Resolved 💬 2 comments Opened May 27, 2026 by aleszyszko Closed May 31, 2026
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
When Claude Code is in the secondary sidebar (right) or bottom panel, clicking any file link opens the file as a tab in the same panel/sidebar area as the chat, instead of the main editor.
What Should Happen?
Files should open in the main editor area (left/center), not alongside the chat window.
Error Messages/Logs
Steps to Reproduce
- Place Claude Code in the secondary sidebar (right) or bottom panel
- Click any file link in the chat (or click a file in the Explorer)
- File opens as a tab next to the Claude Code chat tab, inside the same panel/sidebar
- Chat window becomes narrow, file preview is very small
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.152
Platform
Other
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
Root cause investigated in extension.js:
The file is opened using this.panelTab.viewColumn + 1, which resolves to a column inside the secondary sidebar/panel container instead of ViewColumn.One (main editor).
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗