altimate-code
altimate-code copied to clipboard
feat: Claude subscription follow-ups — Windows shim, failure reason, non-TUI notice, environment, RPC cancel test
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
claudeshim.which("claude")can return an npmclaude.cmdshim, and spawning a.cmdfile directly may fail, so/connectwould wait 5 minutes and then report no login. Verify on Windows with an npm-installed Claude Code; resolveclaude.exeor spawn through the shell. (claude/io.ts,claude/probe.ts) - [ ] The reason a
/connectlogin 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 amessageon the plugin's failed result,ProviderAuthOauthCallbackFailedand the SDK. (claude-agent/plugin.ts,provider/auth.ts,dialog-provider.tsx) - [ ] Notice for
serve,runand 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 foranthropic/.... Consider a startup warning whenscan().retiredAnthropicLoginis true. - [ ] Environment passed to
claude. The process inherits the whole environment, including other providers' keys. AnANTHROPIC_API_KEYin the shell bills that key instead of the subscription (now documented). Consider passing only what Claude Code needs, and warning in/connectwhenANTHROPIC_API_KEYorANTHROPIC_AUTH_TOKENis set. - [ ] A test for request cancellation over the TUI worker RPC (
createWorkerFetchincli/cmd/tui.ts,rpc.abortincli/tui/worker.ts): abort before the request reaches the worker, abort after it completes, and no entries left inpendingRequests.