feat: 绕过 Claude Code 内的 claude 的账号需要; 但是浏览器扩展还是要权限

This commit is contained in:
claude-code-best
2026-04-03 23:57:27 +08:00
parent 6738a76152
commit 4c0b2aaedb
5 changed files with 6 additions and 13 deletions

View File

@@ -1525,7 +1525,7 @@ async function run(): Promise<CommanderCommand> {
};
// Store the explicit CLI flag so teammates can inherit it
setChromeFlagOverride(chromeOpts.chrome);
const enableClaudeInChrome = shouldEnableClaudeInChrome(chromeOpts.chrome) && ((process.env.USER_TYPE) === 'ant' || isClaudeAISubscriber());
const enableClaudeInChrome = shouldEnableClaudeInChrome(chromeOpts.chrome);
const autoEnableClaudeInChrome = !enableClaudeInChrome && shouldAutoEnableClaudeInChrome();
if (enableClaudeInChrome) {
const platform = getPlatform();