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.43: consistent favicon overlays (skip placeholders, retry, post-nav pass) and stop stacking session title suffixes
5 files changed
+58−13
CHANGELOG.md+20@@ -1,5 +1,25 @@ # Changelog — Adom Desktop Puppeteer Bridge +## 1.9.43 — 2026-07-20 — Why some icons had overlays and others did not, plus stacked session titles++John: "why do you sometimes have overlays on your icons and sometimes not?" It was never a rule, it+was a race and two silent failures. Measured on the live windows:++1. PLACEHOLDER FAVICONS. example.com declares <link rel="icon" href="data:,">. That fetched+ "successfully" as an empty blob, so the overlay was abandoned and /favicon.ico was never tried.+ Junk hrefs are now skipped before fetching.+2. NO RETRY, EVER. If the favicon had not loaded when the overlay ran, applyAppOverlay gave up+ silently and nothing re-ran it, so that window had no overlay for its whole life. It now retries+ once shortly after, logs when it finds nothing, and takes a second pass after navigation since+ many sites inject their icon link after first paint.+3. STACKED SESSION TITLES (the reason an adopted window kept the default icon). retagSessionTitle+ stripped only a TRAILING "(session: ...)", but the old session's MutationObserver had already+ re-appended its own, so the strip missed and we produced+ "BMV080 - Adom Wiki (session: thr) (session: thr-split1-mkh7)". The window still answered to the+ PARENT's suffix, collided with it, and its branding landed unreliably. Now every occurrence is+ stripped, and all title observers share one named handle so an adopted tab can disconnect the+ previous session's observer instead of fighting it forever.+ ## 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
adom-bridge-puppeteer-manifest.json+4−4@@ -1,10 +1,10 @@ { "manifest_version": 1, "name": "puppeteer",- "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,+ "version": "1.9.43",+ "url": "https://wiki.adom.inc/download/adom/adom-desktop-puppeteer-bridge/1.9.43/adom-bridge-puppeteer-v1.9.43.zip",+ "sha256": "7d0ec1cdb1dd12708ed8c859346585f3f7e9776cd5a09d656cff7df104b6799e",+ "size": 292050, "verbPrefixes": [ "browser_", "desktop_recorder_",
src/BRIDGE_VERSION+1−1@@ -1 +1 @@-1.9.42+1.9.43
src/bridge.json+1−1@@ -2,7 +2,7 @@ "manifest_version": 1, "name": "puppeteer", "displayName": "Puppeteer (Chrome for Testing + Native)",- "version": "1.9.42",+ "version": "1.9.43", "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+32−7@@ -2175,8 +2175,11 @@ function wikiViewHint(url, view, auth) { async function fetchPageFavicon(page) { try { return await page.evaluate(async () => {+ // v1.9.43: a page can declare a PLACEHOLDER icon (example.com ships <link href="data:,">),+ // which fetches "successfully" as an empty blob and killed the whole overlay. Drop obvious+ // junk before trying, and always keep /favicon.ico as the last resort. const links = Array.from(document.querySelectorAll('link[rel~="icon"], link[rel="shortcut icon"], link[rel="apple-touch-icon"]'));- const hrefs = links.map(l => l.href).filter(Boolean);+ const hrefs = links.map(l => l.href).filter(h => h && h !== 'data:,' && !/^data:,?$/.test(h)); hrefs.push(new URL('/favicon.ico', location.origin).href); for (const href of hrefs) { try {@@ -2202,7 +2205,19 @@ async function applyAppOverlay(session, sessionId) { const activePage = (activeTab && activeTab.page) || session.page; let src = session._appIconB64 ? { b64: session._appIconB64, mime: session._appIconMime || 'image/png' } : null; if (!src) src = await fetchPageFavicon(activePage);- if (!src || !src.b64) { session._appOverlay = false; return false; }+ if (!src || !src.b64) {+ // v1.9.43: RETRY once shortly after. The old code gave up silently on the first miss, so a+ // favicon that simply had not loaded yet meant NO overlay for the life of the window. That+ // is why some pup icons had overlays and others did not: it was a race, not a rule.+ if (!session._faviconRetried) {+ session._faviconRetried = true;+ setTimeout(() => { applyAppOverlay(session, sessionId).catch(() => {}); }, 2500);+ }+ console.log(`[overlay] "${sessionId}" no favicon on the active tab (retry ${session._faviconRetried ? 'queued' : 'done'})`);+ session._appOverlay = false;+ return false;+ }+ session._faviconRetried = false; // v1.9.16 (John's idea, and the right one): the favicon KEEPS the overlay slot — we only // recolour the PLATE it sits on. Signed in to the Adom wiki -> green plate; everything else // -> the normal dark plate. You still see which site you're on AND the wiki login state, and@@ -2522,7 +2537,11 @@ async function retagSessionTitle(page, sessionId, profileName) { : ` (session: ${sessionId})`; try { await page.evaluate((sfx) => {- const strip = (t) => String(t || '').replace(/\s*\(session:[^)]*\)\s*$/, '');+ // v1.9.43: strip EVERY "(session: ...)" occurrence, not just a trailing one. The old session's+ // observer had already re-appended its suffix, so a trailing-only strip missed and we stacked+ // two: "BMV080 (session: thr) (session: thr-split1-mkh7)". The window then still answered to+ // the PARENT's suffix, collided with it, and its own branding landed unreliably.+ const strip = (t) => String(t || '').replace(/\s*\(session:[^)]*\)/g, '').trim(); try { if (window.__pupTitleObs) { window.__pupTitleObs.disconnect(); window.__pupTitleObs = null; } } catch (e) {} document.title = strip(document.title) + sfx; const obs = new MutationObserver(() => {@@ -4118,13 +4137,17 @@ async function launchSession(sessionId, url, { freshProfile = false, profile, st ? ` (session: ${sessionId} | profile: ${profileName})` : ` (session: ${sessionId})`; await page.evaluate((suffix) => {- document.title = document.title + suffix;+ // v1.9.43: ONE named handle for the title observer. An adopted (dragged-out) tab must be able+ // to disconnect the PREVIOUS session's observer, or that observer keeps re-appending the old+ // suffix and fights every re-tag forever.+ const strip = (t) => String(t || '').replace(/\s*\(session:[^)]*\)/g, '').trim();+ try { if (window.__pupTitleObs) { window.__pupTitleObs.disconnect(); window.__pupTitleObs = null; } } catch (e) {}+ document.title = strip(document.title) + suffix; const obs = new MutationObserver(() => {- if (!document.title.endsWith(suffix)) {- document.title = document.title + suffix;- }+ try { if (!document.title.endsWith(suffix)) document.title = strip(document.title) + suffix; } catch (e) {} }); obs.observe(document.querySelector('title') || document.head, { childList: true, subtree: true, characterData: true });+ window.__pupTitleObs = obs; }, titleSuffix); } catch (e) { // Don't fail the session if title injection fails (e.g. about:blank)@@ -6613,6 +6636,8 @@ const server = http.createServer(async (req, res) => { } if (session && process.platform === 'win32') { setTimeout(() => { applyAppOverlay(session, resolvedId).catch(() => {}); }, 1500); // v1.8.92: new site, new favicon+ // v1.9.43: second pass — many sites inject their <link rel=icon> after first paint.+ setTimeout(() => { if (session) session._faviconRetried = false; applyAppOverlay(session, resolvedId).catch(() => {}); }, 4500); // v1.9.1: on an Adom nav, re-check auth (login may have completed since open) and // refresh the tab label so it becomes "🔓 Logged in" once actually authenticated. if (isAdomUrl(args.url)) {