← Commit history

v2.0.271: THE AUMID IS THE ICON CACHE KEY. John's Bills window showed category art while every link in pup's chain was provably correct. Measured in order on that one window: AUMID registered with IconResource pointing at the right .ico; the .ico itself rendering the Bills name tile at 16/32/48/256; threadTiles off/on full re-register -> unchanged; registration-epoch bump for a fresh ab cacheKey -> unchanged; WM_SETICON with the tile on the window itself -> unchanged; stamping a NOVEL AUMID string -> correct instantly. Windows caches a taskbar button's icon per AppUserModelID, so repointing a seen AUMID at new art is ignored and only a virgin AUMID can move it. THREAD_TILE_GEN already encoded that but is hand-edited, so it cannot react when a tile is re-rendered, which is exactly when the art changes. The thread AUMID now folds in a hash of the tile's CONTENT: identical bytes give an identical AUMID (stable across restarts, no button churn), a re-rendered tile gives a virgin AUMID and the shell is structurally forced to re-read the art. Wrong art becomes unreachable rather than something the audit has to catch after the fact.

John Lauer ·ce241f7a6c ·2mo ago ·parent 28f7cec
4 files changed +36−11
adom-bridge-puppeteer-manifest.json+5−5
@@ -1,10 +1,10 @@ {   "manifest_version": 1,   "name": "puppeteer",-  "version": "2.0.270",-  "url": "https://wiki.adom.inc/download/adom/pup-bridge/2.0.270/adom-bridge-puppeteer-v2.0.270.zip",-  "sha256": "f39d36e74bcbea81873697a7351f29ad5ad887c76cfa72f909771c4c1c55d789",-  "size": 961323,+  "version": "2.0.271",+  "url": "https://wiki.adom.inc/download/adom/pup-bridge/2.0.271/adom-bridge-puppeteer-v2.0.271.zip",+  "sha256": "1e41d310fd196ef2ef0dbd5b153cc9b3a740bb3ad80ba4b8ec47152e378d451e",+  "size": 961874,   "verbPrefixes": [     "browser_",     "desktop_recorder_",@@ -12,5 +12,5 @@   ],   "healthEndpoint": "/status",   "statusVerb": "browser_readiness",-  "released_at": "2026-08-21T18:44:30.225037Z"+  "released_at": "2026-08-21T18:53:46.411785Z" }
src/BRIDGE_VERSION+1−1
@@ -1 +1 @@-2.0.270\ No newline at end of file+2.0.271\ 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": "2.0.270",+  "version": "2.0.271",   "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. pup_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. pup_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. macOS (v1.9.74+): full parity with mac-native mechanics \u2014 background-by-default is the app-level hide (windows stay drivable/screenshottable while hidden), raise/lower map to unhide+activate/hide, pup_alert_window posts a native toast whose click focuses the window, pup_use {browser:'chrome',install:true} installs Chrome from the official dmg, and taskbar identity/badging remains Windows-only.",   "homepage": "https://wiki.adom.inc/adom/adom-bridge",   "author": "Adom Inc.",
src/server.js+29−4
@@ -4044,7 +4044,7 @@ async function stampPupIdentity(sessionId, opts) {     // thread falls through to the normal modes.     const _thread = (!_dashInfra && pupSettings().threadTiles === 'on' && sess && (sess.owner || sess._ownerThread)) || null;     let appId = _dashInfra ? `${PUP_APP_ID}.Dashboard.${PUP_ICON_GEN}`-      : _thread ? `${PUP_APP_ID}.thread.${threadSlug(_thread)}.${THREAD_TILE_GEN}`+      : _thread ? threadAumid(_thread)       : _catGroup ? `${PUP_APP_ID}.${cat}.${PUP_ICON_GEN}`       : grouped ? PUP_APP_ID       : `${PUP_APP_ID}.${sessionId}.${cat}.${PUP_ICON_GEN}`;@@ -4404,6 +4404,31 @@ function threadSlug(name) {   const h = require('crypto').createHash('sha1').update(String(name || '')).digest('hex').slice(0, 6);   return `${s}-${h}`; }+// v2.0.271 — THE AUMID IS THE ICON CACHE KEY. Proven on John's "Bills" window (2026-08-21):+// Windows caches a taskbar button's icon PER AppUserModelID. Once the shell has drawn an AUMID with+// one icon, repointing that AUMID at new art is IGNORED. Measured, in order, all on the same window:+//   * the AUMID was registered and its IconResource pointed at the correct .ico+//   * the .ico itself rendered the "Bills" name tile correctly at 16/32/48/256+//   * a threadTiles off/on full re-register            -> art unchanged+//   * bumping the registration epoch (fresh ab cacheKey) -> art unchanged+//   * WM_SETICON with the tile on the window itself     -> art unchanged+//   * stamping a NOVEL AUMID string                     -> art CORRECT, instantly+// So the only thing that can move a wrong icon is a VIRGIN AUMID. THREAD_TILE_GEN already encodes+// that ("Gen bump = virgin AUMIDs"), but it is a hand-edited constant, so it cannot react when a+// thread's tile is re-rendered — which is exactly when the art changes and the shell must be told.+// Fold the tile's CONTENT into the AUMID: same tile bytes -> same AUMID (stable across restarts,+// no button churn); re-rendered tile -> virgin AUMID -> the shell is structurally forced to re-read+// the art. This is what makes wrong art unreachable instead of something an audit must notice.+function threadTileToken(name) {+  try {+    const st = fs.statSync(path.join(THREAD_TILE_DIR, `${threadSlug(name)}.ico`));+    const sig = `${Math.round(st.mtimeMs)}-${st.size}`;+    return 'i' + require('crypto').createHash('sha1').update(sig).digest('hex').slice(0, 6);+  } catch (e) { return ''; }   // no tile yet: plain gen AUMID; the stamp bails until the art exists+}+function threadAumid(name) {+  return `${PUP_APP_ID}.thread.${threadSlug(name)}.${THREAD_TILE_GEN}${threadTileToken(name)}`;+} // Wrap a 256x256 PNG buffer into a multi-size .ico (256/48/32/16, each a PNG-compressed entry — the // modern ICO form Windows Vista+ reads). sharp does the downscales (available on the desktop). async function pngToIco(png256) {@@ -4592,7 +4617,7 @@ function pruneStaleAumids() {     for (const sf of listSessionFiles()) {       if (sf && sf.appId) liveAppIds.add(sf.appId);       const _own = sf && sf.owner;-      if (_own) liveAppIds.add(`${PUP_APP_ID}.thread.${threadSlug(_own)}.${THREAD_TILE_GEN}`);+      if (_own) liveAppIds.add(threadAumid(_own));     }   } catch (e) {}   try {@@ -5182,7 +5207,7 @@ async function refreshAllJumplists() {     try {       let appId = s._curAppId;       if (!appId && pupSettings().threadTiles === 'on' && (s.owner || s._ownerThread)) {-        appId = `${PUP_APP_ID}.thread.${threadSlug(s.owner || s._ownerThread)}.${THREAD_TILE_GEN}`;   // v2.0.198: the button exists even when the stamp never landed+        appId = threadAumid(s.owner || s._ownerThread);   // v2.0.198: the button exists even when the stamp never landed       }       if (!appId) continue;       if (off) {@@ -5266,7 +5291,7 @@ async function updateWikiJumplist(session, sessionId, opts) {   // So derive it and attach the tasks to it directly: the menu works even when stamping cannot.   let _jlAppId = (opts && opts.appId) || (session && session._curAppId) || null;   if (!_jlAppId && session && pupSettings().threadTiles === 'on' && (session.owner || session._ownerThread)) {-    _jlAppId = `${PUP_APP_ID}.thread.${threadSlug(session.owner || session._ownerThread)}.${THREAD_TILE_GEN}`;+    _jlAppId = threadAumid(session.owner || session._ownerThread);   }   const appId = _jlAppId || `${PUP_APP_ID}.${sessionId}`;   let url = null; try { url = (session.page && session.page.url()) || null; } catch (e) {}