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
Inject the session title marker even when a page has no title, so title-less app pages stop making their window invisible to every branding call
4 files changed
+22−9
adom-bridge-puppeteer-manifest.json+4−4@@ -1,10 +1,10 @@ { "manifest_version": 1, "name": "puppeteer",- "version": "1.9.48",- "url": "https://wiki.adom.inc/download/adom/adom-desktop-puppeteer-bridge/1.9.48/adom-bridge-puppeteer-v1.9.48.zip",- "sha256": "0dc133d3c6fab96a03fefd2543a37a0fd5d26fcb61ae86eefc05b15404ffb53a",- "size": 297384,+ "version": "1.9.49",+ "url": "https://wiki.adom.inc/download/adom/adom-desktop-puppeteer-bridge/1.9.49/adom-bridge-puppeteer-v1.9.49.zip",+ "sha256": "35e08ce795e6794bb15b8edcf439fe3581fad4425f00a8fa188a4cdc3fb03ce9",+ "size": 297848, "verbPrefixes": [ "browser_", "desktop_recorder_",
src/BRIDGE_VERSION+1−1@@ -1 +1 @@-1.9.48+1.9.49
src/bridge.json+1−1@@ -2,7 +2,7 @@ "manifest_version": 1, "name": "puppeteer", "displayName": "Puppeteer (Chrome for Testing + Native)",- "version": "1.9.48",+ "version": "1.9.49", "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+16−3@@ -264,7 +264,10 @@ function scheduleCategoryRecheck(sessionId) { if (ok) { s._badgedAt = Date.now(); return; } await new Promise(r => setTimeout(r, 900 * (i + 1))); }- console.log(`[identity] "${sessionId}" post-navigation re-stamp exhausted retries (wanted ${cat})`);+ // Do NOT leave _lastCat claiming success: the stamp never landed, so the cached value would+ // suppress every future attempt and freeze the wrong icon permanently.+ s._lastCat = undefined;+ console.log(`[identity] "${sessionId}" post-navigation re-stamp exhausted retries (wanted ${cat}) — category cache cleared so a later trigger retries`); } catch (e) {} }, 1500)); }@@ -292,7 +295,16 @@ function attachTab(session, sessionId, page, { makeActive = true, opener = 'user // poisoned the whole bridge). Matching on the marker PREFIX makes it cooperate. const MARKER = ' (session: ' + sid; // no closing paren — matches both forms const BASE = ' (session: ' + sid + ')';- const ensure = () => { try { if (document.title && document.title.indexOf(MARKER) === -1) document.title += BASE; } catch (e) {} };+ // v1.9.49: do NOT require a pre-existing title. This guard used to be+ // if (document.title && ...)+ // so a page that never sets a <title> (plenty of app routes and SPA shells serve one) kept an+ // EMPTY title, the session marker was never injected, and the OS window title stayed a bare+ // "Google Chrome for Testing". AD resolves pup windows by their "(session: <id>)" suffix, so+ // that window became INVISIBLE to every branding call: identity stamp, category flip, overlay+ // and jump list all failed with "No visible window with title containing (session: ...)".+ // That is the failure behind icons that look stale or never update — the window was findable+ // right up until it navigated to a title-less page. An empty title must still get the marker.+ const ensure = () => { try { if (String(document.title || '').indexOf(MARKER) === -1) document.title = (document.title || '') + BASE; } catch (e) {} }; const observe = () => { const t = document.querySelector('title') || document.head || document.documentElement; if (!t) return false;@@ -2162,7 +2174,8 @@ async function updateTabCountBadge(session, sessionId) { if (ok) { session._badgedAt = Date.now(); return; } await new Promise(r => setTimeout(r, 900 * (i + 1))); }- console.log(`[identity] "${sessionId}" category re-stamp exhausted retries (wanted ${cat})`);+ session._lastCat = undefined; // same reason as above: never cache an unlanded stamp+ console.log(`[identity] "${sessionId}" category re-stamp exhausted retries (wanted ${cat}) — cache cleared`); })().catch(() => {}); } } catch (e) {}