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.71: CfT-first hybrid pick order with background prewarm on branded fallback (#202), auth-URL steering hints (the Aditya incident)
6 files changed
+53−10
CHANGELOG.md+16@@ -1,5 +1,21 @@ # Changelog — Adom Desktop Puppeteer Bridge +## 1.8.71 — 2026-07-18 — CfT-first hybrid pick order (#202) + auth-URL steering (the Aditya incident)++- **Pick order flipped to: cached CfT → installed Chrome → Edge → CfT-download-last-resort.**+ Chrome for Testing is the automation-first binary with no profile/sync/sign-in machinery — the+ branded browsers' identity features bleed into pup's "anonymous" windows (the documented+ sign-in → profile-creation → consolidation → lost-user cascade). No first-open stall anywhere:+ a branded-fallback launch kicks a ONE-TIME background CfT install, so every box converges to+ deterministic CfT by its second session. `browser_use` still pins explicitly.+- **Codec caveat retired with evidence:** CfT (real Chrome build) decodes H.264/AAC/MP3/VP9+ ("probably" via canPlayType on a live box) — the gap was legacy Chromium's, not CfT's. Only+ Widevine DRM playback is out of scope.+- **Auth-URL steering:** opening/navigating to a known auth/login URL (Google, Microsoft, Okta,+ Auth0, GitHub, AWS, Apple, Salesforce, Atlassian, OpenAI, generic /oauth2/authorize) returns a+ 🔑 hint: pup is the anonymous sandbox — sign the USER in via abe (their real browser) or AD-core+ desktop_open_url (plain native launch) instead; continue in pup only for throwaway accounts.+ ## 1.8.70 — 2026-07-15 — THE FOREGROUND GATE (abe parity): reason required, recorded, auditable Real incident: a thread background-opened a window then raised it 2 minutes later; the raise verb
adom-bridge-puppeteer-manifest.json+5−5@@ -1,10 +1,10 @@ { "manifest_version": 1, "name": "puppeteer",- "version": "1.8.70",- "url": "https://wiki.adom.inc/download/adom/adom-desktop-puppeteer-bridge/1.8.70/adom-bridge-puppeteer-v1.8.70.zip",- "sha256": "4c5551d6ac2a45d49c826f96a19a4dd65aeac77e8fa14aab5dcb51bd4253b0bd",- "size": 175022,+ "version": "1.8.71",+ "url": "https://wiki.adom.inc/download/adom/adom-desktop-puppeteer-bridge/1.8.71/adom-bridge-puppeteer-v1.8.71.zip",+ "sha256": "cb0cf9c7636fe71e7d9b3e323827b3d2a838a8f9a27a0935dd1d7d7ad75bad7a",+ "size": 176234, "verbPrefixes": [ "browser_", "desktop_recorder_",@@ -12,5 +12,5 @@ ], "healthEndpoint": "/status", "statusVerb": "browser_readiness",- "released_at": "2026-07-15T00:00:00Z"+ "released_at": "2026-07-18T00:00:00Z" }
src/BRIDGE_VERSION+1−1@@ -1 +1 @@-1.8.70+1.8.71
src/bridge.json+1−1@@ -2,7 +2,7 @@ "manifest_version": 1, "name": "puppeteer", "displayName": "Puppeteer (Chrome for Testing + Native)",- "version": "1.8.70",+ "version": "1.8.71", "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/chrome.js+9−1@@ -177,9 +177,17 @@ function markVerified(cand) { // Each entry is a fully-launchable {kind, executablePath, source}. The launch path // tries them top-to-bottom and spawn-verifies each, so a broken top pick falls through. function launchCandidates() {- const all = [...listSystemBrowsers()];+ // v1.8.71 (wiki issue #202 + the Aditya/Google-auth incident): cached CfT comes FIRST.+ // CfT is the automation-first binary with NO profile/sync/sign-in machinery — the branded+ // browsers' identity features bleed into pup's "anonymous" windows (sign-in → "create a+ // profile?" → duplicate profiles → consolidation prompts → lost user). System browsers are+ // the zero-download fallback for a fresh box; a fallback launch triggers a background CfT+ // prewarm (server.js) so every box converges to CfT by its second session without ever+ // stalling a first open. browser_use still pins either direction explicitly.+ const all = []; const cft = detectChrome(); if (cft.installed) all.push({ kind: 'chrome-for-testing', executablePath: cft.executablePath, source: 'cache', buildId: cft.buildId });+ all.push(...listSystemBrowsers()); const def = readDefault(); if (def) {
src/server.js+21−2@@ -2320,6 +2320,15 @@ const MUTATING_VERBS = new Set(['browser_open_window', 'browser_open_tab', 'brow // Debounced auto-flash: one flash per window per ~5s burst of verbs, re-armed after // quiet. {silent:true} on the verb OR session._flashSilent (session default) suppresses.+// v1.8.71 (the Aditya/Google-auth incident): pup is the ANONYMOUS SANDBOXED browser — a user+// signing into a real account inside a pup window either gets lost on the next fresh window or+// (on a branded-browser fallback) triggers Chrome's profile-creation/consolidation machinery.+// When a caller opens a known auth/login URL, steer them to the right surface in the hint.+const AUTH_URL_RE = /accounts\.google\.com|login\.microsoftonline\.com|login\.live\.com|\.okta\.com|\.auth0\.com|github\.com\/login|signin\.aws\.amazon\.com|appleid\.apple\.com|login\.salesforce\.com|id\.atlassian\.com|auth\.openai\.com|\/o\/oauth2\/|\/oauth2?\/(v2\/)?auth(orize)?/i;+function authSteerHint(url) {+ if (!url || !AUTH_URL_RE.test(String(url))) return '';+ return ' 🔑 AUTH URL DETECTED: pup is the ANONYMOUS SANDBOXED browser — its profiles are disposable, so a login done here is easily lost (next fresh window = signed out), and it must not become the home of the user\'s identity. For signing the USER into their accounts prefer: (a) abe / nbrowser_* — their REAL browser where sessions + password manager already live, or (b) AD-core desktop_open_url — a plain native OS launch of their default browser (zero automation machinery; ideal for OAuth flows that just need the user to click Approve). Continue in pup ONLY for throwaway/test accounts or when the flow explicitly needs an anonymous context.';+} const _flashState = new Map(); // sessionId -> last flash ts function scheduleAutoFlash(session, opts) { opts = opts || {};@@ -2734,6 +2743,16 @@ async function getOrLaunchBrowser(profileName, { freshProfile = false, strictPer // Record what actually launched so the open response + hints are accurate, and // cache it as the auto-default so we don't re-probe next time. browser._pupChosen = { kind: chosen.kind, source: chosen.source, executablePath: chosen.executablePath || null };+ // v1.8.71 (#202): a BRANDED-browser launch means CfT wasn't cached — kick a background+ // CfT install (once per bridge process) so this box converges to the deterministic+ // CfT-first order by its next session. Never blocks or stalls the current open.+ if (chosen.kind !== 'chrome-for-testing' && !global._cftPrewarmKicked && process.platform === 'win32') {+ global._cftPrewarmKicked = true;+ try {+ console.log(`[prewarm] branded fallback (${chosen.kind}) — starting background CfT install so future opens use Chrome for Testing`);+ chrome.ensureChromeReady({ background: true });+ } catch (e) {}+ } _lastChosenBrowser = { ...browser._pupChosen, fallbackFrom: triedList.map(t => `${t.kind}(${t.source})`) }; if (chosen.executablePath) chrome.markVerified(chosen); if (triedList.length) console.log(`[launch] launched ${chosen.kind}(${chosen.source}) after ${triedList.length} browser(s) failed to spawn`);@@ -3913,7 +3932,7 @@ const server = http.createServer(async (req, res) => { reused: reuse ? { navigatedAway: reuse.navigatedAway, previousUrl: reuse.previousUrl, previousOwner: reuse.previousOwner, takeover: reuse.takeover } : null, owner: session.owner || null, foregroundDenied: fgDenied ? 'foreground_reason_required' : undefined,- _hint: `${fgDenyHint}${bgHint}${ownHint} ${brep._hint}${staleWindowsHint()}`,+ _hint: `${authSteerHint(args.url)}${fgDenyHint}${bgHint}${ownHint} ${brep._hint}${staleWindowsHint()}`, ...info, }), });@@ -5272,7 +5291,7 @@ const server = http.createServer(async (req, res) => { if (session.tabs.length === 1) { saveSessionFile(resolvedId, session.profileName, args.url); }- sendJSON(res, { success: true, output: JSON.stringify({ ok: true, url: args.url, sessionId: resolvedId, tabId }) });+ sendJSON(res, { success: true, output: JSON.stringify({ ok: true, url: args.url, sessionId: resolvedId, tabId, ...(authSteerHint(args.url) ? { _hint: authSteerHint(args.url).trim() } : {}) }) }); return; } case 'browser_readiness': {