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
v1.9.36: retrying refresh of identity, overlay and jump list on both sides of a drag-out so no stale favicon survives
5 files changed
+53−11
CHANGELOG.md+16@@ -1,5 +1,21 @@ # Changelog — Adom Desktop Puppeteer Bridge +## 1.9.36 — 2026-07-20 — Never leave a stale taskbar overlay after a drag-out++The drag-out adoption worked (John dragged a tab out and the new window took pup's identity), but+the window it LEFT kept showing the dragged site's favicon in its overlay even though that tab was+gone. Cause: the refresh was fire-and-forget, and a window whose tab set just changed (or a window+just created) is not findable by title for a beat, so the refresh silently no-oped.++New refreshWindowChrome(session, id) refreshes a window's whole taskbar presence together (identity+icon, favicon overlay, jump list) and RETRIES with backoff until the shell can see the window, then+logs loudly if it never can. Both sides of a drag-out use it: the adopted window and the source+window. The source also clears its cached category and overlay first, so a window that went from+mixed back to plain wiki actually repaints instead of short-circuiting on "same category".++John's rule, recorded: overlays must always be as up to date as they can be. A stale favicon is a+lie about what the window contains.+ ## 1.9.35 — 2026-07-20 — THE drag-out bug: AD answers in two shapes and pup only understood one Root cause found. AD's /command replies in TWO shapes depending on path and version: the relay wraps
adom-bridge-puppeteer-manifest.json+4−4@@ -1,10 +1,10 @@ { "manifest_version": 1, "name": "puppeteer",- "version": "1.9.35",- "url": "https://wiki.adom.inc/download/adom/adom-desktop-puppeteer-bridge/1.9.35/adom-bridge-puppeteer-v1.9.35.zip",- "sha256": "b6d2dccad42ea2ad1d93bd79a1070e6fbdd2ba7cde02edae0a2fa1f92637ade7",- "size": 285928,+ "version": "1.9.36",+ "url": "https://wiki.adom.inc/download/adom/adom-desktop-puppeteer-bridge/1.9.36/adom-bridge-puppeteer-v1.9.36.zip",+ "sha256": "2c228c1318e49fcbad9275367b737bc0b59e853246df36e68820adab12ea97fc",+ "size": 286361, "verbPrefixes": [ "browser_", "desktop_recorder_",
src/BRIDGE_VERSION+1−1@@ -1 +1 @@-1.9.35+1.9.36
src/bridge.json+1−1@@ -2,7 +2,7 @@ "manifest_version": 1, "name": "puppeteer", "displayName": "Puppeteer (Chrome for Testing + Native)",- "version": "1.9.35",+ "version": "1.9.36", "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+31−5@@ -2438,13 +2438,18 @@ async function adoptDraggedOutTabs(sessionId) { let u = null; try { u = t.page.url(); } catch (e) {} console.log(`[drag] "${sessionId}" tab dragged out → adopted as session "${newId}" (${(u || '').slice(0, 60)})`); adopted++;- // Brand the new window: its own identity, CATEGORY icon, overlay and jump list.- try { await brandPupWindow(newId); } catch (e) {}- try { await updateTabCountBadge(ns, newId); } catch (e) {}- try { await updateWikiJumplist(ns, newId); } catch (e) {}+ // Brand the new window: its own identity, CATEGORY icon, overlay and jump list. Retried,+ // because a freshly created window is not findable by title for a beat.+ refreshWindowChrome(ns, newId).catch(() => {}); try { saveSessionFile(newId, ns.profileName, u); } catch (e) {} }- if (adopted) { try { await updateTabCountBadge(session, sessionId); } catch (e) {} }+ if (adopted) {+ // The SOURCE window lost a tab: its category may have changed (mixed -> wiki) and its overlay+ // favicon may belong to the tab that just left. Force a full, retried refresh.+ session._lastCat = undefined; // defeat the same-category short-circuit+ _appOverlayCache.delete(sessionId + ':explicit');+ refreshWindowChrome(session, sessionId).catch(() => {});+ } } catch (e) { console.log(`[drag] adopt threw: ${e.message}`); } return adopted; }@@ -2469,6 +2474,27 @@ async function drainWindowOpenedEvents() { for (const [sid] of [...sessions]) { await adoptDraggedOutTabs(sid); } } catch (e) {} }+// v1.9.36: refresh EVERYTHING a window's taskbar presence shows (identity icon, favicon overlay,+// jump list) and RETRY until the shell can actually see the window. John: "you can't be lazy about+// those overlay icons, always make sure they are as up to date as you can get them." A brand-new+// window (a drag-out, a relaunch) is not findable by title for a beat, so a single fire-and-forget+// refresh silently no-ops and leaves a STALE overlay: after a drag-out the remaining window kept+// showing the dragged site's favicon even though that tab was gone.+async function refreshWindowChrome(session, sessionId, tries = 5) {+ if (process.platform !== 'win32' || !session) return false;+ for (let i = 0; i < tries; i++) {+ let ok = false;+ try { ok = await brandPupWindow(sessionId); } catch (e) {}+ if (ok) {+ try { await updateTabCountBadge(session, sessionId); } catch (e) {}+ try { await updateWikiJumplist(session, sessionId); } catch (e) {}+ return true;+ }+ await new Promise(r => setTimeout(r, 600 * (i + 1)));+ }+ console.log(`[chrome] "${sessionId}" could not refresh taskbar presence (window never became findable)`);+ return false;+} // Brand a pup window: full identity on capable AD, overlay badge fallback on older AD. async function brandPupWindow(sessionId) { const stamped = await stampPupIdentity(sessionId);