feat: rebrand as Open Claude and harden OpenAI REPL
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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' ||
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user