app
Pup - the AI's own browser
Public Made by Adomby adom
pup gives your AI a real browser on your desktop that it drives completely, in the background, signed in as you: windows that never jump in front of your work, one shared profile that learns your logins, and every window labeled on the taskbar with its AI thread's name.
← Commit history
v2.0.275: Close the AUMID registration race introduced with 2.0.271. Making the thread AUMID content-derived was right, but it created a new failure: if the shell builds a button for a brand-new AUMID BEFORE the IconResource write is visible, Windows caches 'no icon' against that AUMID and it stays blank forever, because the AUMID never changes again on its own. Measured on John's 'oven' button, which showed as a bare overlay badge on empty space while its .ico, its registry entry and its AUMID were all provably correct; only deleting the tile to force a fresh token brought the art back. The button rebuild now waits (up to 2.5s, then proceeds) until the AUMID's IconResource is present AND points at a real file, so the shell always has art to read at first paint.
4 files changed
+35−8
adom-bridge-puppeteer-manifest.json+5−5@@ -1,10 +1,10 @@ { "manifest_version": 1, "name": "puppeteer",- "version": "2.0.274",- "url": "https://wiki.adom.inc/download/adom/pup-bridge/2.0.274/adom-bridge-puppeteer-v2.0.274.zip",- "sha256": "fff78766aa3159fb6382cab085c65fd54193ee0b114ee1ede74e57c5eac7a01d",- "size": 963778,+ "version": "2.0.275",+ "url": "https://wiki.adom.inc/download/adom/pup-bridge/2.0.275/adom-bridge-puppeteer-v2.0.275.zip",+ "sha256": "0da881f99341d0cd09a1bb59f15b413d9160c2bbdb26f7521ee32481b330661b",+ "size": 964259, "verbPrefixes": [ "browser_", "desktop_recorder_",@@ -12,5 +12,5 @@ ], "healthEndpoint": "/status", "statusVerb": "browser_readiness",- "released_at": "2026-08-21T23:15:00.887094Z"+ "released_at": "2026-08-21T23:17:23.044195Z" }
src/BRIDGE_VERSION+1−1@@ -1 +1 @@-2.0.274+2.0.275
src/bridge.json+1−1@@ -2,7 +2,7 @@ "manifest_version": 1, "name": "puppeteer", "displayName": "Puppeteer (Chrome for Testing + Native)",- "version": "2.0.274",+ "version": "2.0.275", "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+28−1@@ -4230,7 +4230,7 @@ async function stampPupIdentity(sessionId, opts) { // of the user's active window would be disruptive — it heals on the next natural recreate). if (sess._threadNudged !== appId && _stampHwnd) { sess._threadNudged = appId;- setTimeout(() => { nudgeTaskbarButton(_stampHwnd, sessionId); }, 700);+ setTimeout(() => { nudgeWhenIconReady(_stampHwnd, sessionId, appId).catch(() => {}); }, 700); } } // v2.0.7: freeze the identity at this first real stamp — no re-stamp on later category changes.@@ -4851,6 +4851,33 @@ else { [EV]::ShowWindow($h,4)|Out-Null; if([EV]::IsWindowVisible($h)){ 'RESHOWN' }); } +// v2.0.275: has the shell got an icon to READ for this AUMID yet? Rebuilding a button before the+// IconResource write is visible is how a virgin AUMID gets "no icon" cached against it FOREVER —+// measured on John's "oven" button, which sat as a bare overlay badge on empty space while its+// .ico, its registry entry and its AUMID were all provably correct. Windows caches per AUMID, so+// there is no second chance: the button must not be built until the art is registered.+function aumidIconRegistered(appId) {+ if (process.platform !== 'win32' || !appId) return Promise.resolve(true);+ return new Promise((resolve) => {+ try {+ execFile('reg', ['query', `HKCU\\Software\\Classes\\AppUserModelId\\${appId}`, '/v', 'IconResource'],+ { windowsHide: true, timeout: 4000 }, (err, stdout) => {+ const m = /IconResource\s+REG_SZ\s+(.+)/i.exec(String(stdout || ''));+ if (!m) return resolve(false);+ const p2 = m[1].trim().replace(/,\d+\s*$/, '');+ try { resolve(fs.existsSync(p2) && fs.statSync(p2).size > 100); } catch (e) { resolve(false); }+ });+ } catch (e) { resolve(true); } // cannot check: do not block the nudge on our own failure+ });+}+async function nudgeWhenIconReady(hwnd, sessionId, appId) {+ for (let i = 0; i < 10; i++) { // up to ~2.5s, then proceed regardless+ if (await aumidIconRegistered(appId)) break;+ if (i === 0) console.log(`[thread-tile] "${sessionId}" holding the button rebuild until ${appId}'s icon is registered — building it first is what caches "no icon" against a virgin AUMID`);+ await new Promise(r => setTimeout(r, 250));+ }+ nudgeTaskbarButton(hwnd, sessionId);+} function nudgeTaskbarButton(hwnd, sessionId) { if (process.platform !== 'win32' || !hwnd) return; _nudgeUntil = Date.now() + 6000;