Panel voice picker: name the target project and harden workspace resolution #34

Closed
opened 2026-11-05 17:48:51 +00:00 by dsh · 1 comment
Owner

Operator reported that the voice "doesn't get linked to the workspace" after the picker moved into the tool-talk panel.

Investigation: on the current build the link works end-to-end (panel pick → mapping by session cwd → announcement engine/voice = selected; verified over CDP, the operator heard GLaDOS). Two ambiguity/robustness issues stood out:

  1. The frame-wide panel picker binds to the active chat's project, but nothing in the UI says which project that is — easy to pick a voice while another session/workspace is active and conclude it didn't link.
  2. sessionCwd returned undefined for sessions without a cwd summary (blank/subagent), so an override could be dropped silently.

Fix: show Voice · <project> in the panel row; fall back to the workspace owner list for cwd; log one line when an override is saved or cannot be saved.

Acceptance: label names the active project; mapping still persists per workspace; a failed save is visible in the console.

Operator reported that the voice "doesn't get linked to the workspace" after the picker moved into the tool-talk panel. Investigation: on the current build the link works end-to-end (panel pick → mapping by session cwd → announcement engine/voice = selected; verified over CDP, the operator heard GLaDOS). Two ambiguity/robustness issues stood out: 1. The frame-wide panel picker binds to the **active chat's** project, but nothing in the UI says which project that is — easy to pick a voice while another session/workspace is active and conclude it didn't link. 2. `sessionCwd` returned undefined for sessions without a cwd summary (blank/subagent), so an override could be dropped silently. Fix: show `Voice · <project>` in the panel row; fall back to the workspace owner list for cwd; log one line when an override is saved or cannot be saved. Acceptance: label names the active project; mapping still persists per workspace; a failed save is visible in the console.
Author
Owner

Landed (e8bdb93).

  • VOICE row in the panel now names the project it links to: Voice · default-workspace (or Voice · no chat when nothing is active).
  • sessionCwd falls back to the workspace owner list for blank/subagent sessions, so the mapping isn't dropped when a session has no cwd summary.
  • setWorkspaceVoice logs workspace voice saved { project, engine, voice } on success and a warning when it cannot resolve a workspace.
  • Verified over CDP end-to-end after the move: panel pick → mapping saved → announcement engine: piper, voice: de_DE-glados-medium → audio chunk (the operator heard GLaDOS). 201 tests, npm run check green.

Root cause of the report is most likely one of: (a) the panel picker binds to the active chat's project, not the workspaces of the notes shown; (b) the server GUI checkout is still at 34e0b56 (pre-dates picker/mapping), so if tested there none of this exists. Closing the code-side clarity fix; if it still fails on a current build, reopen with the browser/GUI and the console line.

Landed (`e8bdb93`). - VOICE row in the panel now names the project it links to: `Voice · default-workspace` (or `Voice · no chat` when nothing is active). - `sessionCwd` falls back to the workspace owner list for blank/subagent sessions, so the mapping isn't dropped when a session has no cwd summary. - `setWorkspaceVoice` logs `workspace voice saved { project, engine, voice }` on success and a warning when it cannot resolve a workspace. - Verified over CDP end-to-end after the move: panel pick → mapping saved → announcement `engine: piper, voice: de_DE-glados-medium` → audio chunk (the operator heard GLaDOS). 201 tests, `npm run check` green. Root cause of the report is most likely one of: (a) the panel picker binds to the **active chat's project**, not the workspaces of the notes shown; (b) the server GUI checkout is still at `34e0b56` (pre-dates picker/mapping), so if tested there none of this exists. Closing the code-side clarity fix; if it still fails on a current build, reopen with the browser/GUI and the console line.
dsh closed this issue 2026-11-05 17:48:57 +00:00
Sign in to join this conversation.
No description provided.