Persistent voice-notification drawer (tooltalk tray) with mascot collapse handle #32
Labels
No labels
NaNs
area/audio
area/build
area/docs
area/dsh
area/engine
area/security
area/ui
needs-operator
priority/later
priority/next
priority/now
type/bug
type/task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
dsh-plugins/dsh-whale-noises#32
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Concept
A persistent noise panel: a spoken-notification log in the lower-right corner, chat-style (newest note at the bottom), anchored by the whale-girl mascot. Every
wn_speakannouncement is kept with its server-derived source (workspace · session), timestamp and kind; notes can be replayed or dismissed. When collapsed, the panel shrinks to the mascot plus a❗speech bubble for unread noise.This is the tray half of #27 (acceptance 3) / #30 handoff item 2, and it must not replace the classic TTS UX: the current draggable popup card stays available as a style option.
Positioning (operator decision, 2026-11-04)
max-height: min(65vh, …), then the list scrolls internally; auto-scroll to the newest note only while the user is at the bottom (otherwise a+N newjump chip).UX
announce/report), source label,HH:MM, text (2–3 line clamp), replay and × delete; the currently-speaking note gets the equaliser. Heard notes dim after the speech ends but stay until ×.❗(and/or unread count) when there is unread noise. Clicking the mascot expands the panel.characterSide: offneeds a fallback handle (small🔊tab) or collapse is disabled.announcementId). This is what makes "the voice note is waiting for me when I come back" real.Style setting
dsh-whale-noises.notificationsStyle(or similar):popup(current draggable card, unchanged) |drawer(new noise panel). Both share the spool + store. Keeppopupas the shipped default until the drawer has been used for a while; the operator switches todrawerfor testing. Regular TTS users must keep working exactly as today.Data / plumbing
announcementsFromEntriesalready yields{announcementId, kind, text, source, ts, turn, sessionId}— pass it throughhandleAnnouncementand into the store.src/spool.jsdrops unknown fields; extend items with{ announcementId, kind, ts, sessionId, heard }, markheardonspeak()resolve, addreplay(itemId).src/notifications.js: capped/deduped/subscribable store persisted underdsh-whale-noises.notifications.v1; unread/heard/dismiss/clear; pure and unit-testable.createCapturegains a past-announcement callback so history scan can fill the log silently without speaking.Multi-client reality
The tray lives in one browser origin: two DSH clients (
127.0.0.1:3080vshttps://srvbtw…) have separate trays; merging would need host state or shared storage and breaks D1/D7. Within one DSH all retained sessions land in one tray with their labels. Two tabs of the same origin would both speak →BroadcastChannelsingle-speaker election is a follow-up, not MVP.Acceptance
wn_speakfrom session A and one from session B both appear in the log with correct source/time, oldest→newest top→bottom, in one DSH client.❗bubble are correct; announcements that arrived while the page was closed show up unread without being spoken.popupstyle is unchanged; auto-read suppression, pause/play/stop, message-toolbar speaker action keep working; the panel never blocks chat clicks.Split (PR-sized)
❗), style setting, responsive.+N new, animations, settings "Clear voice notes".Non-goals / later
announcepreemptingreport,tool-speak-only gating and debug-log removal stay in #27; 3-state mode + favourites + workspace voices are #28.Slice 1 landed (
c155d14). Foundation for the noise panel, verified in the live test DSH over CDP:src/notifications.js— bounded (100), deduped, subscribable log persisted underdsh-whale-noises.notifications.v1;heard/readflags, dismiss, clear, corrupt-storage safe.createCapturenow routes announcements older than the page load to anonPastAnnouncementcallback instead of dropping them: notes that arrived while the page was closed are recovered silently (never re-spoken) and land in the log as unread. Live announcements still speak and are also recorded even when speech is skipped (voice not downloaded / audio blocked).src/spool.jsitems carryannouncementId/kind/ts, are marked heard when playback finishes, and supportreplay(itemId).getNotifications,subscribeNotifications,markNotificationsRead,dismissNotification,clearNotifications,replayNotification.npm run checkgreen.Live evidence: after a page reload the earlier
wn_speakannouncement was in localStorage as an unread note with sourcedefault-workspace · Call wn_speak announce test, and nothing was spoken — exactly the expected "waiting for me when I come back" behaviour.Next: slice 2, the bottom-right chat-style drawer +
popup/drawerstyle setting.Slice 2 landed (
3951a3d): the Tool-talk noise panel. Verified live in the Chrome/CDP test DSH.workspace · session,HH:MM, replay, delete; the speaking note gets an equaliser; heard notes dim but stay. No auto-close.❗bubble. Header has pause/stop + collapse; ≤720 px becomes a full-width sheet.panelStylesetting (popupdefault,draweropt-in) rendered through the sameshell.overlayregistration; settings got the switcher + "Clear saved notes". The classic popup is untouched.assets/tool-talk-badge.jpg), CHANGELOG/AGENTS updated, design screenshots committed underdocs/design/.npm run checkgreen.Known integration issue for the operator: the separate
whale-girlpet bundle lives atz-index: 2147483000and roams the lower right, so the pet can walk in front of the panel and her hit area can cover panel buttons (visible in the screenshots). Options: (a) raise the panel above the pet, (b) give the pet plugin a "below overlays" option, (c) hide the pet while the voice-note panel is expanded, or (d) keep the pet above and accept occasional blocking. Recorded as an AGENTS gotcha; needs a decision because the pet is a separate plugin.Next: slice 3 = composer 3-state mode (read aloud / tool-speak / silent), favourite-voice picker, and per-workspace voice mapping (#28).
Positioning pass (operator feedback).
❗bubble was moved inward so it cannot clip at the viewport edge./tmptest profile disables the pet bundle for clean dev screenshots.Screenshots regenerated in
docs/design/. Ready for slice 3 (composer 3-state mode + favourite voices + per-workspace voice mapping, #28).Mobile + icon pass (
ef9273c).clamp(72px, 12vh, 92px)) — the size the operator liked from the vertical-shrink minimum — and still grows to the full peek when the drawer is expanded.bottom: 150px, same clearance as desktop) instead of overlapping the composer; full-width sheet when expanded, icon handle when collapsed.handle.bottom 695 < composer.top 703), mascot hugs the right edge, unread ❗ inside the viewport. Screenshots added:docs/design/tool-talk-mobile.png,tool-talk-mobile-expanded.png; desktoptool-talk-collapsed.pngrefreshed.Polish + close.
npm run checkgreen; screenshotstool-talk-clear-header.png,voice-settings-star.pngrefreshed.All acceptance criteria are met (persistent chat-style log, per-note replay/delete, mascot collapse + ❗, reload persistence, silent missed-note recovery, popup style retained). Closing — follow-ups for the drawer itself are done; #27 still tracks announce→report preemption + removing temporary debug logs.