← Commit history

1.9.147: taskbar progress instead of orange flashes

John Lauer ·f068eef5ff ·1mo ago ·parent 64a8a2a
6 files changed +55−14
BRIDGE_VERSION+1−1
@@ -1 +1 @@-1.9.146\ No newline at end of file+1.9.147\ 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.146",-  "url": "https://wiki.adom.inc/download/adom/fusion-bridge/1.9.146/adom-bridge-fusion-v1.9.146.zip",-  "sha256": "75cd203533fc99a86b6487d5ac47537acc3c20bbcc104700affbcd26920a458b",-  "size": 478791,+  "version": "1.9.147",+  "url": "https://wiki.adom.inc/download/adom/fusion-bridge/1.9.147/adom-bridge-fusion-v1.9.147.zip",+  "sha256": "2764a73072e068bd443e204d270b6ebb748c53b2de7bf54d0ae571b0aa90aea0",+  "size": 479440,   "verbPrefixes": [     "fusion_"   ],
bridge.json+1−1
@@ -2,7 +2,7 @@   "manifest_version": 1,   "name": "fusion360",   "displayName": "Autodesk Fusion 360",-  "version": "1.9.146",+  "version": "1.9.147",   "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.168",+  "version": "1.9.169",   "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.168",+  "version": "1.9.169",   "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",@@ -75,7 +79,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.",@@ -104,9 +111,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+38
@@ -4015,6 +4015,34 @@ def _build_library_3d_core(args: dict) -> dict:     }  +def _taskbar_progress(pct=None):+    """Show REAL progress on Fusion's Windows-taskbar button instead of orange flashes+    (John, 2026-08-23: he keeps seeing attention-flash highlights and no progress bar).++    Windows flashes a BACKGROUND window's button orange whenever the app requests+    attention (every dialog Fusion raises while the bridge drives it does this). We+    cannot stop Fusion REQUESTING it - but we can (a) clear the flash the moment we+    have handled whatever raised it, and (b) replace the signal with an honest+    progress bar during chain stages, paced by this machine's measured estimates.+    pct=None clears the bar. Best-effort: never raises, silently no-ops without AD."""+    try:+        if not ad_client.available():+            return+        info = get_fusion_window_info() or {}+        hwnd = info.get("hwnd") or (info.get("mainWindow") or {}).get("hwnd")+        if not hwnd:+            return+        args = {"hwnd": int(hwnd), "flash": "stop"}+        if pct is None:+            args["progress"] = {"state": "none"}+        else:+            args["progress"] = {"state": "normal",+                                "value": max(1, min(100, int(pct))), "max": 100}+        ad_client.call("desktop_taskbar", args, timeout=4)+    except Exception:+        pass++ def _dismiss_dialogs_bg() -> list:     """Dismiss any blocking Fusion dialog in the BACKGROUND, without stealing focus. @@ -4077,6 +4105,7 @@ def _handle_dismiss_blocking_dialogs(fusion_info: dict, args: dict) -> dict:         hint += (" One was a Hub-UPLOAD 'lose these changes?' prompt: it was declined (No), but "                  "the upload is STILL in flight - poll app.hasActiveJobs (fusion_state) until it "                  "drains before any close/saveAs, or you WILL lose the 3D package.")+    _taskbar_progress(None) if not upload_active else _taskbar_progress(1)     return {"success": True, "count": len(answered), "dismissed": answered,             "uploadStillActive": upload_active, "_hint": hint} @@ -10384,15 +10413,23 @@ def _handle_create_library(fusion_info: dict, args: dict) -> dict:                           "confidence": _tmc.estimate("stage:" + n, f)[1]}                          for n, f, active in _STAGES if active]         state["stagesDone"] = []+        _est_by_stage = {p["stage"]: float(p.get("estimatedSec") or 1.0)+                         for p in state["plan"]}+        _est_total = sum(_est_by_stage.values()) or 1.0+        _est_done = [0.0]         def _enter(stage_name):             state["stage"] = stage_name             state["stageStartedAt"] = _tc.time()             _save()+            # honest taskbar progress instead of orange attention-flashes (2026-08-23)+            _taskbar_progress(100.0 * _est_done[0] / _est_total)         def _leave(stage_key):             took = _tc.time() - float(state.get("stageStartedAt") or _tc.time())             _tmc.log_run("stage:" + stage_key, took, ok=True)             state["stagesDone"] = state.get("stagesDone", []) + [                 {"stage": stage_key, "seconds": round(took, 1)}]+            _est_done[0] += _est_by_stage.get(stage_key, 0.0)+            _taskbar_progress(100.0 * _est_done[0] / _est_total)         try:             if _needs_launch:                 _enter("launching Fusion (add-in loads at start)")@@ -10460,6 +10497,7 @@ def _handle_create_library(fusion_info: dict, args: dict) -> dict:             if _LONG_OP.get("name") == "create_library:" + run_id:                 _LONG_OP["name"] = None                 _LONG_OP["since"] = 0.0+            _taskbar_progress(None)  # drop the bar + kill any lingering orange flash             # A BATCH MUST NOT NEED THE CALLER TO SWEEP BETWEEN PARTS (page issue #47,             # failure mode 5: unsaved library docs accumulated until the add-in stopped             # responding and one part's mess failed every part after it). Close THIS