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.277: Tiles mode: every window wears a NAME TILE, never a category glyph - an owner-less/recovered window (issue #70) now derives a stable name tile via tileOwnerName() instead of downgrading to the pup category icon (fixes John's inconsistent taskbar icons).
4 files changed
+37−11
adom-bridge-puppeteer-manifest.json+5−5@@ -1,10 +1,10 @@ { "manifest_version": 1, "name": "puppeteer",- "version": "2.0.276",- "url": "https://wiki.adom.inc/download/adom/pup-bridge/2.0.276/adom-bridge-puppeteer-v2.0.276.zip",- "sha256": "a438158e6b1f3f7930773bd6c929b90447bd33550f4e5fe743f118e2cbd524f0",- "size": 964921,+ "version": "2.0.277",+ "url": "https://wiki.adom.inc/download/adom/pup-bridge/2.0.277/adom-bridge-puppeteer-v2.0.277.zip",+ "sha256": "658511e636e9af8a422146c3f69db0364893b4a19d212c33198fead04e7126ec",+ "size": 965577, "verbPrefixes": [ "browser_", "desktop_recorder_",@@ -12,5 +12,5 @@ ], "healthEndpoint": "/status", "statusVerb": "browser_readiness",- "released_at": "2026-08-22T16:29:16.144842Z"+ "released_at": "2026-08-22T17:27:26.487025Z" }
src/BRIDGE_VERSION+1−1@@ -1 +1 @@-2.0.276+2.0.277
src/bridge.json+1−1@@ -2,7 +2,7 @@ "manifest_version": 1, "name": "puppeteer", "displayName": "Puppeteer (Chrome for Testing + Native)",- "version": "2.0.276",+ "version": "2.0.277", "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+30−4@@ -3682,6 +3682,32 @@ function classifyUrl(u) { return 'web'; } catch (e) { return null; } }+// v2.0.277 — TILES MODE: EVERY window wears a NAME TILE, never a category glyph. Root of John's+// "inconsistent taskbar icons" (2026-08-22): a window that lost its owning ai-thread (recovered /+// reclaimed popup, issue #70) had `owner`/`_ownerThread` both empty, so the tile branches fell+// through to a category AUMID (`Adom.Pup.<sid>.<cat>`) and the button rendered the pup category+// icon sitting next to real thread tiles. This helper removes the downgrade: when the real owner is+// gone, derive a STABLE readable name from the sessionId (cleaned) and FREEZE it on the session, so+// the window still wears a name tile and never churns. Real owner always wins when present; the+// derived name is only a floor so tiles mode is visually consistent no matter what. (Persisting the+// real owner across recovery — the deeper #70 root — is separate; this makes the SYMPTOM+// unreachable regardless.)+function tileOwnerName(sess, sessionId) {+ if (!sess) return null;+ const real = sess.owner || sess._ownerThread;+ if (real) return real;+ if (sess._derivedTileName) return sess._derivedTileName;+ const sid = String(sessionId || sess.sessionId || '').trim();+ let name = sid+ .replace(/^adom-you-?/i, '') // strip the reclaimed-popup profile prefix+ .replace(/\bwin\d+\b/ig, '') // strip the random win<rand> suffix+ .replace(/[-_]+/g, ' ') // dashes/underscores -> spaces so the tile reads as words+ .replace(/\s+/g, ' ')+ .trim();+ if (!name) name = sid || 'pup';+ sess._derivedTileName = name;+ return name;+} // The window's category across ALL its tabs. One kind -> that kind. Several -> 'mixed'. function pupCategory(sessionId) { try {@@ -4016,7 +4042,7 @@ async function stampPupIdentity(sessionId, opts) { // window's identity does not depend on the page category at all, so do NOT wait for the category // to settle (and never mint a pre-registration intermediate id, below) — stamp the thread AUMID // as the FIRST and ONLY identity the button ever transitions to.- const _threadEligible = pupSettings().threadTiles === 'on' && sess && (sess.owner || sess._ownerThread);+ const _threadEligible = pupSettings().threadTiles === 'on' && sess && tileOwnerName(sess, sessionId); if (!grouped && !rawCat && !_threadEligible) { const hasRealUrlLoading = (sess && (sess.tabs || []).some(t => { try { const u = t.page && t.page.url(); return u && !/^(about:blank|chrome|edge|devtools):/i.test(u); } catch (e) { return false; }@@ -4042,7 +4068,7 @@ async function stampPupIdentity(sessionId, opts) { // thread name, so the whole thread collapses to a single named taskbar button. Takes precedence // over category/grouped/split. The dashboard keeps its own identity; a window with no owner // thread falls through to the normal modes.- const _thread = (!_dashInfra && pupSettings().threadTiles === 'on' && sess && (sess.owner || sess._ownerThread)) || null;+ const _thread = (!_dashInfra && pupSettings().threadTiles === 'on' && sess && tileOwnerName(sess, sessionId)) || null; let appId = _dashInfra ? `${PUP_APP_ID}.Dashboard.${PUP_ICON_GEN}` : _thread ? threadAumid(_thread) : _catGroup ? `${PUP_APP_ID}.${cat}.${PUP_ICON_GEN}`@@ -4113,7 +4139,7 @@ async function stampPupIdentity(sessionId, opts) { const _regEpoch = Number(pupSettings()._stripEpoch || 0); let _stampIcon = pupIconPath(sessionId), _stampName = pupDisplayName(sessionId), _cacheKey = `pup-${sessionId}-${cat}-e${_regEpoch}`; if (appId.startsWith(`${PUP_APP_ID}.thread.`)) {- const _tn = sess && (sess.owner || sess._ownerThread);+ const _tn = tileOwnerName(sess, sessionId); if (_tn) { // v2.0.157 THREAD TILES — render the name tile RIGHT HERE (stampPupIdentity always runs; the // registerPupAumid path was short-circuiting on already-registered appIds). Cached + deduped,@@ -4301,7 +4327,7 @@ async function registerPupAumid(appId, sessionId) { if (_threadAumid) { try { const s = sessions.get(sessionId);- const threadName = s && (s.owner || s._ownerThread);+ const threadName = tileOwnerName(s, sessionId); // Render on an existing page (no new window) — this session's tab, else any live tab. let _rp = s && (s.tabs || []).map(t => t && t.page).find(Boolean); if (!_rp) { outer2: for (const [, s2] of sessions) { for (const t2 of (s2.tabs || [])) { if (t2 && t2.page) { _rp = t2.page; break outer2; } } } }