← Commit history

1.9.2: register per-session AUMIDs registry-only (#207) so alt-tab and jumplist show the Adom icon; unregister on close

John Lauer ·9ea7d6cc31 · ·parent b7b6bc2
5 files changed +43−6
CHANGELOG.md+9
@@ -1,5 +1,14 @@ # Changelog — Adom Desktop Puppeteer Bridge +## 1.9.2 — 2026-07-19 — Register per-session AUMIDs (#207 shipped): Adom icon in alt-tab + jumplist++AD 1.9.136+ shipped #207 (desktop_register_app_identity {shortcut:false} + unregister). pup now+REGISTERS each split-mode per-session AUMID (Adom.Pup.<sessionId>) registry-only at window create,+so Alt-Tab and the taskbar right-click jumplist header resolve the Adom icon/name instead of+falling back to the chrome.exe icon. Unregistered on session close (no registry cruft, no Start+Menu spam). Self-gates on older AD. The base "Adom.Pup" stays the shortcut-registered pinnable+launcher; grouped mode already uses it.+ ## 1.9.1 — 2026-07-19 — Wiki mode label is now WORDS, and updates after login  John saw a bare 📖 emoji and had no idea what it meant; the logged-in window showed nothing at
adom-bridge-puppeteer-manifest.json+4−4
@@ -1,10 +1,10 @@ {   "manifest_version": 1,   "name": "puppeteer",-  "version": "1.9.1",-  "url": "https://wiki.adom.inc/download/adom/adom-desktop-puppeteer-bridge/1.9.1/adom-bridge-puppeteer-v1.9.1.zip",-  "sha256": "b19b2e1c45ec61336b81d27ecccab42d268ced423783a8d652fc50ccfbefb52c",-  "size": 209299,+  "version": "1.9.2",+  "url": "https://wiki.adom.inc/download/adom/adom-desktop-puppeteer-bridge/1.9.2/adom-bridge-puppeteer-v1.9.2.zip",+  "sha256": "3cacbd35ea273507b325a733c6dfe00cf7d2d18c67de6c4e917b3a86ea561aca",+  "size": 209828,   "verbPrefixes": [     "browser_",     "desktop_recorder_",
src/BRIDGE_VERSION+1−1
@@ -1 +1 @@-1.9.1\ No newline at end of file+1.9.2\ 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.9.1",+  "version": "1.9.2",   "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+28
@@ -1707,9 +1707,36 @@ async function stampPupIdentity(sessionId) {     const data = o.data || o;     const ok = !!(data.ok || (data.applied && data.applied.length));     if (ok) console.log(`[identity] "${sessionId}" stamped: ${(data.applied || []).join(',') || 'ok'}`);+    // v1.9.2 (#207, AD ≥1.9.136): REGISTER the per-session AUMID registry-only (shortcut:false)+    // so Alt-Tab + the taskbar right-click jumplist header resolve the Adom icon/name instead of+    // falling back to chrome.exe. Only the transient split-mode per-session id needs this; the+    // base "Adom.Pup" is already registered WITH a shortcut (the pinnable launcher). Unregistered+    // on session close (registerPerSessionAumid tracks it). Self-gates if the verb is absent.+    if (ok && pupSettings().taskbarGrouping !== 'grouped') {+      registerPerSessionAumid(`${PUP_APP_ID}.${sessionId}`).catch(() => {});+    }     return ok;   } catch (e) { return false; } }+const _registeredSessionAumids = new Set();+async function registerPerSessionAumid(appId) {+  if (_identitySupported === false || _registeredSessionAumids.has(appId) || appId === PUP_APP_ID) return;+  try {+    const r = await chrome.adCommand('desktop_register_app_identity', {+      appId, displayName: PUP_DISPLAY_NAME, iconPath: pupIconPath(), shortcut: false,+    }, { timeoutMs: 6000 });+    const raw = r && (typeof r.output === 'string' ? r.output : JSON.stringify(r.output || ''));+    if (_isUnknownVerb(r, raw)) return; // older AD without #207 — the per-window stamp still brands the taskbar button+    _registeredSessionAumids.add(appId);+    console.log(`[identity] registered per-session AUMID ${appId} (registry-only) — Alt-Tab/jumplist now show the Adom icon`);+  } catch (e) {}+}+async function unregisterPerSessionAumid(sessionId) {+  const appId = `${PUP_APP_ID}.${sessionId}`;+  if (process.platform !== 'win32' || !_registeredSessionAumids.has(appId)) return;+  _registeredSessionAumids.delete(appId);+  try { await chrome.adCommand('desktop_unregister_app_identity', { appId }, { timeoutMs: 5000 }); } catch (e) {}+} // 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,@@ -4505,6 +4532,7 @@ const server = http.createServer(async (req, res) => {           session.activeTabId = null;           sessions.delete(sessionId);           deleteSessionFile(sessionId);+          unregisterPerSessionAumid(sessionId).catch(() => {}); // v1.9.2 (#207): clean up the per-session AUMID registration            // Decrement refCount; kill browser if no sessions left using this profile           const be = browsers.get(profileName);