Files
archived-orca/src/shared/dsh-startup.spec.ts
T
OrcaWinandOrcaWin f9df6923f6 test: remove seven low-value cases and repair behavioral assertions (#33453)
* test: remove low-value cases and repair behavioral assertions

* test: prune repaired wall-clock finding from flaky-test baseline

---------

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-10-25 01:00:18 -07:00

22 lines
795 B
TypeScript

import { describe, expect, it } from 'vitest'
import { buildAgentStartupPlan } from './tui-agent-startup'
import { TUI_AGENT_CONFIG } from './tui-agent-config'
describe('DSH first launch', () => {
it.each(['darwin', 'linux', 'win32'] as const)(
'plans the current workspace with task input deferred on %s',
(platform) => {
const plan = buildAgentStartupPlan({
agent: 'dsh',
prompt: 'Review this folder',
cmdOverrides: {},
platform
})
expect(plan?.launchCommand).toContain('dsh-tui .')
expect(plan?.launchCommand).not.toContain('Review this folder')
expect(TUI_AGENT_CONFIG.dsh.promptInjectionMode).toBe('stdin-after-start')
expect(TUI_AGENT_CONFIG.dsh.draftPasteReadySignal).toBe('dsh-composer-prompt')
}
)
})