fix: isUsing3PServices 检查所有非 Anthropic provider#1235
Conversation
原实现仅检查 Bedrock/Vertex/Foundry,遗漏了 OpenAI、Gemini、Grok 三个通过 CLAUDE_CODE_USE_* 环境变量切换的第三方 provider。 这导致: - 命令可用性判定中 OpenAI/Gemini/Grok 用户被错误识别为 console 用户 (/fast、/install-github-app 两个 Anthropic 专有命令误显示) - auth status 显示中这些用户被误报为"未登录" Co-Authored-By: deepseek-v4-pro[1m] <deepseek-ai@claude-code-best.win>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe ChangesThird-party provider detection expansion
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint skipped: no ESLint configuration detected in root package.json. To enable, add Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
原
isUsing3PServices()仅检查 Bedrock / Vertex / Foundry,遗漏了OpenAI、Gemini、Grok 三个通过
CLAUDE_CODE_USE_*环境变量切换的第三方 provider。
这导致两个问题:
(
/fast、/install-github-app两个 Anthropic 专有命令误显示)Changes
在函数中添加三个缺失的环境变量检查,并更新注释说明与
providers.ts的同步要求。
Test plan
🤖 Generated with Claude Code Best
Summary by CodeRabbit