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

@@ -109,7 +109,7 @@ export function execFileNoThrowWithCwd(
// Use execa for cross-platform .bat/.cmd compatibility on Windows
execa(file, args, {
maxBuffer,
signal: abortSignal,
cancelSignal: abortSignal,
timeout: finalTimeout,
cwd: finalCwd,
env: finalEnv,

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' ||

View File

@@ -245,7 +245,7 @@ export function getLogoDisplayData(): {
billingType: string
agentName: string | undefined
} {
const version = process.env.DEMO_VERSION ?? MACRO.VERSION
const version = process.env.DEMO_VERSION ?? MACRO.DISPLAY_VERSION ?? MACRO.VERSION
const serverUrl = getDirectConnectServerUrl()
const displayPath = process.env.DEMO_VERSION
? '/code/claude'