TabbyML / pochi

Home Page:https://docs.getpochi.com

Repository from Github https://github.comTabbyML/pochiRepository from Github https://github.comTabbyML/pochi

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

  1. Modify Fetch Implementation: Adjust the fetch connection logic for the claude-code vendor. The request should be proxied through the extension's backend to bypass the webview's CORS restrictions.
  2. Update Streaming Logic: Ensure the onChunk data 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.ts
  • packages/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.