← Commit history

Immediate relief for the initials badge John kept seeing over the pup toolbar icon. Investigation found the adom-you Chrome stays warm across bridge restarts, never reloads staged extensions, and currently hosts other AI threads windows, so it must not be relaunched; the new pup_quit_idle_browsers verb correctly refused. Instead the health endpoint renames the session owner field to ownerThread: the stale worker paints its badge from that field every 30 seconds, so the rename starves the retired badge within one sweep with zero disruption to running windows. Extension 0.2.4 readers use the new field; ownership itself now lives directly visible in the tab title prefix

John Lauer ·0e5c852b18 ·2mo ago ·parent d370dda
7 files changed +14−10
adom-bridge-puppeteer-manifest.json+4−4
@@ -1,10 +1,10 @@ {   "manifest_version": 1,   "name": "puppeteer",-  "version": "2.0.99",-  "url": "https://wiki.adom.inc/download/adom/pup-bridge/2.0.99/adom-bridge-puppeteer-v2.0.99.zip",-  "sha256": "61c9bb27ed0092da8250ab24409a9c41d3ad41ced4261cd35401817903fb2a5a",-  "size": 845194,+  "version": "2.0.100",+  "url": "https://wiki.adom.inc/download/adom/pup-bridge/2.0.100/adom-bridge-puppeteer-v2.0.100.zip",+  "sha256": "210a76ea998e3cc711d89ad495325b0593296c2d82c52536e74cbe11b27f99e2",+  "size": 845363,   "verbPrefixes": [     "browser_",     "desktop_recorder_",
src/BRIDGE_VERSION+1−1
@@ -1 +1 @@-2.0.99+2.0.100
src/bridge.json+1−1
@@ -2,7 +2,7 @@   "manifest_version": 1,   "name": "puppeteer",   "displayName": "Puppeteer (Chrome for Testing + Native)",-  "version": "2.0.99",+  "version": "2.0.100",   "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/extension/manifest.json+1−1
@@ -1,7 +1,7 @@ {   "manifest_version": 3,   "name": "Adom Pup",-  "version": "0.2.3",+  "version": "0.2.4",   "description": "Toolbar for Adom Pup browser windows: annotate, snip, view toggle, dashboard, owner info. Thin trigger surface - the pup bridge is the engine.",   "action": {     "default_popup": "popup.html",
src/extension/popup.js+1−1
@@ -47,7 +47,7 @@ async function cmd(port, command, args) {   try {     const sessions = (health.sessions || []);     const hit = sessions.find(s => s.url && tab && tab.url && (s.url === tab.url || tab.url.startsWith((s.url || '').split('?')[0])));-    if (hit) { sid = hit.sessionId; owner = hit.owner || null; }+    if (hit) { sid = hit.sessionId; owner = hit.ownerThread || null; }   } catch (e) {}   ownerEl.innerHTML = owner ? 'owned by <b>' + owner.replace(/</g, '&lt;') + '</b>' : (sid ? sid : 'not a pup window');   // View toggle: label from the CHECKED auth state (pup verifies against the page, /health carries
src/extension/worker.js+1−1
@@ -28,7 +28,7 @@ async function sweepBadges() {     const hit = sessions.find(s => s.url && (s.url === tab.url || tab.url.startsWith((s.url || '').split('?')[0])));     try {       chrome.action.setBadgeText({ tabId: tab.id, text: '' });-      if (hit && hit.owner) chrome.action.setTitle({ tabId: tab.id, title: `Adom Pup — ${hit.owner}'s window` });+      if (hit && hit.ownerThread) chrome.action.setTitle({ tabId: tab.id, title: `Adom Pup — ${hit.ownerThread}'s window` });     } catch (e) {}   } }
src/server.js+5−1
@@ -11077,7 +11077,11 @@ const server = http.createServer(async (req, res) => {         try { pageUrl = s.page.url(); } catch (e) {}         // v2.0.51: owner + view ride /health so the toolbar extension can badge tabs per owning         // thread and label its view toggle without a heavier verb round-trip.-        sessionList.push({ sessionId: id, url: pageUrl, active: id === activeSessionId, owner: s.owner || s._ownerThread || null, view: s._wikiView || null, authed: (s._wikiAuthed === true ? true : (s._wikiAuthed === false ? false : null)) });+        // v2.0.100: field renamed owner -> ownerThread ON PURPOSE. Stale extension workers on+        // warm Chromes (which never reload their staged extensions) paint the retired initials+        // badge from this row's owner field every 30s; renaming it starves them within one sweep+        // without touching any thread's running windows. New extension readers use ownerThread.+        sessionList.push({ sessionId: id, url: pageUrl, active: id === activeSessionId, ownerThread: s.owner || s._ownerThread || null, view: s._wikiView || null, authed: (s._wikiAuthed === true ? true : (s._wikiAuthed === false ? false : null)) });       }       sendJSON(res, {         status: 'ok',