test: assert the disabled-agent fallback keeps the tab's launchAgent

Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
brennanb2025
2026-07-08 14:14:15 -07:00
co-authored by Orca
parent 7a14c7211f
commit e4170a4f74
+7 -1
View File
@@ -16695,7 +16695,13 @@ describe('OrcaRuntimeService', () => {
expect.objectContaining({ sessionId: 'serve-dead-pty', worktreeId: TEST_WORKTREE_ID })
)
expect(spawn.mock.calls[0]![0].command).toBeUndefined()
expect(activated.tabs[0]).toMatchObject({ type: 'terminal', status: 'ready' })
// Why: the disabled-agent fallback keeps the tab's agent identity; only the
// startup command is skipped.
expect(activated.tabs[0]).toMatchObject({
type: 'terminal',
status: 'ready',
launchAgent: 'claude'
})
})
it('collapses duplicate mobile terminal entries when renderer and headless leaf ids diverge for the same pty', async () => {