From e4170a4f74b2bd42fbeaa280b1f3f7196db968c3 Mon Sep 17 00:00:00 2001 From: brennanb2025 Date: Wed, 8 Jul 2026 14:14:15 -0700 Subject: [PATCH] test: assert the disabled-agent fallback keeps the tab's launchAgent Co-authored-by: Orca --- src/main/runtime/orca-runtime.test.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/runtime/orca-runtime.test.ts b/src/main/runtime/orca-runtime.test.ts index 8b7ef89db2a..364030d779a 100644 --- a/src/main/runtime/orca-runtime.test.ts +++ b/src/main/runtime/orca-runtime.test.ts @@ -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 () => {