Skip to content

Commit f9270c2

Browse files
fix(codex): preserve native subagent completion results
1 parent beb975f commit f9270c2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

extensions/codex/src/app-server/native-subagent-monitor.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,8 @@ export class CodexNativeSubagentMonitor {
304304
}
305305
const completion = toThreadCompletion(nativeCompletion, childState.childThreadId);
306306
if (shouldWaitForTranscriptCompletion(completion, this.codexHome)) {
307+
// Codex can notify `completed: null` before the child transcript exposes
308+
// its final assistant message; poll briefly before delivering the no-final fallback.
307309
const eventAt = Date.now();
308310
const reconciled = await this.reconcileChildTranscript(childState.childThreadId);
309311
if (!reconciled) {

0 commit comments

Comments
 (0)