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.238: Parking a window no longer fails when its shell handle is unknown: the CDP placement that already positioned it stands as the park and the shell re-bottom is skipped with one explanatory log line, instead of sending a title query that cannot match while title tagging is off and surfacing that as a failed lower.
4 files changed
+34−21
adom-bridge-puppeteer-manifest.json+5−5@@ -1,10 +1,10 @@ { "manifest_version": 1, "name": "puppeteer",- "version": "2.0.237",- "url": "https://wiki.adom.inc/download/adom/pup-bridge/2.0.237/adom-bridge-puppeteer-v2.0.237.zip",- "sha256": "5d5db7601516b19c50d73cd23d734504d29b3871dc27e5a5b5fc1954fe9473d1",- "size": 943827,+ "version": "2.0.238",+ "url": "https://wiki.adom.inc/download/adom/pup-bridge/2.0.238/adom-bridge-puppeteer-v2.0.238.zip",+ "sha256": "f86b223139a10e4317e2e2b15ebbb2c565bc4556b545f506e652073e24ae6751",+ "size": 944191, "verbPrefixes": [ "browser_", "desktop_recorder_",@@ -12,5 +12,5 @@ ], "healthEndpoint": "/status", "statusVerb": "browser_readiness",- "released_at": "2026-08-18T12:55:58.196810Z"+ "released_at": "2026-08-18T12:58:12.696755Z" }
src/BRIDGE_VERSION+1−1@@ -1 +1 @@-2.0.237+2.0.238
src/bridge.json+1−1@@ -2,7 +2,7 @@ "manifest_version": 1, "name": "puppeteer", "displayName": "Puppeteer (Chrome for Testing + Native)",- "version": "2.0.237",+ "version": "2.0.238", "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+27−14@@ -4336,6 +4336,7 @@ function cachedIconPng(file, decode) { return out; } catch (e) { return null; } }+const _parkNoHwndLogged = new Set(); // v2.0.237: log the no-handle park once per session const _threadTileInflight = new Map(); // name -> Promise (dedupe concurrent renders) // Render (or return cached) the .ico path for a thread name. v2.0.158: draw the tile on an OFFSCREEN // CANVAS inside an EXISTING session page (`page`) — the FG font is injected via the FontFace API — so@@ -7648,23 +7649,23 @@ async function enumChromeWidgetWindows(opts) { // is primary everywhere; titleContains remains ONLY as a last-ditch fallback for a window we somehow // never got a handle for. As birth-time capture + persistence cover every window, the fallback goes // cold and title stops mattering for targeting at all.+// v2.0.237: returns a REAL hwnd or null — never a title guess. Callers that can act without the+// shell (CDP geometry, for instance) use this so they can skip the ab round-trip entirely instead of+// sending a titleContains that cannot match while titleTag is off (its default).+async function windowHwnd(session, sessionId) {+ try {+ if (session && !session._hwnd) { await resolveSessionHwndByBounds(session, sessionId); }+ if (session && session._hwnd && await hwndBelongsToPup(session._hwnd, session)) return Number(session._hwnd);+ } catch (e) {}+ return null;+} async function windowTarget(session, sessionId) { try { if (session && !session._hwnd) { await resolveSessionHwndByBounds(session, sessionId); } if (session && session._hwnd && await hwndBelongsToPup(session._hwnd, session)) return { hwnd: Number(session._hwnd) };- // v2.0.237: second chance before the (usually doomed) title fallback — ask the OS for the- // largest visible window of THIS session's browser process tree. Bounds resolution can miss a- // window that is off-screen or mid-park, and titleTag is off by default, so without this a- // perfectly healthy window produced 'No visible window with title containing "(session: X)"'.- if (session) {- try {- const pid = macSessionPid(session);- if (pid) {- const h2 = await largestChromeWindowOfPidTree(pid);- if (h2) { session._hwnd = h2; return { hwnd: Number(h2) }; }- }- } catch (e) {}- }+ // (No pid-tree guess here: pup windows SHARE one Chrome process tree, so "the largest window of+ // this pid" is often a DIFFERENT session's window — parking or branding the wrong window is a+ // worse failure than reporting that we could not resolve this one.) } catch (e) {} // v2.0.228: titleTag defaults OFF (since the 2.0.20 hotfix), so this fallback CANNOT match any // window — it produced the mystifying 'No visible window with title containing "(session: X)"'@@ -8887,7 +8888,19 @@ async function parkSessionWindowDirect(page, sessionId) { // At launch, foreground is NOT a user signal (post-restart reassignment), so pup always // forces. On AD 1.9.114 the arg is ignored (skip-on-foreground) and the wasForeground // fallback below covers it; that fallback auto-obsoletes as desktops update.- const r = await chrome.abCommand('desktop_set_window_state', { ...(await windowTarget(sessions.get(sessionId), sessionId)), state: 'bottom', force: true }, { timeoutMs: 5000 , caller: sessionCaller(sessions.get(sessionId))});+ // v2.0.237: only ask the shell to re-bottom when we hold a real handle. Without one this+ // used to send a titleContains that cannot match (titleTag is off by default), and ab's+ // "No visible window with title containing (session: X)" surfaced as a FAILED pup_lower —+ // even though the CDP placement above had already parked the window correctly.+ const _hw = await windowHwnd(sessions.get(sessionId), sessionId);+ if (!_hw) {+ if (!_parkNoHwndLogged.has(sessionId)) {+ _parkNoHwndLogged.add(sessionId);+ console.log(`[park] "${sessionId}" no window handle resolved — CDP placement stands as the park; skipping the shell re-bottom (a title lookup cannot match with titleTag off).`);+ }+ return 'backgrounded';+ }+ const r = await chrome.abCommand('desktop_set_window_state', { hwnd: _hw, state: 'bottom', force: true }, { timeoutMs: 5000 , caller: sessionCaller(sessions.get(sessionId))}); if (r && r.success === false) return { ok: false, err: r.error || 'error' }; const raw = r && (typeof r.output === 'string' ? r.output : JSON.stringify(r.output || '')); const o = raw ? JSON.parse(raw) : {};