← Commit history

#133: approval answer in the reply

Colby Knox ·29355676fd ·12d ago ·parent 1556511
2 files changed +10−2
CHANGELOG.md+7
@@ -3,6 +3,13 @@ All notable changes to the Adom Bridge Fusion 360 bridge, newest first. Canonical: https://wiki.adom.inc/adom/fusion-bridge ยท GitHub backup: `adom-inc/fusion-bridge` +## 1.13.44 (2026-10-30)++- The import's needs_approval reply carries ab's own answer (`approvalAnswer`) and no longer claims a five-minute wait+  (ab can answer sooner, as it did live). Checked live on 1.13.43 with approval off on the test laptop: the start reply+  said needsApproval with the sentence for the user, the status read waiting_for_approval, no dialog opened, and the+  run ended needs_approval with Fusion untouched.+ ## 1.13.43 (2026-10-30)  - Issue #133, the cause on Andy's PC: ab gates UI Automation and keystrokes behind its shell approval even for a
rust/bridge/src/orchestrations.rs+3−2
@@ -1349,8 +1349,9 @@ pub fn new_electronics_from_eagle(ctx: &Ctx, args: &Value, pass: &dyn Fn(&str, V             eagle_run_write(&ctx.state_dir, rid, &v);         }         if !granted {-            return json!({"success": false, "errorCode": "needs_approval", "imported": [], "dialogOpened": false,-                "error": "Not started: the import fills Fusion's Open dialog, which needs Adom Bridge's approval, and no approval was given (the request waited five minutes). No dialog was opened.",+            let answer = g.as_ref().map(|v| if v["data"].is_object() { v["data"].clone() } else { v.clone() }).unwrap_or_else(|e| json!({"error": format!("{e}")}));+            return json!({"success": false, "errorCode": "needs_approval", "imported": [], "dialogOpened": false, "approvalAnswer": answer,+                "error": "Not started: the import fills Fusion's Open dialog, which needs Adom Bridge's approval, and Adom Bridge reported no approval (approvalAnswer has its reply). No dialog was opened.",                 "tellUser": tell, "_hint": "Ask the user to click Approve in Adom Bridge (or Hydrogen), then run the import again. With approval on (Auto mode) the import needs no prompt."});         }     }