feat(vscode): Support Claude Code Max subscription
Sma1lboy opened this issue · comments
Summary
As a follow-up to issue #61 and PR #282, this task is to add support for the Claude Code Max subscription within the VSCode extension. While the CLI already supports this, the VSCode extension currently does not due to technical limitations.
Problem
The main obstacle is a CORS issue originating from the VSCode webview. The webview's request to the third-party proxy for Claude Code Max is blocked, preventing the connection. This requires an adjustment to how the webview handles these fetch requests.
Proposed Solution
- Modify Fetch Implementation: Adjust the
fetchconnection logic for theclaude-codevendor. The request should be proxied through the extension's backend to bypass the webview's CORS restrictions. - Update Streaming Logic: Ensure the
onChunkdata streaming is correctly handled through the new proxied connection.
Potentially Affected Files
Based on the current architecture, the following files may require modification:
packages/vscode/src/integrations/vscode-lm.tspackages/vendor-claude-code/src/(and its internal files)- Files related to the webview's message passing and request handling.
This will enable full support for Claude Code Max for users on the subscription plan within VSCode.
🤖 Generated with Pochi
Closing in favor of #306, which has a more accurate title and detailed background.