[BUG] /logout command is missing in Claude Code VS Code Extension
Preflight Checklist
- [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?
The /logout command is completely missing when using the Claude Code VS Code Extension interface. While the command exists in the standalone CLI, it is not available or recognized within the extension's environment. This makes it impossible to terminate a session or switch accounts without leaving the IDE. Currently, the only workaround is to open an Windows PowerShell window and manually run claude /logout.
What Should Happen?
The /logout command should be implemented and available directly within the Claude Code VS Code Extension. Users should be able to manage their session and log out seamlessly within the extension interface, just as they can in the standard CLI.
Error Messages/Logs
There are no specific error messages; the command simply does not exist or is not registered within the extension's command palette or chat interface.
Steps to Reproduce
- Open Visual Studio Code.
- Navigate to the Claude Code Extension (not the integrated terminal, but the extension's own interface/tab).
- Attempt to find or execute the /logout command.
- Observe that the command is missing and there is no UI option to log out.
- Open an external Windows PowerShell (outside of VS Code) and run claude /logout.
- Notice that only after running it externally is the session cleared within the VS Code Extension.
Claude Model
Sonnet (default)
Is this a regression?
No, this never worked
Last Working Version
_No response_
Claude Code Version
2.1.96 (Claude Code)
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗