← Commit history

1.8.80: tab-count overlay badge on the identity icon

John Lauer ·586f806e7f · ·parent c12fcbf
5 files changed +54−6
CHANGELOG.md+8
@@ -1,5 +1,13 @@ # Changelog — Adom Desktop Puppeteer Bridge +## 1.8.80 — 2026-07-18 — Tab-count overlay badge (differentiate pup windows at a glance)++John: an 8-tab review window and a 1-tab window are indistinguishable teal tiles. The overlay+slot (freed by the identity takeover) now shows the window's TAB COUNT for ≥2 tabs — dark+circle, white digit, 9+ cap, tooltip "Adom Pup — N tabs". No badge = 1 tab, so many-tab windows+pop out. Updated on open_tab / close_tab / popup auto-attach; only on identity-capable AD+(≥1.9.134) — older AD keeps the brand badge in that slot.+ ## 1.8.79 — 2026-07-18 — Brand sweep: no more mixed icon generations  Identity is per-HWND and stamped at birth, so windows born across rebrands/updates left the
adom-bridge-puppeteer-manifest.json+4−4
@@ -1,10 +1,10 @@ {   "manifest_version": 1,   "name": "puppeteer",-  "version": "1.8.79",-  "url": "https://wiki.adom.inc/download/adom/adom-desktop-puppeteer-bridge/1.8.79/adom-bridge-puppeteer-v1.8.79.zip",-  "sha256": "9a25953370fa3c3f05df7dad3562e00b50dc94fbe54b850f406c176c481c0a30",-  "size": 191566,+  "version": "1.8.80",+  "url": "https://wiki.adom.inc/download/adom/adom-desktop-puppeteer-bridge/1.8.80/adom-bridge-puppeteer-v1.8.80.zip",+  "sha256": "a2ab4c5e6d2c5ff0625e7160e1204d8b167ebbf0b63cc23508530eaeca8cabf8",+  "size": 205852,   "verbPrefixes": [     "browser_",     "desktop_recorder_",
src/BRIDGE_VERSION+1−1
@@ -1 +1 @@-1.8.79\ No newline at end of file+1.8.80\ No newline at end of file
src/bridge.json+1−1
@@ -2,7 +2,7 @@   "manifest_version": 1,   "name": "puppeteer",   "displayName": "Puppeteer (Chrome for Testing + Native)",-  "version": "1.8.79",+  "version": "1.8.80",   "description": "Drives a browser ALREADY on the machine \u2014 installed Chrome, else Microsoft Edge (every Windows PC ships with Edge) \u2014 launched with a FRESH isolated profile, so the common case has NO ~150 MB Chrome-for-Testing download and it never touches the user's real tabs/logins. Binds its local server to LOOPBACK (127.0.0.1) only, so no Windows Firewall 'allow Node through the firewall' prompt ever pops. Chrome for Testing is fetched only as a LAST RESORT if the machine has no Chromium browser at all. SPAWN-VERIFIED fallback: pup tries each detected browser (Chrome \u2192 Edge \u2192 CfT) and actually launches it, falling through to the next if one won't start (and handling browsers like Edge that relaunch onto another PID), so a corrupt/partial install never hard-fails an open. The browser that launches is cached as the default (persisted across restarts) so it isn't re-probed each time. On spawn the bridge SELF-WARMS: detects browsers + disk, and only if the box has no Chrome/Edge and no cached CfT does it background-fetch CfT so the first open is instant. browser_use pins a specific browser (chrome | edge | cft | auto); {browser:'chrome',install:true} downloads & installs REAL Google Chrome (user-scoped, no admin) on an Edge-only box. browser_readiness (READ-ONLY) reports which browser will be used + the full candidate list + the default + free disk. Every failure returns a specific errorCode + _hint (chrome_install_no_disk, chrome_download_network, chrome_install_permission, chrome_stable_not_detected, \u2026). Launches with FULL browser permissions by default for full debug (strictPermissions:true opts out). Headful automation: open/close windows+tabs, navigate, screenshot, eval JS, record. pup is a GENERIC, non-profile browser only \u2014 every session is a fresh isolated Chrome/Edge process, never the user's real signed-in browser; profile defaults to sessionId. To drive the user's REAL Chrome/Edge (their profile, cookies, SSO), use the Adom browser EXTENSION's nbrowser_* verbs \u2014 a separate bridge, not pup's job.",   "homepage": "https://wiki.adom.inc/adom/adom-desktop",   "author": "Adom Inc.",
src/server.js+40
@@ -353,6 +353,8 @@ function attachTab(session, sessionId, page, { makeActive = true, opener = 'user     } catch {}   }); +  // v1.8.80: any tab addition (incl. popup auto-attach) refreshes the tab-count badge+  setTimeout(() => { try { updateTabCountBadge(session, sessionId).catch(() => {}); } catch (e) {} }, 500);   return tabId; } @@ -1664,6 +1666,42 @@ async function stampPupIdentity(sessionId) {     return ok;   } catch (e) { return false; } }+// v1.8.80: TAB-COUNT overlay badge (John: "if the ai opens 8 tabs that makes that pup window+// unique"). The overlay slot is FREE on identity-capable AD (the base icon is the Adom Pup+// identity), so it now shows the window's tab count for >=2 tabs — dark circle, white digit,+// 9+ cap. NO badge = 1 tab, so a many-tab window is instantly distinguishable from its+// single-tab neighbors. On AD <1.9.134 (no identity) the overlay stays the pup brand badge —+// branding beats counting there. Updated on open_tab/close_tab/popup-attach; cleared at 1.+const _tabBadgeB64 = new Map(); // count-key -> base64 png (lazy)+function tabBadgeIcon(count) {+  const key = count > 9 ? '9plus' : String(count);+  if (_tabBadgeB64.has(key)) return _tabBadgeB64.get(key);+  try {+    const b = fs.readFileSync(path.join(__dirname, 'icons', 'tab-badges', `badge-${key}.png`)).toString('base64');+    _tabBadgeB64.set(key, b);+    return b;+  } catch (e) { return null; }+}+async function updateTabCountBadge(session, sessionId) {+  if (process.platform !== 'win32' || _identitySupported !== true) return; // overlay busy with brand badge on old AD+  try {+    const count = (session.tabs || []).length;+    if (count >= 2) {+      const icon = tabBadgeIcon(count);+      if (!icon) return;+      await chrome.adCommand('desktop_taskbar', {+        titleContains: `(session: ${sessionId}`,+        overlay: { icon, tooltip: `Adom Pup — ${count} tabs` },+      }, { timeoutMs: 5000 });+    } else {+      await chrome.adCommand('desktop_taskbar', {+        titleContains: `(session: ${sessionId}`,+        overlay: { badge: 'none' },+      }, { timeoutMs: 5000 });+    }+  } catch (e) {}+}+ // v1.8.79: BRAND SWEEP — unify every live window to the CURRENT identity art. Windows keep // the identity they were stamped with at birth (per-HWND, AD-cached HICON), so after an icon // rebrand or a bridge update the taskbar shows MIXED GENERATIONS (John caught a museum of@@ -4204,6 +4242,7 @@ const server = http.createServer(async (req, res) => {             const tab = getTabById(session, tabId);             recordAgentUpdate(session, 'browser_open_tab', args, tabId); // v1.8.23             scheduleAutoFlash(session, { silent: !!args.silent });+            updateTabCountBadge(session, sessionId).catch(() => {}); // v1.8.80             // v1.8.57: long-lived-app touchpoint (see switch_tab) — heal a stranded window,             // re-badge debounced (v1.8.58: only debounce on SUCCESS so failures retry).             if (process.platform === 'win32') {@@ -4306,6 +4345,7 @@ const server = http.createServer(async (req, res) => {           if (session.activeTabId === args.tabId) {             session.activeTabId = session.tabs.length > 0 ? session.tabs[session.tabs.length - 1].tabId : null;           }+          updateTabCountBadge(session, sessionId).catch(() => {}); // v1.8.80           sendJSON(res, { success: true, output: JSON.stringify({ ok: true, sessionId, closedTab: args.tabId, remaining: session.tabs.length, activeTabId: session.activeTabId }) });           return;         }