Speaker icon in the message toolbar + auto-read toggle #24
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#24
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?
Goal
Two controls on the chat surface:
Auto-read must read everything generated that is not a thought — assistant
textblocks only; reasoning, tool calls and tool results stay silent.Placement (verified against
@deepseek-ai/dsh 0.2.1-rc.2)conversation.chat.assistant-actionslist, session scope, owner props{ messageId }; rendered byMessageIconActionsin the turn-tail row (dsh-client-ui-chat/lib/client.js:6988,.../contract/slots.d.ts:395)conversation.input.left(left of the composer tool row) or.right(before submit)list, session scope (dsh-client-ui-conversation/.../contract/slots.d.ts:311-320)dsh-client-ui-message-feedback/lib/client.js:815—{ name, id, order, locale, inject: (sessionId) => ({...}) }, component gets{ messageId, ...injected, t }.--dsw-alias-label-tertiary, hover--dsw-alias-interactive-bg-hover, focus ring) so it sits naturally next to copy/share.assistant/messagewithmessage.id === messageIdand take onlytextblocks. The action row only renders for loaded messages, so no history fetch is needed.Behaviour
aria-pressed, tooltip, keyboard activation, reduced-motion friendly.locale/en.json(German later). No new dependency.Acceptance
Notes
Implemented in the
#24commit.conversation.chat.assistant-actionsspeaker button on every finalized assistant message: reads that message (looks upassistant/messagetext in the retained session window, so loaded history works too, not only live capture); clicking while it plays stops it; it shares the spool, so it never overlaps other speech.conversation.input.leftcomposer toggle for auto-read, persisted with the settings switch (both stay in sync).141 tests (controls render/actions + capture history lookup), CI green. Pending the operator's visual check on the bare UI.
Follow-up fixes from the operator's visual check:
translateX(calc(±100% ∓ 7px)); card height stays 34vh.surfaceOp === 'append'predicate, and the slot's injectedsessionIdcan be absent.findAssistantMessagenow accepts any durableassistant/message, and the client falls back to scanning every retained session; a console line reports{messageId, sessionId, found}.142 tests green.
Confirmed working by the operator after the turn-tail fallback (
0d30f3c): clicking the speaker now reads the answer above it, regardless of the slot id.Final UI: panel has a fixed 270 px height with the native-size mascot. Closing — the message speaker and composer auto-read toggle both pass their manual check.