From c30385b92ff767f8aaff58bf0bc1e5c42ce9036c Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Tue, 10 Nov 2026 12:45:52 +0100 Subject: 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 --- deckit/modules/assistant.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'deckit/modules/assistant.py') diff --git a/deckit/modules/assistant.py b/deckit/modules/assistant.py index 247caf4..f0b3947 100644 --- a/deckit/modules/assistant.py +++ b/deckit/modules/assistant.py @@ -203,12 +203,6 @@ def make(cfg: dict) -> Module: out["hears"] = hears(st["models"], out["wanted"]) return out - def ask(body): - text = body.get("text") - if not isinstance(text, str) or not text.strip(): - raise ModuleError("text required") - send(with_model({"type": "ask", "text": text})) - def model(body): mid = body.get("id") with lock: @@ -343,7 +337,7 @@ def make(cfg: dict) -> Module: return Module( name="assistant", title="Assistant", state=state, - actions={"ask": ask, "stop": lambda b: send({"type": "stop"}), + actions={"stop": lambda b: send({"type": "stop"}), "new": lambda b: send({"type": "new"}), "models": lambda b: send({"type": "models"}), "model": model, "voice": voice, "pick": pick, "cancel": cancel}, -- cgit v1.2.3