Files
orca/src/shared/default-agent-settings.ts
T
Neil eb7f427426 Clear agent selections in workspace creation and settings (#28543)
* Replace workspace None agent option with a clear action

* Limit agent clearing to new workspace creation

* Let selected default agents toggle off in settings

* Keep default tab templates out of setup-only creation

* Remove duplicate clock property blocking CI
2026-10-13 22:57:44 -07:00

12 lines
464 B
TypeScript

import type { GlobalSettings } from './global-settings-types'
import type { TuiAgent } from './tui-agent'
type DefaultAgentSettings = Pick<GlobalSettings, 'defaultTuiAgent' | 'newWorkspaceSetupOnly'>
export function buildDefaultAgentSettingsUpdate(
next: TuiAgent | 'blank' | null
): DefaultAgentSettings {
// Clear the retired flag so older peers also see a regular agent or shell default.
return { defaultTuiAgent: next, newWorkspaceSetupOnly: false }
}