test(subagent): use platform Codex argv

This commit is contained in:
pku-xht
2026-08-18 18:06:06 +08:00
parent a881208f4a
commit a3fc0b5ecd
@@ -1957,7 +1957,7 @@ describe('run lifecycle and quiescence', () => {
stopReason: 'error',
})
expect(spawn).toHaveBeenCalledWith(expect.objectContaining({
argv: ['codex', 'app-server', '--stdio'],
argv: codexAppServerArgv(),
env: { OPENAI_API_KEY: 'fake' },
graceMs: 25,
cwd: process.cwd(),