diff --git a/src/main/codex-accounts/runtime-home-service.test.ts b/src/main/codex-accounts/runtime-home-service.test.ts index a4b595864..880ac16e6 100644 --- a/src/main/codex-accounts/runtime-home-service.test.ts +++ b/src/main/codex-accounts/runtime-home-service.test.ts @@ -42,6 +42,7 @@ function createSettings(overrides: Partial = {}): GlobalSettings editorAutoSave: false, editorAutoSaveDelayMs: 1000, editorMinimapEnabled: false, + markdownReviewToolsEnabled: true, terminalFontSize: 14, terminalFontFamily: 'JetBrains Mono', terminalFontWeight: 500, diff --git a/src/main/codex-accounts/service.test.ts b/src/main/codex-accounts/service.test.ts index fa13ab326..a203f85b4 100644 --- a/src/main/codex-accounts/service.test.ts +++ b/src/main/codex-accounts/service.test.ts @@ -35,6 +35,7 @@ function createSettings(overrides: Partial = {}): GlobalSettings editorAutoSave: false, editorAutoSaveDelayMs: 1000, editorMinimapEnabled: false, + markdownReviewToolsEnabled: true, terminalFontSize: 14, terminalFontFamily: 'JetBrains Mono', terminalFontWeight: 500, diff --git a/src/renderer/src/components/ShortcutKeyCombo.tsx b/src/renderer/src/components/ShortcutKeyCombo.tsx index 6b021cb16..1f231b9b7 100644 --- a/src/renderer/src/components/ShortcutKeyCombo.tsx +++ b/src/renderer/src/components/ShortcutKeyCombo.tsx @@ -23,7 +23,7 @@ export function ShortcutKeyCombo({ const isMac = navigator.userAgent.includes('Mac') return ( -
+ {keys.map((key, index) => ( @@ -34,6 +34,6 @@ export function ShortcutKeyCombo({ ) : null} ))} -
+ ) } diff --git a/src/renderer/src/components/github/github-rate-limit-display.tsx b/src/renderer/src/components/github/github-rate-limit-display.tsx index fc3986bca..534774a04 100644 --- a/src/renderer/src/components/github/github-rate-limit-display.tsx +++ b/src/renderer/src/components/github/github-rate-limit-display.tsx @@ -112,7 +112,7 @@ function GitHubRateLimitRows({ snapshot: GitHubRateLimitSnapshot }): React.JSX.Element { return ( -
+
{BUCKETS.map((b) => { const v = snapshot[b.key] const tone = toneForGitHubBucket(v.remaining, v.limit) @@ -121,7 +121,7 @@ function GitHubRateLimitRows({ {b.description}
@@ -450,7 +450,7 @@ export function AccountsPane({ settings, updateSettings }: AccountsPaneProps): R entry.description ?? '', ...(entry.keywords ?? []) ])} - className="space-y-3 px-1 py-2" + className="space-y-3 py-2" > {/* Why: Settings deep-links can target this subsection directly from the status-bar account switcher. Keeping a stable DOM anchor here @@ -644,7 +644,7 @@ export function AccountsPane({ settings, updateSettings }: AccountsPaneProps): R 'rate limit', 'status bar' ]} - className="flex items-center justify-between gap-4 px-1 py-2" + className="flex items-center justify-between gap-4 py-2" >
diff --git a/src/renderer/src/components/settings/AgentAwakeSetting.tsx b/src/renderer/src/components/settings/AgentAwakeSetting.tsx index 9a45192de..a7ac76e53 100644 --- a/src/renderer/src/components/settings/AgentAwakeSetting.tsx +++ b/src/renderer/src/components/settings/AgentAwakeSetting.tsx @@ -24,31 +24,36 @@ export function AgentAwakeSetting({ title={AGENT_AWAKE_TITLE} description={description} keywords={getAgentAwakeSearchKeywords()} - className="flex items-start justify-between gap-4 px-1 py-2" > -
- -

{description}

+
+
+ +

{description}

+
+ {/* Why: this button is read directly from the React element tree by tests + that walk props (without rendering), so the role/aria attributes + must remain on a literal
- ) diff --git a/src/renderer/src/components/settings/AgentsPane.tsx b/src/renderer/src/components/settings/AgentsPane.tsx index 01e1c4bcd..defcd632a 100644 --- a/src/renderer/src/components/settings/AgentsPane.tsx +++ b/src/renderer/src/components/settings/AgentsPane.tsx @@ -7,6 +7,7 @@ import { Button } from '../ui/button' import { Input } from '../ui/input' import { cn } from '@/lib/utils' import { AgentAwakeSetting } from './AgentAwakeSetting' +import { SettingsBadge, SettingsSubsectionHeader } from './SettingsFormControls' export { AGENTS_PANE_SEARCH_ENTRIES } from './agents-search' @@ -104,38 +105,26 @@ function AgentRow({ const [cmdOpen, setCmdOpen] = useState(Boolean(cmdOverride)) return ( -
-
- {/* Icon */} -
- +
+
+
+
- {/* Name + status */}
- {label} + {label} {isDetected ? ( - - - Detected - + Detected ) : ( - - Not installed - + Not installed )}
-
+
{cmdOverride ? ( {defaultCmd} - {cmdOverride} + {cmdOverride} ) : ( defaultCmd @@ -143,72 +132,67 @@ function AgentRow({
- {/* Actions */}
- {/* Set as default — only for detected agents */} {isDetected && ( - + )} - {/* Customize command — only for detected agents */} {isDetected && ( - + )} - {/* Homepage link */} - {/* Expand chevron for cmd override */} {isDetected && ( - + )}
- {/* Command override row */} {isDetected && cmdOpen && ( -
+
{/* Why: key by the persisted seed so settings changes reset the draft during reconciliation, not in a follow-up effect commit. */} void + children: React.ReactNode +} + +function DefaultAgentPill({ active, onClick, children }: DefaultAgentPillProps): React.JSX.Element { + return ( + + ) +} + export function AgentsPane({ settings, updateSettings }: AgentsPaneProps): React.JSX.Element { const { detectedIds: detectedList, isRefreshing, refresh } = useDetectedAgents() // Why: refresh re-spawns the user's login shell to re-capture PATH @@ -269,69 +277,40 @@ export function AgentsPane({ settings, updateSettings }: AgentsPaneProps): React return (
- {/* Default agent picker */}
-
-

Default Agent

-

- Pre-selected agent when opening a new workspace. -

-
+
- {/* Auto option */} - + {/* Why: users who prefer to open a raw shell by default need a first-class "no agent" choice here — without it, the Auto pill is the closest option but silently launches the first detected agent, which is the opposite of what they want. */} - + - {/* Detected agent pills */} {detectedAgents.map((agent) => { const isActive = defaultAgent === agent.id return ( - + ) })}
@@ -339,32 +318,32 @@ export function AgentsPane({ settings, updateSettings }: AgentsPaneProps): React - {/* Detected agents */} {detectedAgents.length > 0 && (
-
-

Installed

- - {detectedAgents.length} detected - - -
+ + Installed + {detectedAgents.length} detected + + } + action={ + + } + /> -
+
{detectedAgents.map((agent) => ( )} - {/* Undetected agents */} {undetectedAgents.length > 0 && (
-
-

Available to install

- - {undetectedAgents.length} agents - -
+ + Available to install + {undetectedAgents.length} agents + + } + /> -
+
{undetectedAgents.map((agent) => ( +
Detecting installed agents…
)} diff --git a/src/renderer/src/components/settings/AppearancePane.tsx b/src/renderer/src/components/settings/AppearancePane.tsx index 3ee7be079..b821b2189 100644 --- a/src/renderer/src/components/settings/AppearancePane.tsx +++ b/src/renderer/src/components/settings/AppearancePane.tsx @@ -1,16 +1,21 @@ import type React from 'react' import type { GlobalSettings, StatusBarItem } from '../../../../shared/types' -import { Label } from '../ui/label' import { Separator } from '../ui/separator' import { UIZoomControl } from './UIZoomControl' import { SearchableSetting } from './SearchableSetting' import { matchesSettingsSearch, type SettingsSearchEntry } from './settings-search' import { useAppStore } from '../../store' -import { useShortcutLabel } from '@/hooks/useShortcutLabel' -import { FontAutocomplete } from './SettingsFormControls' +import { useShortcutKeyCombos } from '@/hooks/useShortcutLabel' +import { ShortcutKeyCombo } from '../ShortcutKeyCombo' +import { + FontAutocomplete, + SettingsRow, + SettingsSegmentedControl, + SettingsSubsectionHeader, + SettingsSwitchRow +} from './SettingsFormControls' import { DEFAULT_APP_FONT_FAMILY } from '../../../../shared/constants' import { useAvailableStatusBarToggles } from '../status-bar/use-available-status-bar-toggles' -import { SettingsToggleSwitchButton as ToggleSwitchButton } from './SettingsToggleSwitchButton' type AppearancePaneProps = { settings: GlobalSettings @@ -152,6 +157,25 @@ export const APPEARANCE_PANE_SEARCH_ENTRIES: SettingsSearchEntry[] = [ ...SIDEBAR_ENTRIES ] +function ShortcutHintList({ combos }: { combos: string[][] }): React.JSX.Element { + if (combos.length === 0) { + return Unassigned + } + + return ( + + {combos.map((keys) => ( + + ))} + + ) +} + export function AppearancePane({ settings, updateSettings, @@ -159,255 +183,226 @@ export function AppearancePane({ fontSuggestions }: AppearancePaneProps): React.JSX.Element { const searchQuery = useAppStore((state) => state.settingsSearchQuery) - const zoomInLabel = useShortcutLabel('zoom.in') - const zoomOutLabel = useShortcutLabel('zoom.out') + const zoomInKeyCombos = useShortcutKeyCombos('zoom.in') + const zoomOutKeyCombos = useShortcutKeyCombos('zoom.out') const statusBarItems = useAppStore((state) => state.statusBarItems) const toggleStatusBarItem = useAppStore((state) => state.toggleStatusBarItem) const visibleStatusBarToggles = useAvailableStatusBarToggles(STATUS_BAR_TOGGLES) const visibleSections = [ - matchesSettingsSearch(searchQuery, THEME_ENTRIES) ? ( -
-
-

Theme

-

Choose how Orca looks in the app window.

-
- - -
- {(['system', 'dark', 'light'] as const).map((option) => ( - - ))} -
-
-
- ) : null, - matchesSettingsSearch(searchQuery, ZOOM_ENTRIES) ? ( -
-
-

UI Zoom

-

- Scale the entire application interface. Use{' '} - {zoomInLabel} /{' '} - {zoomOutLabel} when not in - a terminal pane. -

-
- - - - -
- ) : null, + matchesSettingsSearch(searchQuery, THEME_ENTRIES) || + matchesSettingsSearch(searchQuery, ZOOM_ENTRIES) || matchesSettingsSearch(searchQuery, TYPOGRAPHY_ENTRIES) ? ( -
-
-

Typography

-

- Choose the font used by the Orca interface. -

-
+
+ {matchesSettingsSearch(searchQuery, THEME_ENTRIES) ? ( + + { + updateSettings({ theme: option }) + applyTheme(option) + }} + options={[ + { value: 'system', label: 'System' }, + { value: 'dark', label: 'Dark' }, + { value: 'light', label: 'Light' } + ]} + /> + } + /> + + ) : null} - - - - updateSettings({ appFontFamily: value.trim() || DEFAULT_APP_FONT_FAMILY }) - } - /> - + {matchesSettingsSearch(searchQuery, ZOOM_ENTRIES) ? ( + + + Scale the entire application interface. Use{' '} + /{' '} + when not in a terminal pane. + + } + control={} + /> + + ) : null} + + {matchesSettingsSearch(searchQuery, TYPOGRAPHY_ENTRIES) ? ( + + + updateSettings({ appFontFamily: value.trim() || DEFAULT_APP_FONT_FAMILY }) + } + /> + } + /> + + ) : null}
) : null, matchesSettingsSearch(searchQuery, LAYOUT_ENTRIES) ? ( -
-
-

Layout

-

- Default layout when creating new worktrees. -

+
+ + +
+ + + updateSettings({ rightSidebarOpenByDefault: !settings.rightSidebarOpenByDefault }) + } + /> + + + + + updateSettings({ showGitIgnoredFiles: !(settings.showGitIgnoredFiles ?? true) }) + } + /> +
- - -
- -

- Automatically expand the file explorer panel when creating a new worktree. -

-
- - updateSettings({ rightSidebarOpenByDefault: !settings.rightSidebarOpenByDefault }) - } - /> -
- - -
- -

- Turn off to hide files matched by .gitignore from the file explorer. -

-
- - updateSettings({ showGitIgnoredFiles: !(settings.showGitIgnoredFiles ?? true) }) - } - /> -
) : null, matchesSettingsSearch(searchQuery, TITLEBAR_ENTRIES) ? ( -
-
-

Titlebar

-

- Control what appears in the application titlebar. -

-
+
+ - -
- -

Show Orca in the titlebar.

-
- updateSettings({ showTitlebarAppName: !settings.showTitlebarAppName })} - /> -
+
+ + + updateSettings({ showTitlebarAppName: !settings.showTitlebarAppName }) + } + /> + +
) : null, matchesSettingsSearch(searchQuery, STATUS_BAR_ENTRIES) ? ( -
-
-

Status Bar

-

- Choose which indicators appear at the bottom of the window. You can also right-click the - status bar for the same toggles. -

-
+
+ - {visibleStatusBarToggles.map((toggle) => { - const enabled = statusBarItems.includes(toggle.id) - return ( - -
- -

{toggle.toggleDescription}

-
- toggleStatusBarItem(toggle.id)} - ariaLabel={toggle.title} - /> -
- ) - })} +
+ {visibleStatusBarToggles.map((toggle) => { + const enabled = statusBarItems.includes(toggle.id) + return ( + + toggleStatusBarItem(toggle.id)} + ariaLabel={toggle.title} + /> + + ) + })} +
) : null, matchesSettingsSearch(searchQuery, SIDEBAR_ENTRIES) ? ( -
-
-

Sidebar

+
+ + +
+ + updateSettings({ showTasksButton: !settings.showTasksButton })} + /> + + + + + updateSettings({ showMobileButton: !(settings.showMobileButton !== false) }) + } + /> +
- - -
- -

- Show the Tasks button at the top of the left sidebar. -

-
- updateSettings({ showTasksButton: !settings.showTasksButton })} - /> -
- - -
- -

- Show the Orca Mobile shortcut in the sidebar. It remains available from Toolbox. -

-
- - updateSettings({ showMobileButton: !(settings.showMobileButton !== false) }) - } - /> -
) : null ].filter(Boolean) return ( -
+
{visibleSections.map((section, index) => ( -
+
{index > 0 ? : null} {section}
diff --git a/src/renderer/src/components/settings/BrowserPane.tsx b/src/renderer/src/components/settings/BrowserPane.tsx index a2257f6b3..e863655ba 100644 --- a/src/renderer/src/components/settings/BrowserPane.tsx +++ b/src/renderer/src/components/settings/BrowserPane.tsx @@ -104,7 +104,7 @@ export function BrowserPane({ title="Default Home Page" description="URL opened when creating a new browser tab. Leave empty to open a blank tab." keywords={['browser', 'home', 'homepage', 'default', 'url', 'new tab', 'blank']} - className="flex items-start justify-between gap-4 px-1 py-2" + className="flex items-start justify-between gap-4 py-2" >
@@ -162,7 +162,7 @@ export function BrowserPane({ 'token', 'omnibox' ]} - className="flex items-start justify-between gap-4 px-1 py-2" + className="flex items-start justify-between gap-4 py-2" >
@@ -208,7 +208,7 @@ export function BrowserPane({ 'file', 'editor' ]} - className="flex items-center justify-between gap-4 px-1 py-2" + className="flex items-center justify-between gap-4 py-2" >
@@ -250,7 +250,7 @@ export function BrowserPane({ 'arc', 'profile' ]} - className="space-y-3 px-1 py-2" + className="space-y-3 py-2" >
diff --git a/src/renderer/src/components/settings/BrowserUsePane.tsx b/src/renderer/src/components/settings/BrowserUsePane.tsx index 2cdb1a17e..5ca6dc683 100644 --- a/src/renderer/src/components/settings/BrowserUsePane.tsx +++ b/src/renderer/src/components/settings/BrowserUsePane.tsx @@ -180,7 +180,7 @@ export function BrowserUseSetup({ if (!browserUseEnabled) { return ( -
+

Agent Browser Use

diff --git a/src/renderer/src/components/settings/CommitMessageAiPane.tsx b/src/renderer/src/components/settings/CommitMessageAiPane.tsx index 45ee2fff6..900f4fe7b 100644 --- a/src/renderer/src/components/settings/CommitMessageAiPane.tsx +++ b/src/renderer/src/components/settings/CommitMessageAiPane.tsx @@ -585,7 +585,7 @@ export function CommitMessageAiPane({ title="Enable AI commit messages" description="Adds a Generate button to the Source Control panel." keywords={['ai', 'commit', 'message', 'generate', 'agent', 'enabled']} - className="flex items-center justify-between gap-4 px-1 py-2" + className="flex items-center justify-between gap-4 py-2" >

@@ -627,7 +627,7 @@ export function CommitMessageAiPane({ title="Agent" description="Which agent to invoke when generating a commit message." keywords={['agent', 'claude', 'codex', 'opencode', 'gemini', 'cursor']} - className="flex items-center justify-between gap-4 px-1 py-2" + className="flex items-center justify-between gap-4 py-2" >
@@ -707,7 +707,7 @@ export function CommitMessageAiPane({ title="Custom command" description="Command line Orca runs to generate the commit message." keywords={['custom', 'command', 'cli', 'binary', 'prompt', 'placeholder']} - className="space-y-2 px-1 py-2" + className="space-y-2 py-2" >
@@ -755,7 +755,7 @@ export function CommitMessageAiPane({ title="Model" description="Which model the selected agent uses to generate the message." keywords={['model', 'haiku', 'sonnet', 'opus', 'gpt']} - className="flex items-center justify-between gap-4 px-1 py-2" + className="flex items-center justify-between gap-4 py-2" >
@@ -816,7 +816,7 @@ export function CommitMessageAiPane({ title="Thinking effort" description="Reasoning effort level for the selected model. Higher levels are slower." keywords={['thinking', 'effort', 'reasoning']} - className="flex items-center justify-between gap-4 px-1 py-2" + className="flex items-center justify-between gap-4 py-2" >
@@ -857,7 +857,7 @@ export function CommitMessageAiPane({ description="Optional instructions appended to the base prompt (e.g. Conventional Commits style)." keywords={['prompt', 'conventional commits', 'gitmoji', 'style']} forceVisible={isCustomPromptDirty} - className="space-y-2 px-1 py-2" + className="space-y-2 py-2" >
diff --git a/src/renderer/src/components/settings/ExperimentalPane.tsx b/src/renderer/src/components/settings/ExperimentalPane.tsx index 9422ca389..e80d8424e 100644 --- a/src/renderer/src/components/settings/ExperimentalPane.tsx +++ b/src/renderer/src/components/settings/ExperimentalPane.tsx @@ -35,7 +35,7 @@ export function ExperimentalPane({ title="Pet" description="Floating animated pet in the bottom-right corner." keywords={EXPERIMENTAL_SEARCH_ENTRY.pet.keywords} - className="space-y-3 px-1 py-2" + className="space-y-3 py-2" id="experimental-pet" >
@@ -74,7 +74,7 @@ export function ExperimentalPane({ title="Agents View" description="Threaded left-sidebar feed for agent completions and blocking states." keywords={EXPERIMENTAL_SEARCH_ENTRY.activity.keywords} - className="space-y-3 px-1 py-2" + className="space-y-3 py-2" >
@@ -113,7 +113,7 @@ export function ExperimentalPane({ title="Symlinks on worktrees" description="Automatically symlink configured files or folders into newly created worktrees." keywords={EXPERIMENTAL_SEARCH_ENTRY.symlinks.keywords} - className="space-y-3 px-1 py-2" + className="space-y-3 py-2" >
diff --git a/src/renderer/src/components/settings/FloatingWorkspacePane.tsx b/src/renderer/src/components/settings/FloatingWorkspacePane.tsx index 8985c30a8..e08b60633 100644 --- a/src/renderer/src/components/settings/FloatingWorkspacePane.tsx +++ b/src/renderer/src/components/settings/FloatingWorkspacePane.tsx @@ -3,9 +3,9 @@ import { FolderOpen } from 'lucide-react' import type { FloatingTerminalTriggerLocation, GlobalSettings } from '../../../../shared/types' import { Button } from '../ui/button' import { Input } from '../ui/input' -import { Label } from '../ui/label' import { ToggleGroup, ToggleGroupItem } from '../ui/toggle-group' import { SearchableSetting } from './SearchableSetting' +import { SettingsRow, SettingsSwitchRow } from './SettingsFormControls' import { FLOATING_WORKSPACE_SEARCH_ENTRIES } from './floating-workspace-search' import { matchesSettingsSearch } from './settings-search' import { useAppStore } from '../../store' @@ -90,84 +90,65 @@ export function FloatingWorkspacePane({ 'quick panel', 'launch directory' ]} - className="space-y-3" + className="divide-y divide-border/40" > -
-
- -

- Shows the floating workspace button and panel. -

-
- -
+ + updateSettings({ + floatingTerminalEnabled: !settings.floatingTerminalEnabled + }) + } + /> -
- -
- - +
+ } + /> + + { + if (!value) { + return + } + updateSettings({ + floatingTerminalTriggerLocation: value as FloatingTerminalTriggerLocation + }) + }} > - - -
-

- New floating terminal tabs start here. Markdown notes are saved in Orca's app-owned - floating workspace. -

-
- -
- - { - if (!value) { - return - } - updateSettings({ - floatingTerminalTriggerLocation: value as FloatingTerminalTriggerLocation - }) - }} - className="justify-start" - > - Floating Button - Status Bar - -

- The keyboard shortcut works regardless of where the toggle is shown. -

-
+ Floating Button + Status Bar + + } + />
) diff --git a/src/renderer/src/components/settings/GeneralPane.tsx b/src/renderer/src/components/settings/GeneralPane.tsx index 522cdc821..822016e2f 100644 --- a/src/renderer/src/components/settings/GeneralPane.tsx +++ b/src/renderer/src/components/settings/GeneralPane.tsx @@ -30,6 +30,12 @@ import { import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '../ui/select' import { SearchableSetting } from './SearchableSetting' import { matchesSettingsSearch } from './settings-search' +import { + SettingsSegmentedControl, + SettingsSubsectionHeader, + SettingsSwitch, + SettingsSwitchRow +} from './SettingsFormControls' function createOpenInApplication(): OpenInApplication { return { @@ -216,12 +222,10 @@ export function GeneralPane({ settings, updateSettings }: GeneralPaneProps): Rea const visibleSections = [ matchesSettingsSearch(searchQuery, GENERAL_WORKSPACE_SEARCH_ENTRIES) ? (
-
-

Workspace

-

- Configure where new workspaces are created. -

-
+ -
- -

- Create workspaces inside a repo-named subfolder. -

-
- + updateSettings({ nestWorkspaces: !settings.nestWorkspaces })} + />
{/* Why: the "Don't ask again" toast in the delete-worktree dialog @@ -291,33 +276,17 @@ export function GeneralPane({ settings, updateSettings }: GeneralPaneProps): Rea title="Ask Before Deleting Workspaces" description="Show a confirmation dialog before deleting a workspace." keywords={['delete', 'worktree', 'confirm', 'dialog', 'skip', 'prompt']} - className="flex items-center justify-between gap-4 px-1 py-2" > -
- -

- Show a confirmation before deleting a workspace from the context menu. Failed - deletes still surface a Force Delete fallback. -

-
- + />
@@ -326,32 +295,17 @@ export function GeneralPane({ settings, updateSettings }: GeneralPaneProps): Rea title="Ask Before Deleting Automations" description="Show a confirmation dialog before deleting an automation and its run history." keywords={['delete', 'automation', 'confirm', 'dialog', 'skip', 'prompt']} - className="flex items-center justify-between gap-4 px-1 py-2" > -
- -

- Show a confirmation before deleting automations and their run history. -

-
- + />
@@ -460,50 +414,31 @@ export function GeneralPane({ settings, updateSettings }: GeneralPaneProps): Rea ) : null, matchesSettingsSearch(searchQuery, GENERAL_EDITOR_SEARCH_ENTRIES) ? (
-
-

Editor

-

Configure how Orca persists file edits.

-
+ -
- -

- Save editor and editable diff changes automatically after a short pause. -

-
- + updateSettings({ editorAutoSave: !settings.editorAutoSave })} + />
-
+

How long Orca waits after your last edit before saving automatically. First launch @@ -534,96 +469,78 @@ export function GeneralPane({ settings, updateSettings }: GeneralPaneProps): Rea title="Default Diff View" description="Preferred presentation format for showing git diffs by default." keywords={['diff', 'view', 'inline', 'side-by-side', 'split']} - className="flex flex-col items-start gap-3 px-1 py-2 sm:flex-row sm:items-center sm:justify-between" + className="flex items-center justify-between gap-4 py-2" > -

+

Preferred presentation format for showing git diffs by default.

-
- {(['inline', 'side-by-side'] as const).map((option) => ( - - ))} -
+ updateSettings({ diffDefaultView: option })} + options={[ + { value: 'inline', label: 'Inline' }, + { value: 'side-by-side', label: 'Side-by-side' } + ]} + /> -
+

Show or hide the file tree when opening combined diff views.

-
- {[ - { label: 'Shown', value: true }, - { label: 'Hidden', value: false } - ].map((option) => ( - - ))} -
+ + updateSettings({ combinedDiffFileTreeVisibleByDefault: option === 'shown' }) + } + options={[ + { value: 'shown', label: 'Shown' }, + { value: 'hidden', label: 'Hidden' } + ]} + /> -
- -

- Show the minimap overview when editing a file. -

-
- + /> +
+ + + + updateSettings({ markdownReviewToolsEnabled: !settings.markdownReviewToolsEnabled }) + } + />
) : null, @@ -635,62 +552,41 @@ export function GeneralPane({ settings, updateSettings }: GeneralPaneProps): Rea ) : null, matchesSettingsSearch(searchQuery, GENERAL_CACHE_TIMER_SEARCH_ENTRIES) ? (
-
-

Prompt Cache Timer

-

- Claude caches your conversation to reduce costs. When idle too long the cache expires - and the next message resends full context at higher cost. This shows a countdown so you - know when to resume. -

-
+ [ entry.title, entry.description ?? '', ...(entry.keywords ?? []) ])} - className="flex items-center justify-between gap-4 px-1 py-2" + className="flex items-center justify-between gap-4 py-2" > -
+
- +

Show a countdown in the sidebar after a Claude agent becomes idle.

- + /> {settings.promptCacheTimerEnabled && ( @@ -698,9 +594,9 @@ export function GeneralPane({ settings, updateSettings }: GeneralPaneProps): Rea title="Timer Duration" description="Match this to your provider's cache TTL." keywords={['cache', 'timer', 'duration', 'ttl']} - className="flex items-center justify-between gap-4 px-1 py-2 pl-7" + className="flex items-center justify-between gap-4 py-2 pl-7" > -
+

Match this to your provider's cache TTL. The default is 5 minutes. @@ -724,10 +620,10 @@ export function GeneralPane({ settings, updateSettings }: GeneralPaneProps): Rea ) : null, matchesSettingsSearch(searchQuery, GENERAL_UPDATE_SEARCH_ENTRIES) ? (

-
-

Updates

-

Current version: {appVersion ?? '…'}

-
+ +
{visibleSections.map((section, index) => ( -
+
{index > 0 ? : null} {section}
@@ -889,9 +785,7 @@ function SupportSection({
{hasPrecedingSections ? : null}
-
-

Support Orca

-
+ {state === 'loading' ? : null} {state !== 'loading' && state !== 'hidden' ? ( @@ -905,7 +799,7 @@ function SupportSection({ function SupportRowSkeleton(): React.JSX.Element { return ( -