diff --git a/src/renderer/src/components/native-chat/structured-agent-session-outbox-chat-close.ts b/src/renderer/src/components/native-chat/structured-agent-session-outbox-chat-close.ts index 3a87403d43e..178d8bd682d 100644 --- a/src/renderer/src/components/native-chat/structured-agent-session-outbox-chat-close.ts +++ b/src/renderer/src/components/native-chat/structured-agent-session-outbox-chat-close.ts @@ -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') } diff --git a/src/shared/structured-agent-session-outbox-settlement.ts b/src/shared/structured-agent-session-outbox-settlement.ts index 8ff77776c98..f9bd445a5bc 100644 --- a/src/shared/structured-agent-session-outbox-settlement.ts +++ b/src/shared/structured-agent-session-outbox-settlement.ts @@ -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 {