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
1.8.67: re-assert bottom post-goto, at load, and post-open_tab; the open's first cross-origin paint raised parked windows
5 files changed
+39−6
CHANGELOG.md+11@@ -1,5 +1,16 @@ # Changelog — Adom Desktop Puppeteer Bridge +## 1.8.67 — 2026-07-15 — Re-assert bottom after the open's navigation (the post-park raise)++Even with 1.8.66's z-confirmed park, the w3 batch sat on top with honest 'backgrounded' verdicts:+the open's FIRST cross-origin nav (file:// welcome → https) swaps renderer processes and Chromium+re-shows the window at first paint — raising it — and heavy sites paint AFTER the park's z-confirm+passed (the real goto runs concurrently with the park). A later same-window navigate does NOT+raise (tested), and neither does the badge (tested). Fix: re-assert z-bottom right after the+open's goto AND once more at the page 'load' event, plus after open_tab's new-tab first paint.+All re-asserts use force:false so a window the user is actively holding foreground is never+yanked. Verified: bottoming sticks once the page settles (8s watch, no spontaneous re-raise).+ ## 1.8.66 — 2026-07-15 — PLACEMENT DOCTRINE: verify the z-order, revert if unconfirmed 1.8.65's "fix" was worse: AD desktop_set_window_bounds ALSO raises the window (despite
adom-bridge-puppeteer-manifest.json+4−4@@ -1,10 +1,10 @@ { "manifest_version": 1, "name": "puppeteer",- "version": "1.8.66",- "url": "https://wiki.adom.inc/download/adom/adom-desktop-puppeteer-bridge/1.8.66/adom-bridge-puppeteer-v1.8.66.zip",- "sha256": "bceed814761cac4a65ec88b61f047c3ccfb1aa3703b9979d9b8dd7fbe4fe078c",- "size": 172778,+ "version": "1.8.67",+ "url": "https://wiki.adom.inc/download/adom/adom-desktop-puppeteer-bridge/1.8.67/adom-bridge-puppeteer-v1.8.67.zip",+ "sha256": "a6d71df3c83e192544bca95c1f1d8dc79b33971afc7dd61810a25890d886199d",+ "size": 173262, "verbPrefixes": [ "browser_", "desktop_recorder_",
src/BRIDGE_VERSION+1−1@@ -1 +1 @@-1.8.66+1.8.67
src/bridge.json+1−1@@ -2,7 +2,7 @@ "manifest_version": 1, "name": "puppeteer", "displayName": "Puppeteer (Chrome for Testing + Native)",- "version": "1.8.66",+ "version": "1.8.67", "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+22@@ -2148,6 +2148,18 @@ async function parkSessionWindowDirect(page, sessionId) { } } +// v1.8.67: re-assert z-bottom after a navigation settles. The OPEN's first cross-origin nav+// (file:// welcome → https real site) swaps renderer processes and Chromium re-shows the window+// at first paint — RAISING it — and heavy sites paint AFTER the park's z-confirm passed (the w3+// batch sat on top with honest 'backgrounded' verdicts; a later same-window navigate does NOT+// raise — tested). force:false so AD skips a window the user is actively holding foreground.+async function reassertBottomAfterNav(sessionId) {+ if (process.platform !== 'win32' || !sessionId) return;+ try {+ await chrome.adCommand('desktop_set_window_state', { titleContains: `(session: ${sessionId}`, state: 'bottom', force: false }, { timeoutMs: 5000 });+ } catch (e) {}+}+ // v1.8.57: SELF-HEAL a stranded window. A window created under a build whose park failed (or // any future placement bug) sits at its off-screen launch coords forever: its taskbar button // "activates" an invisible window and the badge is gone — exactly what happened to the@@ -2932,6 +2944,13 @@ async function launchSession(sessionId, url, { freshProfile = false, profile, st console.log(`[creds] applyCredentialsToPage on launchSession failed: ${e.message}`); } await page.goto(url, { waitUntil: 'domcontentloaded', timeout: 30000 });+ // v1.8.67: the first cross-origin nav re-shows the window at first paint (RAISES it),+ // often after the park's z-confirm already passed. Re-assert bottom now AND at the 'load'+ // event (late paints on heavy sites). force:false → never yanks a user-held window.+ if (!foreground && process.platform === 'win32') {+ reassertBottomAfterNav(sessionId).catch(() => {});+ try { page.once('load', () => { reassertBottomAfterNav(sessionId).catch(() => {}); }); } catch (e) {}+ } } // Belt and suspenders: close any tab in this Chrome that's NOT claimed by@@ -3994,6 +4013,9 @@ const server = http.createServer(async (req, res) => { // v1.8.57: long-lived-app touchpoint (see switch_tab) — heal a stranded window, // re-badge debounced (v1.8.58: only debounce on SUCCESS so failures retry). if (process.platform === 'win32') {+ // v1.8.67: a new tab's first paint can raise its window — re-assert (force:false+ // skips a user-held window).+ if (!session._foreground) reassertBottomAfterNav(sessionId).catch(() => {}); healOffscreenWindow(session, sessionId).catch(() => {}); const now = Date.now(); if (!session._badgedAt || now - session._badgedAt > 600000) {