feat: rebrand as Open Claude and harden OpenAI REPL

This commit is contained in:
Kevin Codex
2026-04-01 13:31:18 +08:00
parent 55098bf9b7
commit 2d7aa9c841
14 changed files with 109 additions and 53 deletions

View File

@@ -36,6 +36,9 @@ import {
import { createSignal } from './signal.js'
export function isFastModeEnabled(): boolean {
if (getAPIProvider() !== 'firstParty') {
return false
}
return !isEnvTruthy(process.env.CLAUDE_CODE_DISABLE_FAST_MODE)
}
@@ -70,6 +73,10 @@ function getDisabledReasonMessage(
}
export function getFastModeUnavailableReason(): string | null {
if (getAPIProvider() !== 'firstParty') {
return 'Fast mode is not available on third-party providers'
}
if (!isFastModeEnabled()) {
return 'Fast mode is not available'
}
@@ -109,13 +116,6 @@ export function getFastModeUnavailableReason(): string | null {
}
}
// Only available for 1P (not Bedrock/Vertex/Foundry)
if (getAPIProvider() !== 'firstParty') {
const reason = 'Fast mode is not available on Bedrock, Vertex, or Foundry'
logForDebugging(`Fast mode unavailable: ${reason}`)
return reason
}
if (orgStatus.status === 'disabled') {
if (
orgStatus.reason === 'network_error' ||