aboutsummaryrefslogtreecommitdiffstats
path: root/docs/superpowers/specs/2026-11-10-assistant-design.md
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-11-10 12:45:52 +0100
committerDanilo M. <danix@danix.xyz>2026-11-10 12:45:52 +0100
commitc30385b92ff767f8aaff58bf0bc1e5c42ce9036c (patch)
tree724f3fca1eacf2ba2cd3d7046befd8b464e42e97 /docs/superpowers/specs/2026-11-10-assistant-design.md
parentc8f5a1e68d3294d4e1c7be3c386f3cc538eeb7af (diff)
downloaddeck-it-c30385b92ff767f8aaff58bf0bc1e5c42ce9036c.tar.gz
deck-it-c30385b92ff767f8aaff58bf0bc1e5c42ce9036c.zip
fix(assistant): voice-only tab, tools in an overlay, silent clips dropped
The first voice question on the tablet was a 0.66 s silent clip: the mic gave no feedback until the next poll, an extra tap made a near-empty recording, and the model invented a question from the silence. The mic now turns red on the tap itself, and a clip whose loudest sample is under 1500 (room noise measured ~260, speech 15000+) is not sent. Typing happens on the PC, so the text field, send button and the ask action are gone; the bar is a large mic and a stop icon. The presets and ops move into an overlay opened from the header, so the transcript gets the screen. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs/superpowers/specs/2026-11-10-assistant-design.md')
-rw-r--r--docs/superpowers/specs/2026-11-10-assistant-design.md27
1 files changed, 15 insertions, 12 deletions
diff --git a/docs/superpowers/specs/2026-11-10-assistant-design.md b/docs/superpowers/specs/2026-11-10-assistant-design.md
index 55c82eb..9fbaf38 100644
--- a/docs/superpowers/specs/2026-11-10-assistant-design.md
+++ b/docs/superpowers/specs/2026-11-10-assistant-design.md
@@ -6,8 +6,8 @@ Date: 2026-11-10. Fills the module slot the original design deferred
## Goal
An **Assistant** tab on the tablet that is a full client of
-desktop-assistant: typed chat with streamed, formatted replies, voice
-questions through the tablet's mic, model choice, and the canvas's
+desktop-assistant: voice questions through the tablet's mic with
+streamed, formatted replies (no keyboard: typing happens on the PC), model choice, and the canvas's
Ask presets and Do ops applied to a file picked on the PC. The UI is built
for a finger: icon buttons, no text buttons.
@@ -69,7 +69,6 @@ The client sends text, ids and labels; never a path or a command.
| Action | Body | Does |
| --- | --- | --- |
-| `ask` | `text` | daemon `ask`, with `model` when one is wanted |
| `stop`, `new` | — | the daemon commands |
| `models` | — | daemon `models`, local items with `inputs` |
| `model` | `id` | the chat's pick; must be in the last model list |
@@ -115,16 +114,20 @@ an `aria-label` and a `title`; no text buttons. Icons are the Nerd Font
glyphs the canvas uses.
- **Header:** model button (the model's name, the one text label, since it
- is the value being chosen; a cloud glyph for cloud models), new.
-- **Action strip:** Ask presets, then Do ops, as icon tiles with the
- preset's own glyph and a short caption under it (presets are user-made,
- so the glyph alone cannot tell them apart). While picking, the strip is
- replaced by "Choose the file on the PC" and a cancel icon.
+ is the value being chosen; a cloud glyph for cloud models), tools, new.
+- **Tools overlay** (from the header's tools icon, so the transcript keeps
+ the screen): Ask presets, then Do ops, as icon tiles with the preset's
+ own glyph and a short caption under it (presets are user-made, so the
+ glyph alone cannot tell them apart). A tap closes it; while picking, a
+ line above the transcript says "Choose the file on the PC", with a
+ cancel icon.
- **Transcript:** questions and replies, Markdown rendered by `marked`;
a status line for thinking and running tools. A code block gets a copy
icon once its turn is finished.
-- **Input bar:** text field, then mic (toggle, with a running timer while
- recording), then send, which becomes stop while a reply streams.
+- **Bottom bar:** the status line, a large mic (toggle; red from the tap
+ itself, with a running timer) and a stop icon while a reply streams. A
+ clip whose loudest sample is under 1500 (silence) is not sent, since the
+ model would invent a question from it; the tab says "nothing heard".
- **Model panel** slides over the transcript and close on a
tap outside.
@@ -140,8 +143,8 @@ re-rendered on each poll; an unclosed fence shows as plain text.
- Daemon down: `offline.js`'s card, "Assistant not running", the socket
error in its tooltip; retries every 5s.
- quickshell or the IPC call failing: chat and voice keep working; the
- action strip is hidden with a note saying why.
-- qarma missing or failing: in the strip's status line.
+ tools overlay shows a note saying why.
+- qarma missing or failing: in the notice above the bottom bar.
- Daemon `error` with `turn`: ends the reply in the transcript; without
it: shown above the input.
- fileops with no output: "fileops gave no answer".