test: cover preserved OMP launch status

This commit is contained in:
Neil
2026-09-19 01:37:25 -07:00
parent bce3b38c44
commit 0dd9e7e799
+2 -1
View File
@@ -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', () => {