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.42: throttle and pre-filter the drag-out check so event volume cannot turn it into a poll
5 files changed
+34−8
CHANGELOG.md+13@@ -1,5 +1,18 @@ # Changelog — Adom Desktop Puppeteer Bridge +## 1.9.42 — 2026-07-20 — Stop the "event-driven" drag check from behaving like a poll++Chasing a suspected false-split, the detector proved CORRECT (an untouched 3-tab control window was+checked repeatedly and every tab reported the same window id, no split; the earlier adom-tsci splits+were real drags). But the audit exposed a worse problem: 1360 window-opened events across 10 drains+in about a minute. A busy Windows desktop fires that event for tooltips, menus and task switching,+and every drain was running a per-tab CDP check across every multi-tab session, which is exactly the+wasteful polling this design was supposed to avoid.++Two cheap guards: skip entirely when no session has 2+ tabs (a single-tab window cannot be split),+and throttle the check to at most once every 1.5s regardless of event volume. Detection latency is+unchanged in practice since a real drag is followed by more events.+ ## 1.9.41 — 2026-07-20 — Self-audit of the live taskbar: two icon bugs found and fixed John: "look at your taskbar icons and audit yourself." Doing that on the real taskbar found two
adom-bridge-puppeteer-manifest.json+4−4@@ -1,10 +1,10 @@ { "manifest_version": 1, "name": "puppeteer",- "version": "1.9.41",- "url": "https://wiki.adom.inc/download/adom/adom-desktop-puppeteer-bridge/1.9.41/adom-bridge-puppeteer-v1.9.41.zip",- "sha256": "e7a6f37d433bd8a930746c8ef756e938fd981c959983e753aa4312ea873cc03f",- "size": 290954,+ "version": "1.9.42",+ "url": "https://wiki.adom.inc/download/adom/adom-desktop-puppeteer-bridge/1.9.42/adom-bridge-puppeteer-v1.9.42.zip",+ "sha256": "b1802e3492d22ba962ed3e9534c9d6e5e34fdd4b025457c2a6829860b3452377",+ "size": 291271, "verbPrefixes": [ "browser_", "desktop_recorder_",
src/BRIDGE_VERSION+1−1@@ -1 +1 @@-1.9.41+1.9.42
src/bridge.json+1−1@@ -2,7 +2,7 @@ "manifest_version": 1, "name": "puppeteer", "displayName": "Puppeteer (Chrome for Testing + Native)",- "version": "1.9.41",+ "version": "1.9.42", "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+15−2@@ -2381,6 +2381,7 @@ function adPayload(r) { } let _uiWatchId = null; let _uiWatchSeq = 0;+let _lastDragCheck = 0; // v1.9.42 throttle cursor for the drag-out check let _uiWatchSupported = null; // null = unprobed, false = AD too old async function ensureWindowOpenedWatch() { if (process.platform !== 'win32' || _uiWatchSupported === false || _uiWatchId) return;@@ -2493,8 +2494,20 @@ async function drainWindowOpenedEvents() { // needed event was seq 32 with name ""). Any window-opened is enough of a hint; the follow-up // check is cheap (one getWindowForTarget per tab, multi-tab sessions only) and idempotent. if (!evs.length) return;- console.log(`[drag] drained ${evs.length} window-opened event(s) (seq -> ${_uiWatchSeq}); checking ${sessions.size} session(s)`);- for (const [sid] of [...sessions]) { await adoptDraggedOutTabs(sid); }+ // v1.9.42: THROTTLE + PRE-FILTER. A busy desktop fires window-opened constantly (tooltips,+ // menus, task switching): 1360 events across 10 drains in ~a minute, measured live. Running the+ // per-tab CDP check on every drain turned an "event-driven" design into exactly the wasteful+ // polling it was meant to avoid. Two cheap guards, in order:+ // 1. Nothing multi-tab? A single-tab window cannot be split, so there is nothing to detect.+ // 2. At most one check per THROTTLE_MS, no matter how many events arrive.+ const splittable = [...sessions].filter(([, sess]) => (sess.tabs || []).length >= 2);+ if (!splittable.length) return;+ const THROTTLE_MS = 1500;+ const now = Date.now();+ if (now - _lastDragCheck < THROTTLE_MS) return;+ _lastDragCheck = now;+ console.log(`[drag] ${evs.length} event(s) -> checking ${splittable.length} multi-tab session(s)`);+ for (const [sid] of splittable) { await adoptDraggedOutTabs(sid); } } catch (e) {} } // v1.9.40: RE-TAG a page's title suffix to a NEW sessionId. An adopted (dragged-out) tab kept the