fix(codex): account the naming child on the unexpected-exit path too

An unexpected app-server death orphan-killed the naming child without
registering it, so full shutdown could not prove that one stopped.
This commit is contained in:
Merge Sim
2026-09-09 16:28:42 -07:00
parent 2e48aa4597
commit d7d5245d0b
@@ -146,6 +146,9 @@ export async function acquireCodexStructuredSession(input: {
error,
prompts: acquisition.prompts,
onBackgroundTasksChanged: deps.onBackgroundTasksChanged,
// An unexpected death orphans the naming child too; shutdown
// still has to prove that one stopped.
namingOrphans,
...(deps.onEvent ? { onEvent: deps.onEvent } : {})
})
} finally {