[FEATURE] Use claudeProcessWrapper when launching on VS Code with `useTerminal = true`
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
Claude Code VS Code extension v2 has claudeCode.claudeProcessWrapper option to launch Claude Code with user customization. It also has claudeCode.useTerminal option for users who prefer teminal experience as the extension v1 offered.
For me, claudeCode.claudeProcessWrapper is useful to launch Claude Code with my own auth script to use it with Amazon Bedrock. It works with non-terminal experience, but it doesn't with terminal; it just executes claude command rather than appending the value of claudeCode.claudeProcessWrapper.
Proposed Solution
Launch a command which is specified by claudeCode.claudeProcessWrapper option when claudeCode.useTerminal is true.
Alternative Solutions
The extension launches claude just after opening its extension pane. The plain claude can be manually terminated, and we can type our own command.
Priority
Medium - Would be very helpful
Feature Category
Developer tools/SDK
Use Case Example
- I'm willing to use Claude Code with Amazon Bedrock. And we have our own log-in command for AWS, which should be run just before launching
claude. Plain launch ofclaudewill fail. - On VS Code, the default experience of v2 extension is not nice with some custom configurations. So I want to use Terminal mode.
- With
"claudeCode.useTerminal" = true, the extension launchesclaudeon open by default. But I'd like to launch my own wrapper command instead.
Additional Context
Example of a part of my settings.json for VS Code:
"claudeCode.claudeProcessWrapper": "/usr/local/bin/bedrock-auth-wrapper",
"claudeCode.environmentVariables": [
{
"name": "CLAUDE_CODE_USE_BEDROCK",
"value": "1"
}
],
"claudeCode.useTerminal": true
/usr/local/bin/bedrock-auth-wrapper is just a shell script which runs a login script before launching claude command. The expected command is /usr/local/bin/bedrock-auth-wrapper claude.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗