Skip to content

Commit b52c10d

Browse files
committed
fix: 修复CI格式检查失败
1 parent c7cb3d8 commit b52c10d

4 files changed

Lines changed: 9 additions & 20 deletions

File tree

src/commands/logout/logout.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,7 @@ function clearChatGPTSettingsAuthMode(): void {
5656
Boolean(env.OPENAI_API_KEY ?? process.env.OPENAI_API_KEY) &&
5757
Boolean(env.OPENAI_BASE_URL ?? process.env.OPENAI_BASE_URL);
5858
const settingsUpdate: Parameters<typeof updateSettingsForSource>[1] = {
59-
...(userSettings.modelType === 'openai' && !hasOpenAICompatibleConfig
60-
? { modelType: undefined }
61-
: {}),
59+
...(userSettings.modelType === 'openai' && !hasOpenAICompatibleConfig ? { modelType: undefined } : {}),
6260
env: {
6361
OPENAI_AUTH_MODE: undefined,
6462
} as unknown as Record<string, string>,
@@ -92,7 +90,7 @@ export async function clearAuthRelatedCaches(): Promise<void> {
9290
export async function call(): Promise<React.ReactNode> {
9391
await performLogout({ clearOnboarding: true });
9492

95-
const message = <Text>Successfully logged out.</Text>
93+
const message = <Text>Successfully logged out.</Text>;
9694

9795
setTimeout(() => {
9896
gracefulShutdownSync(0, 'logout');

src/components/ConsoleOAuthFlow.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,8 +458,7 @@ function OAuthStatusMessage({
458458
{
459459
label: (
460460
<Text>
461-
ChatGPT account with subscription ·{' '}
462-
<Text dimColor>Plus, Pro, Business, Edu, or Enterprise</Text>
461+
ChatGPT account with subscription · <Text dimColor>Plus, Pro, Business, Edu, or Enterprise</Text>
463462
{'\n'}
464463
</Text>
465464
),

src/components/ModelPicker.tsx

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -176,21 +176,11 @@ export function ModelPicker({
176176
(direction: 'left' | 'right') => {
177177
if (!focusedSupportsEffort) return;
178178
setEffort(prev =>
179-
cycleEffortLevel(
180-
prev ?? focusedDefaultEffort,
181-
direction,
182-
focusedSupportsXhigh,
183-
focusedSupportsMax,
184-
),
179+
cycleEffortLevel(prev ?? focusedDefaultEffort, direction, focusedSupportsXhigh, focusedSupportsMax),
185180
);
186181
setHasToggledEffort(true);
187182
},
188-
[
189-
focusedSupportsEffort,
190-
focusedSupportsXhigh,
191-
focusedSupportsMax,
192-
focusedDefaultEffort,
193-
],
183+
[focusedSupportsEffort, focusedSupportsXhigh, focusedSupportsMax, focusedDefaultEffort],
194184
);
195185

196186
useKeybindings(

src/utils/model/chatgptModels.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ export const CHATGPT_CODEX_MODEL_OPTIONS: ChatGPTCodexModelOption[] = [
1111
{
1212
value: 'gpt-5.5',
1313
label: 'GPT-5.5',
14-
description: 'Frontier model for complex coding, research, and real-world work',
14+
description:
15+
'Frontier model for complex coding, research, and real-world work',
1516
},
1617
{
1718
value: 'gpt-5.4',
@@ -21,7 +22,8 @@ export const CHATGPT_CODEX_MODEL_OPTIONS: ChatGPTCodexModelOption[] = [
2122
{
2223
value: 'gpt-5.4-mini',
2324
label: 'GPT-5.4-Mini',
24-
description: 'Small, fast, and cost-efficient model for simpler coding tasks',
25+
description:
26+
'Small, fast, and cost-efficient model for simpler coding tasks',
2527
},
2628
{
2729
value: 'gpt-5.3-codex',

0 commit comments

Comments
 (0)