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
Ship 1.9.44: write AUMID IconResource directly so taskbar icons cannot paint white, and prune leaked Adom.Pup registry keys
4 files changed
+72−7
adom-bridge-puppeteer-manifest.json+5−5@@ -1,10 +1,10 @@ { "manifest_version": 1, "name": "puppeteer",- "version": "1.9.43",- "url": "https://wiki.adom.inc/download/adom/adom-desktop-puppeteer-bridge/1.9.43/adom-bridge-puppeteer-v1.9.43.zip",- "sha256": "7d0ec1cdb1dd12708ed8c859346585f3f7e9776cd5a09d656cff7df104b6799e",- "size": 292050,+ "version": "1.9.44",+ "url": "https://wiki.adom.inc/download/adom/adom-desktop-puppeteer-bridge/1.9.44/adom-bridge-puppeteer-v1.9.44.zip",+ "sha256": "ff00ff9ec8fa0be1f6bc4a29a79e28a4fad9dcd34e8de24a66e8776119ce46ff",+ "size": 293536, "verbPrefixes": [ "browser_", "desktop_recorder_",@@ -13,4 +13,4 @@ "healthEndpoint": "/status", "statusVerb": "browser_readiness", "released_at": "2026-07-20T15:30:00Z"-}+}
src/BRIDGE_VERSION+1−1@@ -1 +1 @@-1.9.43+1.9.44
src/bridge.json+1−1@@ -2,7 +2,7 @@ "manifest_version": 1, "name": "puppeteer", "displayName": "Puppeteer (Chrome for Testing + Native)",- "version": "1.9.43",+ "version": "1.9.44", "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+65@@ -1861,6 +1861,9 @@ async function stampPupIdentity(sessionId) { const _registeredPupAumids = new Set(); async function registerPupAumid(appId, sessionId) { if (_identitySupported === false || appId === PUP_APP_ID || _registeredPupAumids.has(appId)) return;+ // v1.9.44: write IconResource FIRST, before the button can possibly exist. AD's registration does+ // not write it (see writeAumidIcon), and an AUMID with no icon is what paints white.+ writeAumidIcon(appId, pupIconPath(sessionId)); try { const r = await chrome.adCommand('desktop_register_app_identity', { appId, displayName: PUP_DISPLAY_NAME, iconPath: pupIconPath(sessionId), shortcut: false,@@ -1871,6 +1874,65 @@ async function registerPupAumid(appId, sessionId) { console.log(`[identity] registered AUMID ${appId} (registry-only, icon=${pupCategory(sessionId) || 'plain'})`); } catch (e) {} }+// v1.9.44 — WHY THE TASKBAR ICON GOES WHITE, and the fix. READ BEFORE TOUCHING ICON CODE.+//+// MEASURED on John's box: 129 of 129 HKCU AppUserModelId\Adom.Pup.* keys had IconResource = NULL.+// AD's desktop_register_app_identity ACCEPTS an iconPath but only materialises it when it also+// builds a Start Menu shortcut; with shortcut:false (our per-session path) the AUMID key is created+// with a DisplayName and NO IconResource at all. So the registry branded nothing, ever.+//+// Everything still LOOKED right because the per-window Relaunch* properties that+// desktop_set_window_identity sets do brand the button. But those are a RACE against Win11 baking+// the tile at button-creation time. Win the race -> correct icon. Lose it -> Windows has nothing to+// resolve for that AUMID and paints the GENERIC WHITE DOCUMENT. That is why the icon was white on+// ONE window (a long-lived session whose button predated its stamp) and correct on its siblings —+// it was never a category or icon-file problem, it was an unbranded AUMID plus a lost race.+//+// FIX: write IconResource into HKCU ourselves. HKCU needs no UAC, this bridge already runs ON the+// desktop (no AD roundtrip, no shell-approval prompt), and a registry value is not a race — it is+// there before and after the button exists. Keep the Relaunch* props too; they are what repaint a+// LIVE category flip. Belt and braces.+//+// If icons go white again, check IconResource FIRST (see pup-bridge-debug -> "white taskbar icon").+function writeAumidIcon(appId, iconPath) {+ if (process.platform !== 'win32' || !appId || !iconPath) return false;+ try {+ if (!fs.existsSync(iconPath)) { console.log(`[identity] icon MISSING on disk: ${iconPath}`); return false; }+ const key = `HKCU\\Software\\Classes\\AppUserModelId\\${appId}`;+ // ",0" selects the first frame. reg.exe is used directly (not PowerShell) — no window, no profile+ // load, ~10ms, and it creates the key if the AD registration has not landed yet.+ execFileSync('reg', ['add', key, '/v', 'IconResource', '/t', 'REG_SZ', '/d', `${iconPath},0`, '/f'],+ { encoding: 'utf8', timeout: 5000, windowsHide: true, stdio: 'ignore' });+ return true;+ } catch (e) { console.log(`[identity] IconResource write failed for ${appId}: ${e.message}`); return false; }+}+// v1.9.44: the AUMID keys LEAKED. A new key is minted per session per category, but only the+// immediately-superseded one is unregistered, and only in-process — so every bridge restart orphaned+// its whole set (129 keys had accumulated). Sweep on startup: drop any Adom.Pup.<sid>.* key whose+// <sid> is not a live session. Never touch the pinnable base id.+function pruneStaleAumids() {+ if (process.platform !== 'win32') return;+ try {+ const out = execFileSync('reg', ['query', 'HKCU\\Software\\Classes\\AppUserModelId'],+ { encoding: 'utf8', timeout: 8000, windowsHide: true });+ const live = new Set(sessions.keys());+ let dropped = 0;+ for (const line of out.split(/\r?\n/)) {+ const m = line.match(/\\(Adom\.Pup\.(.+))$/);+ if (!m) continue;+ const appId = m[1], rest = m[2];+ if (appId === PUP_APP_ID) continue; // the pinnable launcher stays+ const sid = rest.replace(/\.(wiki-in|wiki|app|web|mixed|plain)$/, '');+ if (live.has(sid)) continue;+ try {+ execFileSync('reg', ['delete', `HKCU\\Software\\Classes\\AppUserModelId\\${appId}`, '/f'],+ { encoding: 'utf8', timeout: 5000, windowsHide: true, stdio: 'ignore' });+ dropped++;+ } catch (e) {}+ }+ if (dropped) console.log(`[identity] pruned ${dropped} stale Adom.Pup.* AUMID key(s) from HKCU`);+ } catch (e) {}+} async function unregisterPupAumid(appId) { if (process.platform !== 'win32' || !appId || appId === PUP_APP_ID) return; _registeredPupAumids.delete(appId);@@ -7224,6 +7286,9 @@ server.listen(PORT, BIND_HOST, async () => { console.error('Session recovery failed:', e.message); } + // v1.9.44: sweep orphaned AUMID keys AFTER recovery, so live sessions are known and kept.+ try { pruneStaleAumids(); } catch (e) {}+ // Periodic cleanup: every 5 minutes, remove stale session files with dead PIDs setInterval(async () => { const files = listSessionFiles();