altimate-code icon indicating copy to clipboard operation
altimate-code copied to clipboard

feat: Claude subscription follow-ups — Windows shim, failure reason, non-TUI notice, environment, RPC cancel test

Open sahrizvi opened this issue 2 weeks ago • 0 comments

Found during the v0.12.11 release review of #1706 "feat: Claude subscription support through a Claude Agent provider". Deferred because each needs design or a real machine to verify; the release fixes the user-visible wording around them.

  • [ ] Windows claude shim. which("claude") can return an npm claude.cmd shim, and spawning a .cmd file directly may fail, so /connect would wait 5 minutes and then report no login. Verify on Windows with an npm-installed Claude Code; resolve claude.exe or spawn through the shell. (claude/io.ts, claude/probe.ts)
  • [ ] The reason a /connect login check failed. After the 5-minute wait the callback returns { type: "failed" } and the reason (not installed, logged out, too old) is only logged. v0.12.11 makes the TUI toast name the next steps for Claude subscription; carrying the real reason needs a message on the plugin's failed result, ProviderAuthOauthCallbackFailed and the SDK. (claude-agent/plugin.ts, provider/auth.ts, dialog-provider.tsx)
  • [ ] Notice for serve, run and IDE users with a removed Claude Pro/Max sign-in. Only the TUI shows the one-time notice; v0.12.11 adds a hint to the "Model not found" error for anthropic/.... Consider a startup warning when scan().retiredAnthropicLogin is true.
  • [ ] Environment passed to claude. The process inherits the whole environment, including other providers' keys. An ANTHROPIC_API_KEY in the shell bills that key instead of the subscription (now documented). Consider passing only what Claude Code needs, and warning in /connect when ANTHROPIC_API_KEY or ANTHROPIC_AUTH_TOKEN is set.
  • [ ] A test for request cancellation over the TUI worker RPC (createWorkerFetch in cli/cmd/tui.ts, rpc.abort in cli/tui/worker.ts): abort before the request reaches the worker, abort after it completes, and no entries left in pendingRequests.

sahrizvi avatar Nov 15 '26 21:11 sahrizvi