diff --git a/src/shared/tui-agent-startup.test.ts b/src/shared/tui-agent-startup.test.ts index 1943567e027..4cd1081d691 100644 --- a/src/shared/tui-agent-startup.test.ts +++ b/src/shared/tui-agent-startup.test.ts @@ -667,8 +667,9 @@ describe('tui agent startup plans', () => { expect(plan?.env).toEqual({ ORCA_OMP_PREFILL: 'fix the omp regression' }) expect(plan?.expectedProcess).toBe('omp') expect(plan?.launchCommand).toContain( - `omp --config "$ORCA_OMP_FRESH_CONFIG"; command test -n "$fish_pid" && set --erase -g ORCA_OMP_PREFILL; command test -z "$fish_pid" && unset ORCA_OMP_PREFILL; true` + `omp --config "$ORCA_OMP_FRESH_CONFIG"; __orca_launch_status=$?;` ) + expect(plan?.launchCommand).toContain('exit $__orca_launch_status') }) it('returns null for oversized Windows flag drafts so callers paste after ready', () => {