Files
orca/src/shared/default-agent-settings.test.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

15 lines
432 B
TypeScript

import { describe, expect, it } from 'vitest'
import { buildDefaultAgentSettingsUpdate } from './default-agent-settings'
describe('default agent settings', () => {
it.each(['blank', 'claude', null] as const)(
'clears the retired setup-only flag for %s',
(agent) => {
expect(buildDefaultAgentSettingsUpdate(agent)).toEqual({
defaultTuiAgent: agent,
newWorkspaceSetupOnly: false
})
}
)
})