From 323203b7ac00ace8fbff92fa0a9e1b89a6d95f3e Mon Sep 17 00:00:00 2001 From: Brennan Benson <79079362+brennanb2025@users.noreply.github.com> Date: Sun, 4 Oct 2026 05:51:39 -0700 Subject: [PATCH] docs(native-chat): two comments say what the settlement and a chat close now do --- .../native-chat/structured-agent-session-outbox-chat-close.ts | 2 +- src/shared/structured-agent-session-outbox-settlement.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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 {