Skip to content

Commit 9161a31

Browse files
committed
fix(tui): surface a lost decision for a queue-drained turn
1 parent 1da2213 commit 9161a31

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎src/tui/runner/submit.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,10 @@ export function createSubmitPath(
409409
kind: err instanceof Error ? err.name : typeof err,
410410
},
411411
);
412+
// The drained message already reached the agent, so its delivery
413+
// stays accepted and the queue posts no notice. Surface the lost
414+
// decision as a failed send, with the notice the drain left off.
415+
handleSendFailure(err, attempt, providerFailure, true);
412416
});
413417
return;
414418
}

0 commit comments

Comments
 (0)