diff options
| author | Adam Malczewski <[email protected]> | 2026-10-21 20:11:33 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-10-21 20:11:33 +0900 |
| commit | 564b2c1d03cf477d7cfc23414b60d1ec76904ecc (patch) | |
| tree | 16fc1956bb6cd7b83894104b24b9f02acd0751ec /src/app | |
| parent | 7b7d6d01cf94ecad1dcaaa4b87670d50fe15790a (diff) | |
| download | dispatch-web-564b2c1d03cf477d7cfc23414b60d1ec76904ecc.tar.gz dispatch-web-564b2c1d03cf477d7cfc23414b60d1ec76904ecc.zip | |
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.
Diffstat (limited to 'src/app')
| -rw-r--r-- | src/app/App.test.ts | 8 |
1 files changed, 4 insertions, 4 deletions
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" }); |
