diff options
| author | Danilo M. <danix@danix.xyz> | 2026-11-10 12:27:15 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-11-10 12:27:15 +0100 |
| commit | c8f5a1e68d3294d4e1c7be3c386f3cc538eeb7af (patch) | |
| tree | 8c5826354c7828d88e3dfba1254b24a7439e5e10 /deckit | |
| parent | 5b5659cb830a6bf107dd0c9a0bb0f34045d6a8ce (diff) | |
| download | deck-it-c8f5a1e68d3294d4e1c7be3c386f3cc538eeb7af.tar.gz deck-it-c8f5a1e68d3294d4e1c7be3c386f3cc538eeb7af.zip | |
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 <noreply@anthropic.com>
Diffstat (limited to 'deckit')
| -rw-r--r-- | deckit/modules/assistant.py | 2 | ||||
| -rw-r--r-- | deckit/server.py | 5 |
2 files changed, 6 insertions, 1 deletions
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"] |
