Reset CLAUDE_CODE_USE_BEDROCK when running with ccr code.

This commit is contained in:
Robin Chiu
2025-09-24 11:44:40 +08:00
parent 5cd21c570f
commit 8e9b8a0792

View File

@@ -21,6 +21,8 @@ export async function executeCodeCommand(args: string[] = []) {
DISABLE_TELEMETRY: 'true', DISABLE_TELEMETRY: 'true',
DISABLE_COST_WARNINGS: 'true', DISABLE_COST_WARNINGS: 'true',
API_TIMEOUT_MS: String(config.API_TIMEOUT_MS ?? 600000), // Default to 10 minutes if not set API_TIMEOUT_MS: String(config.API_TIMEOUT_MS ?? 600000), // Default to 10 minutes if not set
// Reset CLAUDE_CODE_USE_BEDROCK when running with ccr code
CLAUDE_CODE_USE_BEDROCK: undefined,
}; };
let settingsFlag: Record<string, any> | undefined; let settingsFlag: Record<string, any> | undefined;
if (config?.StatusLine?.enabled) { if (config?.StatusLine?.enabled) {