Browse Source

test(subagent): use platform Codex argv

pku-xht 3 weeks ago
parent
commit
a3fc0b5ecd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/subagent/subagent-codex/tests/subagent-codex.spec.ts

+ 1 - 1
packages/subagent/subagent-codex/tests/subagent-codex.spec.ts

@@ -1957,7 +1957,7 @@ describe('run lifecycle and quiescence', () => {
       stopReason: 'error',
       stopReason: 'error',
     })
     })
     expect(spawn).toHaveBeenCalledWith(expect.objectContaining({
     expect(spawn).toHaveBeenCalledWith(expect.objectContaining({
-      argv: ['codex', 'app-server', '--stdio'],
+      argv: codexAppServerArgv(),
       env: { OPENAI_API_KEY: 'fake' },
       env: { OPENAI_API_KEY: 'fake' },
       graceMs: 25,
       graceMs: 25,
       cwd: process.cwd(),
       cwd: process.cwd(),