docs(native-chat): two comments say what the settlement and a chat close now do

This commit is contained in:
Brennan Benson
2026-10-04 05:51:39 -07:00
parent c8be71091c
commit 323203b7ac
2 changed files with 1 additions and 2 deletions
@@ -29,7 +29,7 @@ export function settleStructuredAgentSessionOutboxForClosedChat(
if (!neverWentOut(entry)) {
kept.push(entry)
} else if (!(options.cancelledLaunch && entry.source === 'launch')) {
// The draft holds the text before the notes it carried are cleared.
// The draft holds the text first; a cancelled launch's notes come back, any other's are used.
returnStructuredAgentSessionMessage(entry)
endStructuredAgentSessionEntry(entry, options.cancelledLaunch ? 'discarded' : 'returned')
}
@@ -137,7 +137,6 @@ function thrownSettlement(
return context.firstAttempt ? returnedFor(failure) : stillSendingFor(failure)
}
/** The host's answer to one attempt, as one of the three ends. */
/** Whether the host itself answered: a refusal it returned or threw, or a code it turned the call
* away with. Anything else is the transport, which says nothing about the host. */
function answeredByHost(answer: StructuredAgentSessionSendAnswer): boolean {