diff --git a/docs/cli/settings.md b/docs/cli/settings.md index 570ef91770..0e82d85d75 100644 --- a/docs/cli/settings.md +++ b/docs/cli/settings.md @@ -22,20 +22,20 @@ they appear in the UI. ### General -| UI Label | Setting | Description | Default | -| ----------------------- | ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------- | -| Vim Mode | `general.vimMode` | Enable Vim keybindings | `false` | -| Default Approval Mode | `general.defaultApprovalMode` | The default approval mode for tool execution. 'default' prompts for approval, 'auto_edit' auto-approves edit tools, and 'plan' is read-only mode. 'yolo' is not supported yet. | `"default"` | -| Enable Auto Update | `general.enableAutoUpdate` | Enable automatic updates. | `true` | -| Enable Notifications | `general.enableNotifications` | Enable run-event notifications for action-required prompts and session completion. Currently macOS only. | `false` | -| Plan Directory | `general.plan.directory` | The directory where planning artifacts are stored. If not specified, defaults to the system temporary directory. | `undefined` | -| Plan Model Routing | `general.plan.modelRouting` | Automatically switch between Pro and Flash models based on Plan Mode status. Uses Pro for the planning phase and Flash for the implementation phase. | `true` | -| Clear Context on Plan Approval | `general.plan.clearContextOnApproval` | Automatically clear conversation context after a plan is approved and implementation begins. | `undefined` | -| Retry Fetch Errors | `general.retryFetchErrors` | Retry on "exception TypeError: fetch failed sending request" errors. | `true` | -| Max Chat Model Attempts | `general.maxAttempts` | Maximum number of attempts for requests to the main chat model. Cannot exceed 10. | `10` | -| Debug Keystroke Logging | `general.debugKeystrokeLogging` | Enable debug logging of keystrokes to the console. | `false` | -| Enable Session Cleanup | `general.sessionRetention.enabled` | Enable automatic session cleanup | `true` | -| Keep chat history | `general.sessionRetention.maxAge` | Automatically delete chats older than this time period (e.g., "30d", "7d", "24h", "1w") | `"30d"` | +| UI Label | Setting | Description | Default | +| ------------------------------ | ------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------- | +| Vim Mode | `general.vimMode` | Enable Vim keybindings | `false` | +| Default Approval Mode | `general.defaultApprovalMode` | The default approval mode for tool execution. 'default' prompts for approval, 'auto_edit' auto-approves edit tools, and 'plan' is read-only mode. 'yolo' is not supported yet. | `"default"` | +| Enable Auto Update | `general.enableAutoUpdate` | Enable automatic updates. | `true` | +| Enable Notifications | `general.enableNotifications` | Enable run-event notifications for action-required prompts and session completion. Currently macOS only. | `false` | +| Plan Directory | `general.plan.directory` | The directory where planning artifacts are stored. If not specified, defaults to the system temporary directory. | `undefined` | +| Plan Model Routing | `general.plan.modelRouting` | Automatically switch between Pro and Flash models based on Plan Mode status. Uses Pro for the planning phase and Flash for the implementation phase. | `true` | +| Clear Context on Plan Approval | `general.plan.clearContextOnApproval` | Automatically clear conversation context after a plan is approved and implementation begins. | `undefined` | +| Retry Fetch Errors | `general.retryFetchErrors` | Retry on "exception TypeError: fetch failed sending request" errors. | `true` | +| Max Chat Model Attempts | `general.maxAttempts` | Maximum number of attempts for requests to the main chat model. Cannot exceed 10. | `10` | +| Debug Keystroke Logging | `general.debugKeystrokeLogging` | Enable debug logging of keystrokes to the console. | `false` | +| Enable Session Cleanup | `general.sessionRetention.enabled` | Enable automatic session cleanup | `true` | +| Keep chat history | `general.sessionRetention.maxAge` | Automatically delete chats older than this time period (e.g., "30d", "7d", "24h", "1w") | `"30d"` | ### Output diff --git a/packages/cli/src/ui/components/__snapshots__/SettingsDialog-SettingsDialog-Initial-Rendering-should-render-settings-list-with-visual-indicators.snap.svg b/packages/cli/src/ui/components/__snapshots__/SettingsDialog-SettingsDialog-Initial-Rendering-should-render-settings-list-with-visual-indicators.snap.svg index bd916e0d40..ed6a14bfcb 100644 --- a/packages/cli/src/ui/components/__snapshots__/SettingsDialog-SettingsDialog-Initial-Rendering-should-render-settings-list-with-visual-indicators.snap.svg +++ b/packages/cli/src/ui/components/__snapshots__/SettingsDialog-SettingsDialog-Initial-Rendering-should-render-settings-list-with-visual-indicators.snap.svg @@ -86,37 +86,37 @@ 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. - - - - - - - - - + true + + + Automatically switch between Pro and Flash models based on Plan Mode status. Uses Pr… + + + + + Clear Context on Plan Approval + undefined + + + Automatically clear conversation context after a plan is approved and implement… + + + + + Retry Fetch Errors + true + + + Retry on "exception TypeError: fetch failed sending request" errors. + + + + + + + + + Apply To diff --git a/packages/cli/src/ui/components/__snapshots__/SettingsDialog-SettingsDialog-Snapshot-Tests-should-render-accessibility-settings-enabled-correctly.snap.svg b/packages/cli/src/ui/components/__snapshots__/SettingsDialog-SettingsDialog-Snapshot-Tests-should-render-accessibility-settings-enabled-correctly.snap.svg index 273c715b40..79d96f5b80 100644 --- a/packages/cli/src/ui/components/__snapshots__/SettingsDialog-SettingsDialog-Snapshot-Tests-should-render-accessibility-settings-enabled-correctly.snap.svg +++ b/packages/cli/src/ui/components/__snapshots__/SettingsDialog-SettingsDialog-Snapshot-Tests-should-render-accessibility-settings-enabled-correctly.snap.svg @@ -86,37 +86,37 @@ 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. - - - - - - - - - + true + + + Automatically switch between Pro and Flash models based on Plan Mode status. Uses Pr… + + + + + Clear Context on Plan Approval + undefined + + + Automatically clear conversation context after a plan is approved and implement… + + + + + Retry Fetch Errors + true + + + Retry on "exception TypeError: fetch failed sending request" errors. + + + + + + + + + Apply To diff --git a/packages/cli/src/ui/components/__snapshots__/SettingsDialog-SettingsDialog-Snapshot-Tests-should-render-all-boolean-settings-disabled-correctly.snap.svg b/packages/cli/src/ui/components/__snapshots__/SettingsDialog-SettingsDialog-Snapshot-Tests-should-render-all-boolean-settings-disabled-correctly.snap.svg index 7eecb7be8b..e22d633c9c 100644 --- a/packages/cli/src/ui/components/__snapshots__/SettingsDialog-SettingsDialog-Snapshot-Tests-should-render-all-boolean-settings-disabled-correctly.snap.svg +++ b/packages/cli/src/ui/components/__snapshots__/SettingsDialog-SettingsDialog-Snapshot-Tests-should-render-all-boolean-settings-disabled-correctly.snap.svg @@ -86,37 +86,37 @@ 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. - - - - - - - - - + true + + + Automatically switch between Pro and Flash models based on Plan Mode status. Uses Pr… + + + + + Clear Context on Plan Approval + undefined + + + Automatically clear conversation context after a plan is approved and implement… + + + + + Retry Fetch Errors + true + + + Retry on "exception TypeError: fetch failed sending request" errors. + + + + + + + + + Apply To diff --git a/packages/cli/src/ui/components/__snapshots__/SettingsDialog-SettingsDialog-Snapshot-Tests-should-render-default-state-correctly.snap.svg b/packages/cli/src/ui/components/__snapshots__/SettingsDialog-SettingsDialog-Snapshot-Tests-should-render-default-state-correctly.snap.svg index bd916e0d40..ed6a14bfcb 100644 --- a/packages/cli/src/ui/components/__snapshots__/SettingsDialog-SettingsDialog-Snapshot-Tests-should-render-default-state-correctly.snap.svg +++ b/packages/cli/src/ui/components/__snapshots__/SettingsDialog-SettingsDialog-Snapshot-Tests-should-render-default-state-correctly.snap.svg @@ -86,37 +86,37 @@ 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. - - - - - - - - - + true + + + Automatically switch between Pro and Flash models based on Plan Mode status. Uses Pr… + + + + + Clear Context on Plan Approval + undefined + + + Automatically clear conversation context after a plan is approved and implement… + + + + + Retry Fetch Errors + true + + + Retry on "exception TypeError: fetch failed sending request" errors. + + + + + + + + + Apply To diff --git a/packages/cli/src/ui/components/__snapshots__/SettingsDialog-SettingsDialog-Snapshot-Tests-should-render-file-filtering-settings-configured-correctly.snap.svg b/packages/cli/src/ui/components/__snapshots__/SettingsDialog-SettingsDialog-Snapshot-Tests-should-render-file-filtering-settings-configured-correctly.snap.svg index bd916e0d40..ed6a14bfcb 100644 --- a/packages/cli/src/ui/components/__snapshots__/SettingsDialog-SettingsDialog-Snapshot-Tests-should-render-file-filtering-settings-configured-correctly.snap.svg +++ b/packages/cli/src/ui/components/__snapshots__/SettingsDialog-SettingsDialog-Snapshot-Tests-should-render-file-filtering-settings-configured-correctly.snap.svg @@ -86,37 +86,37 @@ 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. - - - - - - - - - + true + + + Automatically switch between Pro and Flash models based on Plan Mode status. Uses Pr… + + + + + Clear Context on Plan Approval + undefined + + + Automatically clear conversation context after a plan is approved and implement… + + + + + Retry Fetch Errors + true + + + Retry on "exception TypeError: fetch failed sending request" errors. + + + + + + + + + Apply To diff --git a/packages/cli/src/ui/components/__snapshots__/SettingsDialog-SettingsDialog-Snapshot-Tests-should-render-focused-on-scope-selector-correctly.snap.svg b/packages/cli/src/ui/components/__snapshots__/SettingsDialog-SettingsDialog-Snapshot-Tests-should-render-focused-on-scope-selector-correctly.snap.svg index 4741330567..3162e0da79 100644 --- a/packages/cli/src/ui/components/__snapshots__/SettingsDialog-SettingsDialog-Snapshot-Tests-should-render-focused-on-scope-selector-correctly.snap.svg +++ b/packages/cli/src/ui/components/__snapshots__/SettingsDialog-SettingsDialog-Snapshot-Tests-should-render-focused-on-scope-selector-correctly.snap.svg @@ -75,37 +75,37 @@ 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. - - - - - - - - - + true + + + Automatically switch between Pro and Flash models based on Plan Mode status. Uses Pr… + + + + + Clear Context on Plan Approval + undefined + + + Automatically clear conversation context after a plan is approved and implement… + + + + + Retry Fetch Errors + true + + + Retry on "exception TypeError: fetch failed sending request" errors. + + + + + + + + + > Apply To diff --git a/packages/cli/src/ui/components/__snapshots__/SettingsDialog-SettingsDialog-Snapshot-Tests-should-render-mixed-boolean-and-number-settings-correctly.snap.svg b/packages/cli/src/ui/components/__snapshots__/SettingsDialog-SettingsDialog-Snapshot-Tests-should-render-mixed-boolean-and-number-settings-correctly.snap.svg index 22d960bf79..ed785dbc56 100644 --- a/packages/cli/src/ui/components/__snapshots__/SettingsDialog-SettingsDialog-Snapshot-Tests-should-render-mixed-boolean-and-number-settings-correctly.snap.svg +++ b/packages/cli/src/ui/components/__snapshots__/SettingsDialog-SettingsDialog-Snapshot-Tests-should-render-mixed-boolean-and-number-settings-correctly.snap.svg @@ -86,37 +86,37 @@ 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. - - - - - - - - - + true + + + Automatically switch between Pro and Flash models based on Plan Mode status. Uses Pr… + + + + + Clear Context on Plan Approval + undefined + + + Automatically clear conversation context after a plan is approved and implement… + + + + + Retry Fetch Errors + true + + + Retry on "exception TypeError: fetch failed sending request" errors. + + + + + + + + + Apply To diff --git a/packages/cli/src/ui/components/__snapshots__/SettingsDialog-SettingsDialog-Snapshot-Tests-should-render-tools-and-security-settings-correctly.snap.svg b/packages/cli/src/ui/components/__snapshots__/SettingsDialog-SettingsDialog-Snapshot-Tests-should-render-tools-and-security-settings-correctly.snap.svg index bd916e0d40..ed6a14bfcb 100644 --- a/packages/cli/src/ui/components/__snapshots__/SettingsDialog-SettingsDialog-Snapshot-Tests-should-render-tools-and-security-settings-correctly.snap.svg +++ b/packages/cli/src/ui/components/__snapshots__/SettingsDialog-SettingsDialog-Snapshot-Tests-should-render-tools-and-security-settings-correctly.snap.svg @@ -86,37 +86,37 @@ 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. - - - - - - - - - + true + + + Automatically switch between Pro and Flash models based on Plan Mode status. Uses Pr… + + + + + Clear Context on Plan Approval + undefined + + + Automatically clear conversation context after a plan is approved and implement… + + + + + Retry Fetch Errors + true + + + Retry on "exception TypeError: fetch failed sending request" errors. + + + + + + + + + Apply To diff --git a/packages/cli/src/ui/components/__snapshots__/SettingsDialog-SettingsDialog-Snapshot-Tests-should-render-various-boolean-settings-enabled-correctly.snap.svg b/packages/cli/src/ui/components/__snapshots__/SettingsDialog-SettingsDialog-Snapshot-Tests-should-render-various-boolean-settings-enabled-correctly.snap.svg index 341f5c9087..21964b4f58 100644 --- a/packages/cli/src/ui/components/__snapshots__/SettingsDialog-SettingsDialog-Snapshot-Tests-should-render-various-boolean-settings-enabled-correctly.snap.svg +++ b/packages/cli/src/ui/components/__snapshots__/SettingsDialog-SettingsDialog-Snapshot-Tests-should-render-various-boolean-settings-enabled-correctly.snap.svg @@ -86,37 +86,37 @@ 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. - - - - - - - - - + true + + + Automatically switch between Pro and Flash models based on Plan Mode status. Uses Pr… + + + + + Clear Context on Plan Approval + undefined + + + Automatically clear conversation context after a plan is approved and implement… + + + + + Retry Fetch Errors + true + + + Retry on "exception TypeError: fetch failed sending request" errors. + + + + + + + + + Apply To 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 19158681b2..60e85b5343 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… │ │ │ +│ Clear Context on Plan Approval undefined │ +│ Automatically clear conversation context after a plan is approved and implement… │ +│ │ │ 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. │ -│ │ │ ▼ │ │ │ │ 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… │ │ │ +│ Clear Context on Plan Approval undefined │ +│ Automatically clear conversation context after a plan is approved and implement… │ +│ │ │ 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. │ -│ │ │ ▼ │ │ │ │ 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… │ │ │ +│ Clear Context on Plan Approval undefined │ +│ Automatically clear conversation context after a plan is approved and implement… │ +│ │ │ 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. │ -│ │ │ ▼ │ │ │ │ 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… │ │ │ +│ Clear Context on Plan Approval undefined │ +│ Automatically clear conversation context after a plan is approved and implement… │ +│ │ │ 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. │ -│ │ │ ▼ │ │ │ │ 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… │ │ │ +│ Clear Context on Plan Approval undefined │ +│ Automatically clear conversation context after a plan is approved and implement… │ +│ │ │ 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. │ -│ │ │ ▼ │ │ │ │ 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… │ │ │ +│ Clear Context on Plan Approval undefined │ +│ Automatically clear conversation context after a plan is approved and implement… │ +│ │ │ 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. │ -│ │ │ ▼ │ │ │ │ > 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… │ │ │ +│ Clear Context on Plan Approval undefined │ +│ Automatically clear conversation context after a plan is approved and implement… │ +│ │ │ 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. │ -│ │ │ ▼ │ │ │ │ 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… │ │ │ +│ Clear Context on Plan Approval undefined │ +│ Automatically clear conversation context after a plan is approved and implement… │ +│ │ │ 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. │ -│ │ │ ▼ │ │ │ │ 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… │ │ │ +│ Clear Context on Plan Approval undefined │ +│ Automatically clear conversation context after a plan is approved and implement… │ +│ │ │ 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. │ -│ │ │ ▼ │ │ │ │ Apply To │