From b57b6c08a600ecb36c591fb86d319e3af291ced3 Mon Sep 17 00:00:00 2001 From: Aishanee Shah Date: Tue, 10 Mar 2026 18:28:57 +0000 Subject: [PATCH] test(cli): update snapshots and mockConfig for retryFetchErrors --- packages/cli/src/test-utils/mockConfig.ts | 2 +- .../SettingsDialog.test.tsx.snap | 54 +++++++++---------- 2 files changed, 28 insertions(+), 28 deletions(-) diff --git a/packages/cli/src/test-utils/mockConfig.ts b/packages/cli/src/test-utils/mockConfig.ts index c8ab45a35d..86479dda89 100644 --- a/packages/cli/src/test-utils/mockConfig.ts +++ b/packages/cli/src/test-utils/mockConfig.ts @@ -125,7 +125,7 @@ export const createMockConfig = (overrides: Partial = {}): Config => getEnableInteractiveShell: vi.fn().mockReturnValue(false), getSkipNextSpeakerCheck: vi.fn().mockReturnValue(false), getContinueOnFailedApiCall: vi.fn().mockReturnValue(false), - getRetryFetchErrors: vi.fn().mockReturnValue(false), + getRetryFetchErrors: vi.fn().mockReturnValue(true), getEnableShellOutputEfficiency: vi.fn().mockReturnValue(true), getShellToolInactivityTimeout: vi.fn().mockReturnValue(300000), getShellExecutionConfig: vi.fn().mockReturnValue({}), diff --git a/packages/cli/src/ui/components/__snapshots__/SettingsDialog.test.tsx.snap b/packages/cli/src/ui/components/__snapshots__/SettingsDialog.test.tsx.snap index be2dd8d9a2..19158681b2 100644 --- a/packages/cli/src/ui/components/__snapshots__/SettingsDialog.test.tsx.snap +++ b/packages/cli/src/ui/components/__snapshots__/SettingsDialog.test.tsx.snap @@ -28,12 +28,12 @@ exports[`SettingsDialog > Initial Rendering > should render settings list with v │ Plan Model Routing true │ │ Automatically switch between Pro and Flash models based on Plan Mode status. Uses Pr… │ │ │ +│ Retry Fetch Errors true │ +│ Retry on "exception TypeError: fetch failed sending request" errors. │ +│ │ │ Max Chat Model Attempts 10 │ │ Maximum number of attempts for requests to the main chat model. Cannot exceed 10. │ │ │ -│ Debug Keystroke Logging false │ -│ Enable debug logging of keystrokes to the console. │ -│ │ │ ▼ │ │ │ │ Apply To │ @@ -74,12 +74,12 @@ exports[`SettingsDialog > Snapshot Tests > should render 'accessibility settings │ Plan Model Routing true │ │ Automatically switch between Pro and Flash models based on Plan Mode status. Uses Pr… │ │ │ +│ Retry Fetch Errors true │ +│ Retry on "exception TypeError: fetch failed sending request" errors. │ +│ │ │ Max Chat Model Attempts 10 │ │ Maximum number of attempts for requests to the main chat model. Cannot exceed 10. │ │ │ -│ Debug Keystroke Logging false │ -│ Enable debug logging of keystrokes to the console. │ -│ │ │ ▼ │ │ │ │ Apply To │ @@ -120,12 +120,12 @@ exports[`SettingsDialog > Snapshot Tests > should render 'all boolean settings d │ Plan Model Routing true │ │ Automatically switch between Pro and Flash models based on Plan Mode status. Uses Pr… │ │ │ +│ Retry Fetch Errors true │ +│ Retry on "exception TypeError: fetch failed sending request" errors. │ +│ │ │ Max Chat Model Attempts 10 │ │ Maximum number of attempts for requests to the main chat model. Cannot exceed 10. │ │ │ -│ Debug Keystroke Logging false* │ -│ Enable debug logging of keystrokes to the console. │ -│ │ │ ▼ │ │ │ │ Apply To │ @@ -166,12 +166,12 @@ exports[`SettingsDialog > Snapshot Tests > should render 'default state' correct │ Plan Model Routing true │ │ Automatically switch between Pro and Flash models based on Plan Mode status. Uses Pr… │ │ │ +│ Retry Fetch Errors true │ +│ Retry on "exception TypeError: fetch failed sending request" errors. │ +│ │ │ Max Chat Model Attempts 10 │ │ Maximum number of attempts for requests to the main chat model. Cannot exceed 10. │ │ │ -│ Debug Keystroke Logging false │ -│ Enable debug logging of keystrokes to the console. │ -│ │ │ ▼ │ │ │ │ Apply To │ @@ -212,12 +212,12 @@ exports[`SettingsDialog > Snapshot Tests > should render 'file filtering setting │ Plan Model Routing true │ │ Automatically switch between Pro and Flash models based on Plan Mode status. Uses Pr… │ │ │ +│ Retry Fetch Errors true │ +│ Retry on "exception TypeError: fetch failed sending request" errors. │ +│ │ │ Max Chat Model Attempts 10 │ │ Maximum number of attempts for requests to the main chat model. Cannot exceed 10. │ │ │ -│ Debug Keystroke Logging false │ -│ Enable debug logging of keystrokes to the console. │ -│ │ │ ▼ │ │ │ │ Apply To │ @@ -258,12 +258,12 @@ exports[`SettingsDialog > Snapshot Tests > should render 'focused on scope selec │ Plan Model Routing true │ │ Automatically switch between Pro and Flash models based on Plan Mode status. Uses Pr… │ │ │ +│ Retry Fetch Errors true │ +│ Retry on "exception TypeError: fetch failed sending request" errors. │ +│ │ │ Max Chat Model Attempts 10 │ │ Maximum number of attempts for requests to the main chat model. Cannot exceed 10. │ │ │ -│ Debug Keystroke Logging false │ -│ Enable debug logging of keystrokes to the console. │ -│ │ │ ▼ │ │ │ │ > Apply To │ @@ -304,12 +304,12 @@ exports[`SettingsDialog > Snapshot Tests > should render 'mixed boolean and numb │ Plan Model Routing true │ │ Automatically switch between Pro and Flash models based on Plan Mode status. Uses Pr… │ │ │ +│ Retry Fetch Errors true │ +│ Retry on "exception TypeError: fetch failed sending request" errors. │ +│ │ │ Max Chat Model Attempts 10 │ │ Maximum number of attempts for requests to the main chat model. Cannot exceed 10. │ │ │ -│ Debug Keystroke Logging false │ -│ Enable debug logging of keystrokes to the console. │ -│ │ │ ▼ │ │ │ │ Apply To │ @@ -350,12 +350,12 @@ exports[`SettingsDialog > Snapshot Tests > should render 'tools and security set │ Plan Model Routing true │ │ Automatically switch between Pro and Flash models based on Plan Mode status. Uses Pr… │ │ │ +│ Retry Fetch Errors true │ +│ Retry on "exception TypeError: fetch failed sending request" errors. │ +│ │ │ Max Chat Model Attempts 10 │ │ Maximum number of attempts for requests to the main chat model. Cannot exceed 10. │ │ │ -│ Debug Keystroke Logging false │ -│ Enable debug logging of keystrokes to the console. │ -│ │ │ ▼ │ │ │ │ Apply To │ @@ -396,12 +396,12 @@ exports[`SettingsDialog > Snapshot Tests > should render 'various boolean settin │ Plan Model Routing true │ │ Automatically switch between Pro and Flash models based on Plan Mode status. Uses Pr… │ │ │ +│ Retry Fetch Errors true │ +│ Retry on "exception TypeError: fetch failed sending request" errors. │ +│ │ │ Max Chat Model Attempts 10 │ │ Maximum number of attempts for requests to the main chat model. Cannot exceed 10. │ │ │ -│ Debug Keystroke Logging true* │ -│ Enable debug logging of keystrokes to the console. │ -│ │ │ ▼ │ │ │ │ Apply To │