test(subagent): cover bounded Codex stderr tail

This commit is contained in:
pku-xht
2026-08-18 19:16:22 +08:00
parent 2070f127ee
commit 72ae04abde
@@ -1677,7 +1677,7 @@ describe('run lifecycle and quiescence', () => {
it('surfaces only the wrapper missing-payload diagnostic during startup', async () => {
const child = fakeChild()
child.setStderr([
'credential-like unrelated stderr',
`credential-like unrelated stderr ${'x'.repeat(16 * 1024)}`,
'Error: Missing optional dependency @openai/codex-linux-x64. '
+ 'Reinstall Codex: pnpm add -g @openai/codex@latest',
].join('\n'))