Handoff: local test pass, finish #27 tooltalk, v0.1.0 cleanup #30

Closed
opened 2026-11-04 05:24:04 +00:00 by dsh · 3 comments
Owner

Handoff — 2026-11-04

Picking up dsh-whale-noises after the LibriTTS promotion and the wn_speak spike. master is at a2637fc; 167 unit tests green; bundle 0.89 MB.

What is done

  • Three engines: Piper (multilingual + GLaDOS), LibriTTS (one 78.6 MB model, 904 voices, 000–903, 000 is the default), Phonon 31m (24 voices). Kokoro is removed (adapter/worker/dependency; bundle went 3.0 MB → 0.89 MB).
  • LibriTTS uses the ONNX speaker index (000–903), not the sparse upstream speaker IDs. This was the “904 error” bug.
  • Volume slider; numeric Speaker field removed. Preview lines are language-aware (en/de/cs/es/fr/it/pl/ru/tr/ar/zh).
  • Downloaded-voice deletion + shared-model purge (#29).
  • wn_speak(text, kind) host tool (D12): sanitised prose, per-session rate limit, server-derived workspace · session source, persisted in tool/result meta.
  • Client captures announcements (delta + full-window scan), suppresses auto-read for that session+turn, queues through the spool.
  • Fixes: session-retain recursion guard (the stack-overflow freeze), announcement capture, announcement unlock.

What needs finishing

  1. Confirm tool speech audibly. Announcements are received and queued; last attempts were silent while manual read worked. The announcement path now calls pipeline.unlock() and logs contextState (a2637fc). Test: restart dsh web, enable the plugin, unlock audio via Enable audio & preview, then ask the agent to call wn_speak. Expected console: announcement handling → download check → announcement queued → speak start → audio chunk. If silent, capture those lines; next suspect is the source-prefixed text (·) or mid-turn AudioContext timing.
  2. #27 remainder: 3-state mode toggle (auto/tool/off), announcement tray (timestamp, +N, dim-don’t-close, close), announce preempting a running report, and removing the temporary debug logs (announcement handling, speak start, audio chunk, wn_speak result observed).
  3. #28: favourites, workspace→voice mapping, 3-state mode toggle; account for engine-switch download cost.
  4. #23: Layla speaker id unknown; optional per-speaker HF sample preview.
  5. Asset-delivery ADR (#18) before v0.1.0: pinned CDN vs self-hosted read-only static route.
  6. Release #21: close stale issues (#10, #11, #16 “replaced by LibriTTS”, #17, #26, #29, #1/#2 if verified), README hero + 900-voice pitch, browser matrix, tag v0.1.0.

Local test setup

cd /home/deeps/Projects/dsh-whale-noises
dsh plugin --profile web add /home/deeps/Projects/dsh-whale-noises
node scripts/dev-link-dsh.mjs
# host changes need a `dsh web` restart; client changes need a hard reload
npm run check

Manual checks: each engine + LibriTTS voice 000 and a high index (903); preview language; volume slider; auto-read on/off; manual speaker icon; wn_speak announce/report; panel pause/play/stop; delete a downloaded voice; reload persistence.

Gotchas

  • lib/index.js now imports @deepseek-ai/dsh-tools; the peer is declared. If the tool disappears after a fresh install, check that peer resolves in the profile.
  • The host tool is text-only; no inference/model bytes/network (D12, hard rule 1).
  • wn_speak is registered globally; it is not yet gated behind a tooltalk mode.
  • docs/AGENTS still has stale Kokoro references in D8/D9, “Open” bullets, hard rule 3, and the M3 milestone; clean these before release.

Requested tag: NaNs (no such label exists; interpreted as needs-operator).

## Handoff — 2026-11-04 Picking up `dsh-whale-noises` after the LibriTTS promotion and the `wn_speak` spike. `master` is at `a2637fc`; 167 unit tests green; bundle **0.89 MB**. ### What is done - Three engines: **Piper** (multilingual + GLaDOS), **LibriTTS** (one 78.6 MB model, **904 voices, 000–903**, 000 is the default), **Phonon 31m** (24 voices). Kokoro is **removed** (adapter/worker/dependency; bundle went 3.0 MB → 0.89 MB). - LibriTTS uses the **ONNX speaker index** (000–903), not the sparse upstream speaker IDs. This was the “904 error” bug. - Volume slider; numeric Speaker field removed. Preview lines are language-aware (en/de/cs/es/fr/it/pl/ru/tr/ar/zh). - Downloaded-voice deletion + shared-model purge (#29). - `wn_speak(text, kind)` host tool (D12): sanitised prose, per-session rate limit, server-derived `workspace · session` source, persisted in `tool/result` meta. - Client captures announcements (delta + full-window scan), suppresses auto-read for that session+turn, queues through the spool. - Fixes: session-retain recursion guard (the stack-overflow freeze), announcement capture, announcement unlock. ### What needs finishing 1. **Confirm tool speech audibly.** Announcements are received and queued; last attempts were silent while manual read worked. The announcement path now calls `pipeline.unlock()` and logs `contextState` (`a2637fc`). Test: restart `dsh web`, enable the plugin, unlock audio via **Enable audio & preview**, then ask the agent to call `wn_speak`. Expected console: `announcement handling` → `download check` → `announcement queued` → `speak start` → `audio chunk`. If silent, capture those lines; next suspect is the source-prefixed text (`·`) or mid-turn AudioContext timing. 2. **#27 remainder:** 3-state mode toggle (auto/tool/off), announcement tray (timestamp, `+N`, dim-don’t-close, close), `announce` preempting a running `report`, and removing the temporary debug logs (`announcement handling`, `speak start`, `audio chunk`, `wn_speak result observed`). 3. **#28:** favourites, workspace→voice mapping, 3-state mode toggle; account for engine-switch download cost. 4. **#23:** Layla speaker id unknown; optional per-speaker HF sample preview. 5. **Asset-delivery ADR (#18)** before v0.1.0: pinned CDN vs self-hosted read-only static route. 6. **Release #21:** close stale issues (#10, #11, #16 “replaced by LibriTTS”, #17, #26, #29, #1/#2 if verified), README hero + 900-voice pitch, browser matrix, tag `v0.1.0`. ### Local test setup ```bash cd /home/deeps/Projects/dsh-whale-noises dsh plugin --profile web add /home/deeps/Projects/dsh-whale-noises node scripts/dev-link-dsh.mjs # host changes need a `dsh web` restart; client changes need a hard reload npm run check ``` Manual checks: each engine + **LibriTTS voice 000 and a high index (903)**; preview language; volume slider; auto-read on/off; manual speaker icon; `wn_speak` announce/report; panel pause/play/stop; delete a downloaded voice; reload persistence. ### Gotchas - `lib/index.js` now imports `@deepseek-ai/dsh-tools`; the peer is declared. If the tool disappears after a fresh install, check that peer resolves in the profile. - The host tool is text-only; no inference/model bytes/network (D12, hard rule 1). - `wn_speak` is registered globally; it is not yet gated behind a tooltalk mode. - `docs/AGENTS` still has stale Kokoro references in D8/D9, “Open” bullets, hard rule 3, and the M3 milestone; clean these before release. Requested tag: `NaNs` (no such label exists; interpreted as **needs-operator**).
Author
Owner

Correction: NaNs = Needs a new session (ML joke). The NaNs label now exists and is applied here. When this is picked up, start a fresh DSH session (same machine/workspace or elsewhere) and reference this issue. The earlier needs-operator label stays because the local audio check still needs the operator.

Correction: **NaNs = Needs a new session** (ML joke). The `NaNs` label now exists and is applied here. When this is picked up, start a fresh DSH session (same machine/workspace or elsewhere) and reference this issue. The earlier `needs-operator` label stays because the local audio check still needs the operator.
Author
Owner

Handoff item 1 ("confirm tool speech audibly") is root-caused and fixed: the client capture never received onAnnouncement, so handleAnnouncement was dead code and every wn_speak announcement died after the announcement received log. Details, browser-console evidence and the regression test are in the #27 comment. Commit b73cf9b is on master (npm run check green, 168 tests). What remains for item 1 is only the operator's audible check — the plugin still has to be installed into a browser profile and dsh web restarted (the debug logs are intentionally kept for that round).

Handoff item 1 ("confirm tool speech audibly") is root-caused and fixed: the client capture never received `onAnnouncement`, so `handleAnnouncement` was dead code and every `wn_speak` announcement died after the `announcement received` log. Details, browser-console evidence and the regression test are in the #27 comment. Commit `b73cf9b` is on `master` (`npm run check` green, 168 tests). What remains for item 1 is only the operator's audible check — the plugin still has to be installed into a browser profile and `dsh web` restarted (the debug logs are intentionally kept for that round).
Author
Owner

Handoff completed: local sessions landed the tool-talk panel, modes, favourites, per-chat voices (#32–#36), fixed the onAnnouncement wiring (#27) and confirmed tool speech. Remaining release blockers are tracked in #27 and #31.

Handoff completed: local sessions landed the tool-talk panel, modes, favourites, per-chat voices (#32–#36), fixed the `onAnnouncement` wiring (#27) and confirmed tool speech. Remaining release blockers are tracked in #27 and #31.
dsh closed this issue 2026-11-06 04:36:08 +00:00
Sign in to join this conversation.
No description provided.