← Commit history

v2.0.377: Consent-toast retract hardening: the retract now AWAITS ab's notify_dismiss and logs the actual dismissed result instead of assuming; [card] events join the investigation log ring so a timeout retract is verifiable from /status.

John Lauer ·5d6e709e69 ·1mo ago ·parent 3420f9b
5 files changed +21−13
adom-bridge-puppeteer-manifest.json+5−5
@@ -1,10 +1,10 @@ {   "manifest_version": 1,   "name": "puppeteer",-  "version": "2.0.376",-  "url": "https://wiki.adom.inc/download/adom/pup-bridge/2.0.376/adom-bridge-puppeteer-v2.0.376.zip",-  "sha256": "e36166c97f4fad6daa9dbd0fb487402dd014a833797e3e8599d78d9c127a949b",-  "size": 1545866,+  "version": "2.0.377",+  "url": "https://wiki.adom.inc/download/adom/pup-bridge/2.0.377/adom-bridge-puppeteer-v2.0.377.zip",+  "sha256": "c7291b39c3b956dd0ab2c1496635bc294f1b907dfd33c66943864bc36323c650",+  "size": 1545954,   "verbPrefixes": [     "browser_",     "desktop_recorder_",@@ -12,5 +12,5 @@   ],   "healthEndpoint": "/status",   "statusVerb": "browser_readiness",-  "released_at": "2026-09-02T15:43:23.837272Z"+  "released_at": "2026-09-02T15:47:32.688657Z" }
package.json+1−1
@@ -1,6 +1,6 @@ {   "slug": "pup-bridge",-  "version": "2.0.376",+  "version": "2.0.377",   "type": "app",   "description": "The pup SKILL PACK \u2014 the AI skills that teach a cloud/container AI how to drive the Adom Desktop Puppeteer (pup) bridge (browser_* verbs): the everyday `pup` skill plus focused sub-skills for windows/sessions/tabs, screenshots+recording, browsers+Chrome install, and driving the Adom wiki. Installs into ~/.claude/skills + ~/.codex/skills. DOCS ONLY \u2014 this is NOT the bridge runtime. The bridge itself (the Node program that drives the browser) runs on the DESKTOP: Adom Desktop bundles it and auto-installs/updates it, and it's published separately on the Releases tab as adom-bridge-puppeteer-v<ver>.zip. The pkg version is kept in lockstep with the Release version so the page's max version row always carries BOTH a pkg tarball (skills) and a runtime zip (bridge) \u2014 a skills-only or runtime-only bump on the top row breaks constraint installs. TL;DR: pkg install = the skills for your AI; the bridge = the Release zip, which Adom Desktop manages for you.",   "keywords": [
src/BRIDGE_VERSION+1−1
@@ -1 +1 @@-2.0.376\ No newline at end of file+2.0.377\ 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.376",+  "version": "2.0.377",   "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+13−5
@@ -58,7 +58,7 @@ const _logRing = []; const _loopRing = []; {   const _orig = console.log.bind(console);-  const EVENT_RE = /^\[(hwnd|birth|focus|foreground|caption|screenshot|settings|annotate|launch|visibility|health|reclaim|recovery|migrate|park|dialog|tab|credential)\]/;+  const EVENT_RE = /^\[(hwnd|birth|focus|foreground|caption|screenshot|settings|annotate|launch|visibility|health|reclaim|recovery|migrate|park|dialog|tab|credential|card)\]/;   console.log = (...a) => {     try {       const t = a.map(x => typeof x === 'string' ? x : JSON.stringify(x)).join(' ');@@ -19506,8 +19506,12 @@ const server = http.createServer(async (req, res) => {             // timeoutSec only bounds OUR wait. Without this retract, an expired consent toast             // stays on screen and a late click looks like an authorization pup already stopped             // listening for. On decline the user's own click dismissed it; on timeout WE must.-            if (!decision) { try { chrome.abCommand('notify_dismiss', { id: toastId }, { timeoutMs: 8000 }).catch(() => {}); } catch (e) {} }-            console.log(`[credential] reveal ${code.toUpperCase()} for ${host} by "${who}"${decision ? '' : ' — toast retracted'}`);+            let _dis = 'n/a';+            if (!decision) {+              try { const rr = await chrome.abCommand('notify_dismiss', { id: toastId }, { timeoutMs: 8000 }); const pp = abPayload(rr) || {}; _dis = String(pp.dismissed !== undefined ? pp.dismissed : (rr && rr.dismissed)); }+              catch (e) { _dis = 'error: ' + e.message; }+            }+            console.log(`[credential] reveal ${code.toUpperCase()} for ${host} by "${who}"${decision ? '' : ` — toast retract dismissed=${_dis}`}`);             sendJSON(res, { success: false, errorCode: code, error: code === 'consent_declined' ? 'the user declined on the desktop; nothing was revealed' : 'the user did not answer the consent toast within 120s; nothing was revealed', _hint: 'Do not retry in a loop. If the user wants this, they will click Reveal on the next ask.' });             return;           }@@ -19580,8 +19584,12 @@ const server = http.createServer(async (req, res) => {             const code = decision ? 'consent_declined' : 'consent_timeout';             // v2.0.376: retract the sticky toast on timeout (see the credential_reveal note) —             // an expired approval offer must not sit on screen looking clickable.-            if (!decision) { try { chrome.abCommand('notify_dismiss', { id: cardToastId }, { timeoutMs: 8000 }).catch(() => {}); } catch (e) {} }-            console.log(`[card] fill ${code.toUpperCase()} ${nickname} on ${merchant} by "${who}"${decision ? '' : ' — toast retracted'}`);+            let _dis = 'n/a';+            if (!decision) {+              try { const rr = await chrome.abCommand('notify_dismiss', { id: cardToastId }, { timeoutMs: 8000 }); const pp = abPayload(rr) || {}; _dis = String(pp.dismissed !== undefined ? pp.dismissed : (rr && rr.dismissed)); }+              catch (e) { _dis = 'error: ' + e.message; }+            }+            console.log(`[card] fill ${code.toUpperCase()} ${nickname} on ${merchant} by "${who}"${decision ? '' : ` — toast retract dismissed=${_dis}`}`);             sendJSON(res, { success: false, errorCode: code, error: code === 'consent_declined' ? 'the user declined the card fill on the desktop; nothing was filled' : 'the user did not answer the approval toast within 120s; nothing was filled', _hint: 'Do not retry in a loop. Tell the user what you were trying to buy and let them re-initiate.' });             return;           }