fix: preserve shell-ready Codex resume delivery

This commit is contained in:
Brennan Benson
2026-08-14 01:13:22 -07:00
parent 7b81915577
commit affec140e5
6 changed files with 39 additions and 3 deletions
+1
View File
@@ -64,6 +64,7 @@ export function buildAgentResumeStartupPlan(args: {
expectedProcess: TUI_AGENT_CONFIG[args.agent].expectedProcess,
followupPrompt: null,
launchConfig,
...(args.agent === 'codex' ? { startupCommandDelivery: 'shell-ready' as const } : {}),
...(Object.keys(applied).length > 0 ? { sessionOptions: { ...applied } } : {}),
...(args.agentEnv ? { env: { ...args.agentEnv } } : {})
}
+1
View File
@@ -591,6 +591,7 @@ describe('tui agent startup plans', () => {
})
expect(plan?.launchCommand).toBe("codex 'resume' 's1'")
expect(plan?.startupCommandDelivery).toBe('shell-ready')
})
it('quotes Windows resume argv for cmd.exe when shell is cmd', () => {