← Commit history

Dashboard 1.0.125: a dismissed AI picker is reported as cancelled, never retried

John Lauer ·490e0cb7b3 ·1mo ago ·parent 85ab44a
2 files changed +6−1
dashboard/kicad_dashboard.py+5
@@ -281,6 +281,11 @@ def say_send(phrase):                                     f"Not retried, so no duplicate tab. The phrase was copied instead."}      d = res.get("data") if isinstance(res.get("data"), dict) else res+    if isinstance(d, dict) and d.get("cancelled"):+        # Wiki #77: the user dismissed Hydrogen's AI picker. Nothing opened,+        # nothing was delivered; say so and never retry.+        return {"ok": False, "cancelled": True,+                "why": "you dismissed the AI picker; nothing was opened or sent. The phrase is still on your clipboard."}     # Hydrogen 1.0.187+ (newbie-panel.js 2.22.0 contract): run-prompt returns in     # under a second with {ok, job, state:"opening"}; ok means the job STARTED     # and delivered_to is never filled on this path. Progress is a poll of
package.json+1−1
@@ -1,6 +1,6 @@ {   "slug": "kicad-bridge",-  "version": "1.0.124",+  "version": "1.0.125",   "type": "app",   "description": "Skills for your container so your AI knows how to drive the KiCad bridge. The bridge runtime itself is the release zip; Adom Bridge loads that.",   "tags": [