fix: 修复CI格式检查失败

This commit is contained in:
Bill
2026-05-09 16:21:07 +08:00
parent c7cb3d8f93
commit b52c10ddb9
4 changed files with 9 additions and 20 deletions

View File

@@ -56,9 +56,7 @@ function clearChatGPTSettingsAuthMode(): void {
Boolean(env.OPENAI_API_KEY ?? process.env.OPENAI_API_KEY) &&
Boolean(env.OPENAI_BASE_URL ?? process.env.OPENAI_BASE_URL);
const settingsUpdate: Parameters<typeof updateSettingsForSource>[1] = {
...(userSettings.modelType === 'openai' && !hasOpenAICompatibleConfig
? { modelType: undefined }
: {}),
...(userSettings.modelType === 'openai' && !hasOpenAICompatibleConfig ? { modelType: undefined } : {}),
env: {
OPENAI_AUTH_MODE: undefined,
} as unknown as Record<string, string>,
@@ -92,7 +90,7 @@ export async function clearAuthRelatedCaches(): Promise<void> {
export async function call(): Promise<React.ReactNode> {
await performLogout({ clearOnboarding: true });
const message = <Text>Successfully logged out.</Text>
const message = <Text>Successfully logged out.</Text>;
setTimeout(() => {
gracefulShutdownSync(0, 'logout');

View File

@@ -458,8 +458,7 @@ function OAuthStatusMessage({
{
label: (
<Text>
ChatGPT account with subscription ·{' '}
<Text dimColor>Plus, Pro, Business, Edu, or Enterprise</Text>
ChatGPT account with subscription · <Text dimColor>Plus, Pro, Business, Edu, or Enterprise</Text>
{'\n'}
</Text>
),

View File

@@ -176,21 +176,11 @@ export function ModelPicker({
(direction: 'left' | 'right') => {
if (!focusedSupportsEffort) return;
setEffort(prev =>
cycleEffortLevel(
prev ?? focusedDefaultEffort,
direction,
focusedSupportsXhigh,
focusedSupportsMax,
),
cycleEffortLevel(prev ?? focusedDefaultEffort, direction, focusedSupportsXhigh, focusedSupportsMax),
);
setHasToggledEffort(true);
},
[
focusedSupportsEffort,
focusedSupportsXhigh,
focusedSupportsMax,
focusedDefaultEffort,
],
[focusedSupportsEffort, focusedSupportsXhigh, focusedSupportsMax, focusedDefaultEffort],
);
useKeybindings(

View File

@@ -11,7 +11,8 @@ export const CHATGPT_CODEX_MODEL_OPTIONS: ChatGPTCodexModelOption[] = [
{
value: 'gpt-5.5',
label: 'GPT-5.5',
description: 'Frontier model for complex coding, research, and real-world work',
description:
'Frontier model for complex coding, research, and real-world work',
},
{
value: 'gpt-5.4',
@@ -21,7 +22,8 @@ export const CHATGPT_CODEX_MODEL_OPTIONS: ChatGPTCodexModelOption[] = [
{
value: 'gpt-5.4-mini',
label: 'GPT-5.4-Mini',
description: 'Small, fast, and cost-efficient model for simpler coding tasks',
description:
'Small, fast, and cost-efficient model for simpler coding tasks',
},
{
value: 'gpt-5.3-codex',