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/app/App.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/app/App.test.ts') diff --git a/src/app/App.test.ts b/src/app/App.test.ts index 42d30ed..9c5f5cc 100644 --- a/src/app/App.test.ts +++ b/src/app/App.test.ts @@ -482,7 +482,7 @@ describe("App component interaction tests", () => { store.dispose(); }); - it("uses only the focused conversation's queue snapshot for the interrupt label and POSTs stop", async () => { + it("uses only the focused conversation's queue snapshot for the Flush label and POSTs stop", async () => { const ws = fakeSocket(); const fetchImpl = vi.fn(fakeFetchImpl()); const store = createAppStore({ @@ -523,10 +523,10 @@ describe("App component interaction tests", () => { }); const pending = { messages: [{ id: "m1", text: "next", queuedAt: 1 }] }; pushQueue(firstId, pending); - const interrupt = await screen.findByRole("button", { name: "Interrupt & send queued" }); + const flush = await screen.findByRole("button", { name: "Flush" }); ws.sent.length = 0; fetchImpl.mockClear(); - await user.click(interrupt); + await user.click(flush); expect(fetchImpl.mock.calls.filter(([, init]) => init?.method === "POST")).toEqual([ [expect.stringContaining(`/conversations/${firstId}/stop`), { method: "POST" }], ]); @@ -544,7 +544,7 @@ describe("App component interaction tests", () => { expect(screen.getByRole("button", { name: "Stop generation" })).toBeInTheDocument(), ); pushQueue(secondId, pending); - await screen.findByRole("button", { name: "Interrupt & send queued" }); + await screen.findByRole("button", { name: "Flush" }); pushQueue(secondId, { messages: [] }); await screen.findByRole("button", { name: "Stop generation" }); pushQueue(secondId, { messages: "malformed" }); -- cgit v1.2.3