mirror of
https://github.com/stablyai/orca.git
synced 2026-10-31 09:07:40 +00:00
* 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
12 lines
464 B
TypeScript
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 }
|
|
}
|