From c8f5a1e68d3294d4e1c7be3c386f3cc538eeb7af Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Tue, 10 Nov 2026 12:27:15 +0100 Subject: fix(assistant): final review fixes Hidden main no longer shows over the offline card, Enter while busy no longer stops a reply, autoscroll is tracked by a scroll listener so it works while the tab is hidden, and the catalog is retried on each daemon reconnect. Mic start is guarded against double taps and recorder failures, a denied mic can be retried, a failed ask restores the text, the model panel closes on any outside tap, and the font path is cached only once found. Plus small CSS and spec corrections. Co-Authored-By: Claude Opus 5.5 --- deckit/modules/assistant.py | 2 ++ deckit/server.py | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'deckit') diff --git a/deckit/modules/assistant.py b/deckit/modules/assistant.py index d535eb7..247caf4 100644 --- a/deckit/modules/assistant.py +++ b/deckit/modules/assistant.py @@ -170,6 +170,8 @@ def make(cfg: dict) -> Module: conn["sock"] = s with lock: st.update(connected=True, error=None) + # Off-thread: qs may take seconds; retries a catalog that failed at start. + threading.Thread(target=load_catalog, daemon=True).start() try: send({"type": "models"}) for line in s.makefile("r", encoding="utf-8", errors="replace"): diff --git a/deckit/server.py b/deckit/server.py index bdaca9e..38de5d3 100644 --- a/deckit/server.py +++ b/deckit/server.py @@ -116,7 +116,10 @@ def nerd_font(): if "p" not in _font: out = _run(["fc-match", "-f", "%{file}", "Inconsolata Nerd Font:style=Regular"]) # fc-match falls back to any font; only a Nerd Font has the glyphs. - _font["p"] = Path(out) if "NerdFont" in out.replace(" ", "") and Path(out).is_file() else None + found = "NerdFont" in out.replace(" ", "") and Path(out).is_file() + if not found: + return None # not cached: keep retrying until a font is installed + _font["p"] = Path(out) return _font["p"] -- cgit v1.2.3