aboutsummaryrefslogtreecommitdiffstats
path: root/deckit/server.py
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-11-10 12:27:15 +0100
committerDanilo M. <danix@danix.xyz>2026-11-10 12:27:15 +0100
commitc8f5a1e68d3294d4e1c7be3c386f3cc538eeb7af (patch)
tree8c5826354c7828d88e3dfba1254b24a7439e5e10 /deckit/server.py
parent5b5659cb830a6bf107dd0c9a0bb0f34045d6a8ce (diff)
downloaddeck-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/server.py')
-rw-r--r--deckit/server.py5
1 files changed, 4 insertions, 1 deletions
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"]