From 564b2c1d03cf477d7cfc23414b60d1ec76904ecc Mon Sep 17 00:00:00 2001 From: Adam Malczewski Date: Wed, 21 Oct 2026 20:11:33 +0900 Subject: fix(chat): delay delivery warning and shorten queued action label Wait one second before displaying pending-input recovery UI, cancelling on confirmation or removal. Label the queued-message stop action Flush without changing behavior. Verified: 2451 frontend tests passed twice, typecheck, Biome, and build. --- src/features/chat/logic/composer.test.ts | 6 +++--- src/features/chat/logic/composer.ts | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/features/chat/logic') diff --git a/src/features/chat/logic/composer.test.ts b/src/features/chat/logic/composer.test.ts index 6ef5eab..86e9dc4 100644 --- a/src/features/chat/logic/composer.test.ts +++ b/src/features/chat/logic/composer.test.ts @@ -10,10 +10,10 @@ describe("stopButtonLabels", () => { }); }); - it.each([1, 2])("describes interrupt-and-send with queued count %s", (count) => { + it.each([1, 2])("labels the queued Stop action Flush with queued count %s", (count) => { expect(stopButtonLabels(count)).toEqual({ - text: "Interrupt & send queued", - ariaLabel: "Interrupt & send queued", + text: "Flush", + ariaLabel: "Flush", title: "Stop the current response and start the queued message now", }); }); diff --git a/src/features/chat/logic/composer.ts b/src/features/chat/logic/composer.ts index 1ea8173..e56a007 100644 --- a/src/features/chat/logic/composer.ts +++ b/src/features/chat/logic/composer.ts @@ -2,8 +2,8 @@ export function stopButtonLabels(queuedMessageCount: number | undefined) { if (queuedMessageCount !== undefined && queuedMessageCount >= 1) { return { - text: "Interrupt & send queued", - ariaLabel: "Interrupt & send queued", + text: "Flush", + ariaLabel: "Flush", title: "Stop the current response and start the queued message now", }; } -- cgit v1.2.3