← Commit history

Update 6 file(s)

John Lauer ·ac302cb5e5 ·1mo ago ·parent 425feb6
6 files changed +67−17
BRIDGE_VERSION+1−1
@@ -1 +1 @@-1.9.123\ No newline at end of file+1.9.124\ No newline at end of file
adom-bridge-fusion-manifest.json+4−4
@@ -1,10 +1,10 @@ {   "manifest_version": 1,   "name": "fusion360",-  "version": "1.9.123",-  "url": "https://wiki.adom.inc/download/adom/fusion-bridge/1.9.139/adom-bridge-fusion-v1.9.123.zip",-  "sha256": "32f28501be653cb137b4388718b9bd64bd6da24e8fe979673d124fef6830c61b",-  "size": 458698,+  "version": "1.9.124",+  "url": "https://wiki.adom.inc/download/adom/fusion-bridge/1.9.140/adom-bridge-fusion-v1.9.124.zip",+  "sha256": "5fe094ff579a49fce3308026c9b2f6dca447ed4d653838606b747e44bbb3a7f3",+  "size": 459542,   "verbPrefixes": [     "fusion_"   ],
bridge.json+1−1
@@ -2,7 +2,7 @@   "manifest_version": 1,   "name": "fusion360",   "displayName": "Autodesk Fusion 360",-  "version": "1.9.123",+  "version": "1.9.124",   "description": "Drive Autodesk Fusion 360 from the cloud: launch Fusion, electronics board layout, design rules, exports (STEP/IGES/STL/3MF/USDZ/OBJ/DXF/DWG/Gerbers/BOM/CPL), fast APS server-indexed cloud search plus browse/recent/file-info/versions, cloud file download/upload and folder creation, and in-app parametric modeling (fusion_run_modeling_script). Never-charge: APS calls are capped to the free tier.",   "homepage": "https://wiki.adom.inc/adom/fusion-bridge",   "author": "Adom Inc.",
package.json+1−1
@@ -1,6 +1,6 @@ {   "slug": "fusion-bridge",-  "version": "1.9.139",+  "version": "1.9.140",   "type": "app",   "description": "This package installs the bridge's SKILLS into your container so your AI knows how to drive it; Adom Bridge loads the bridge runtime itself from the release zip.",   "dependencies": {
page.json+10−7
@@ -1,6 +1,6 @@ {   "slug": "fusion-bridge",-  "version": "1.9.139",+  "version": "1.9.140",   "type": "app",   "description": "This package installs the bridge's SKILLS into your container so your AI knows how to drive it; Adom Bridge loads the bridge runtime itself from the release zip.",   "dependencies": {@@ -11,6 +11,10 @@     "uninstall": "./uninstall.sh"   },   "tags": [+    "ab",+    "bridge",+    "fusion",+    "desktop-app",     "fusion360",     "autodesk",     "cad",@@ -70,7 +74,10 @@     "build a basic parts library",     "add a 3d model to a component",     "make a fusion 360 library with 3d",-    "set up the fusion bridge"+    "set up the fusion bridge",+    "fusion dashboard",+    "fusion status page",+    "open the fusion launch page"   ],   "discovery_pitch": "Use the Adom Bridge Fusion 360 bridge when the user wants to DRIVE Autodesk Fusion 360 from the cloud: open/search their team's Fusion cloud designs, lay out a PCB or do electronics, export STEP/IGES/STL/Gerbers/BOM, or build a component library with real rendering 3D. It runs Fusion on the user's own machine via Adom Bridge. NOT for web/browser/login/form-filling (that's the native-browser extension) and NOT for KiCad (that's the kicad bridge).",   "brief": "Drive Autodesk Fusion 360 from the cloud via Adom Bridge: component libraries, IPC package generation, board layout, exports (STEP/Gerbers/BOM/CPL), fast APS cloud search, and parametric modeling.",@@ -99,9 +106,5 @@       "label": "Part volume",       "prompt": "How much material does each printed part in this assembly use?"     }-  ],-  "author": {-    "name": "John Lauer",-    "email": "[email protected]"-  }+  ] }\ No newline at end of file
server.py+50−3
@@ -9214,6 +9214,31 @@ def _close_bridge_doc_verified(name: str, timeout_s: int = 30) -> dict:     n = str(name or "").rstrip("*").strip()     if not n:         return {"closed": False, "why": "no name"}+    # ⛔ NEVER CLOSE OVER AN IN-FLIGHT UPLOAD (John caught the dialog live, 2026-08-21:+    # "Packages are being uploaded to your Fusion Hub. If you close the document you will+    # lose these changes."). Create3DPackage/saveAs uploads continue AFTER the API call+    # returns, and a close issued during them raises exactly that modal - blocking the+    # main thread AND offering to destroy the upload. app.hasActiveJobs is the+    # deterministic signal; wait for it to drain (cap 120s) before touching the close.+    _jobs_deadline = _t.time() + 120+    while _t.time() < _jobs_deadline:+        try:+            jr = _proxy_to_addin("run_modeling_script",+                                 {"script": "import adsk.core\n"+                                            "result={'jobs': adsk.core.Application.get().hasActiveJobs}"},+                                 timeout=10)+            jd = (jr.get("data") or {}).get("result") or {}+            if not jd.get("jobs"):+                break+            print("[Fusion Bridge] close(%r): Fusion Hub upload in flight - waiting, not "+                  "closing (a close now would raise the lose-changes modal)" % n)+        except Exception:+            break  # cannot ask -> proceed; the dialog answer below is the backstop+        _t.sleep(5)+    else:+        return {"closed": False, "deferred": True,+                "why": "Fusion Hub uploads still active after 120s - close deferred so the "+                       "upload is not destroyed; retry after the jobs drain"}     try:         _proxy_to_addin("close_document", {"name": n, "save": False}, timeout=20)     except Exception:@@ -9403,11 +9428,17 @@ def _handle_prove_library(fusion_info: dict, args: dict) -> dict:             evidence.append(e3)             # HAND THE APP BACK (deterministic-close rule): the f3d doc is render scratch             # here; close it verified so stage 4 is not stranded in the wrong workspace.+            # Same upload gate as _close_bridge_doc_verified: closing over an in-flight+            # Hub upload raises the lose-changes modal (John saw it live, 2026-08-21).             try:-                _doc_name = _p3d_urn  # close the ACTIVE doc by script - name is urn-derived                 _proxy_to_addin("run_modeling_script",-                                {"script": "app.activeDocument.close(False)\nresult={}"},-                                timeout=20)+                                {"script": "import adsk.core, time\n"+                                           "app=adsk.core.Application.get()\n"+                                           "for _ in range(24):\n"+                                           "    if not app.hasActiveJobs: break\n"+                                           "    time.sleep(5)\n"+                                           "app.activeDocument.close(False)\nresult={}"},+                                timeout=140)             except Exception:                 pass         else:@@ -9982,6 +10013,22 @@ def dispatch_command(command: str, args: dict, caller_identity: dict = None) ->                     res["savePromptCleared"] = _sw.get("why")             except Exception:                 pass+            # Same chokepoint, second standing modal (John caught it on screen,+            # 2026-08-21): the Hub "packages are being uploaded... sure you want to+            # close?" confirm. "No" is ALWAYS the work-preserving answer - it cancels+            # the close, loses nothing, and the upload gates added today keep the+            # close from being re-raised until app.hasActiveJobs drains.+            try:+                for _d in (classify_blocking_dialogs() or []):+                    if _d.get("category") == "upload_in_progress":+                        _unwrap(_ad_call("desktop_ui_click",+                                         {"hwnd": _d.get("hwnd"), "name": "No"}, timeout=12))+                        if isinstance(res, dict):+                            res["uploadCloseDeclined"] = True+                        print("[Fusion Bridge] answered the Hub upload-close confirm with "+                              "No (work-preserving; close retried after jobs drain)")+            except Exception:+                pass     except Exception:         pass     try: