# #24882 runtime transcript (web client, dev server, fresh database, fs-15)

Setup on both sides: `T3CODE_DEV_SEED=0 vp run dev`, web client paired, Settings > General >
Thread notifications = "Notifications only", `window.Notification` replaced by a recorder and
`document.hasFocus` forced false so desktop notifications are presented. Claude Sonnet 5.5 thread
in Supervised mode, prompt asks for one Bash `touch` (needs approval). While the approval is
pending, `node apps/server/src/bin.ts thread send --base-dir <worktree>/.t3 <thread> "queued note N"`
three times ("A busy thread gets it as its next turn").

## Before: main f3b058cd6a
runtime_requests rows for the thread: 1, status pending, created 08:53:25.269Z
Notifications recorded:
  08:53:25.471Z  Approval needed  (approval appears)
  08:57:13.809Z  Approval needed  (queued note one)
  08:57:27.322Z  Approval needed  (queued note two)
  08:57:35.069Z  Approval needed  (queued note three)
A background subagent issued ~10 Read calls during the same wait: no extra notification.

## After: fix/issue-24882 107c2c98c6
runtime_requests rows for the thread: 1, status pending, created 09:05:29.678Z
Notifications recorded:
  09:05:29.930Z  Approval needed  (approval appears)
"3 queued" shown under the approval; no further notifications.

## After review round 1: fix/issue-24882 8e83c58ac3 (approval/input attention keyed on status)
Same still-pending request (status pending), page reloaded on the new head (first sighting never
notifies), recorder re-installed, two more messages queued ("5 queued" shown).
Notifications recorded: none.

## Toast and sound paths (proof audit pass 2 rows B4, B5a), merged head 9ef95ebd12
Dev server restarted on the merged head, fresh approval in a new Supervised thread. Settings:
"Sound only" + In-app notifications on; page focused and visible, a different thread open, so the
toast path applies. Spies: `AudioBufferSourceNode.prototype.start` count, and added
`[data-slot="toast-title"]` nodes reading "… needed".

Fix (9ef95ebd12):
  09:33:54  approval appears: 1 sound, 1 "Approval needed" toast
  3 messages queued behind the same pending request (status pending): 0 more sounds, 0 more toasts
Main's coordinator (f3b058cd6a file swapped in, page reloaded, same still-pending request):
  3 messages queued: 3 sounds, 3 toasts ("Approval needed" at 09:35:01, 09:35:10, 09:35:18)
