test: remove redundant cases and strengthen state-transition assertions (#33309)

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
This commit is contained in:
OrcaWin
2026-10-24 17:05:58 -07:00
committed by GitHub
co-authored by OrcaWin
parent 44f97fa958
commit ca3b0fdb02
18 changed files with 41 additions and 128 deletions
@@ -24,12 +24,13 @@ describe('resolveAgentStartupPlanInputs with extra agent args', () => {
extraAgentArgs: '--model opus --add-dir "my docs"'
})
const plan = buildAgentStartupPlan({ ...inputs, prompt: 'go' })
expect(plan?.launchCommand).toContain("'--add-dir' 'my docs'")
expect(plan?.launchCommand).toContain('opus')
expect(plan?.launchCommand).not.toContain('sonnet')
expect(plan?.launchCommand).toContain('--dangerously-skip-permissions')
})
it('builds the same command the desktop path builds', () => {
it('matches explicitly composed launch defaults and extras', () => {
const headless = resolveAgentStartupPlanInputs({
agent: 'claude',
settings: SETTINGS,