Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): play completion sounds without delay #29146

MergedYash-Singh1(GitHub profile, opens in a new tab)merged 3 commits intomain fromrefs/pull/29146/headmerged by Yash-Singh1(GitHub profile, opens in a new tab) View on GitHub

Showing 7 changed files with 12 additions and 26 deletions (loading 6).

x
0 of 7 viewed, 7 left
12 additions and 26 deletionsapps/web/src/components/ThreadNotificationCoordinator.badge.browser.test.tsModified
View file
@@ -1,4 +1,3 @@
-import { WORKING_EXIT_GRACE_MS } from "@t3tools/client-runtime/state/thread-inbox";
import type { AnyRouter } from "@tanstack/react-router";
import { EnvironmentId } from "@t3tools/contracts";
import * as DateTime from "effect/DateTime";
@@ -6,7 +5,7 @@
import { Atom, AtomRegistry } from "effect/reactivity";
import { expect, it, vi } from "vite-plus/test";
​
-import { fakeTimers, stubGlobal } from "../../test/render";
+import { stubGlobal } from "../../test/render";
​
const state = vi.hoisted(() => ({
mode: "notifications",
@@ -241,24 +240,18 @@
​
-it("holds a completion through a continuation gap and notifies once it settles", async () => {
+it("presents completion notifications and sound as soon as the shell completes", async () => {
await using app = setup();
+ state.mode = "notifications-and-sound";
app.start();
- using _timers = fakeTimers();
- const finished = (turnId: string, completedAt: string) => ({
- latestTurn: { turnId, state: "completed", completedAt },
- });
- state.shells.set("one", shell(finished("turn-1", "2026-09-13T07:00:01.000Z")));
state.shells.set(