[BUG] The chat prompt grabs the input when trying to maximize the main panel via keyboard shortcut
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 hitting the keyboard shortcut to maximize the panel (View: Toggle Maximize Panel):
- In Cursor.AI's IDE the sidebar expands to occupy have the width of the editor
- In VSCode the extension grabs the input and transfers the focus to the chat's prompt (textbox)
Notes:
-
Defining a different keyboard shortcut yields the same result.
-
The problem does not persist when the extension is not visible on screen (e.g. by closing the extension or by opening a different text document in the same panel, making the extension tab hidden).
-
The problem also does not persist when using the Claude Code CLI panel. It happens only with the VSCode UI extension.
What Should Happen?
The main panel (terminal, problems, output, debug console) should maximize to the full height of the editing area.
Error Messages/Logs
N/A
Steps to Reproduce
Hit the "View: Toggle Maximize Panel" shortcut.
Edit: Clicking the UI button has the same effect - the extension hijacks the operation.
Claude Model
None
Is this a regression?
I don't know
Last Working Version
No response
Claude Code Version
2.0.46 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
VS Code integrated terminal
Additional Information
I'm relatively new to Claude Code, using it for a few weeks, don't recall having this issue when I started using the extension. This seems new, but can't tell for sure.
Update: The above report refers to the extension appearing as an editor tab next to other text/file editors. This was the behavior ever since I installed the extension.
After fiddling with the extension for a bit, I think I selected "Claude Code: Open in Side Bar" and the extension now appears on the list of the sidebar icons (it didn't until today), opens as expected, acts as expected and I don't experience the reported issue anymore.
And after more fiddling right now, I found out that "Claude Code: Open in New Tab" is what's causing it to misbehave.
To summarize, the issue persists when the extension is opened as a tab, and doesn't persist when opening as a sidebar panel, nor as a new window.
I noticed this too. This appears to have started with 2.0.42. Thanks for updating with a decent workaround!
This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.
This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.