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
A badge must ALWAYS have a main icon (John: 'why does the first taskbar icon still not have a main overlay icon?'). The no-favicon path bailed out and left the button showing the bare Adom mark or nothing at all — which is what he kept seeing on the local-PDF/globe-page window. Chrome itself never shows nothing there; a faviconless page gets its generic globe. Now: (a) if the visible tab has no favicon, try the SIBLING tabs in that same window, since a multi-tab window usually has at least one real icon and that is far more informative than a placeholder; (b) if no tab has one, render a generic teal-on-dark globe glyph. Either way the badge keeps its structure — main image with the Adom mark inset flush in the lower-right — so every pup taskbar button looks alike instead of some being bare.
4 files changed
+42−10
adom-bridge-puppeteer-manifest.json+4−4@@ -1,10 +1,10 @@ { "manifest_version": 1, "name": "puppeteer",- "version": "1.9.204",- "url": "https://wiki.adom.inc/download/adom/adom-desktop-puppeteer-bridge/1.9.204/adom-bridge-puppeteer-v1.9.204.zip",- "sha256": "a05da4a88441e30d1db7ce76d6487273943b59587690fbb9c84bc9c3955e2bc5",- "size": 436491,+ "version": "1.9.205",+ "url": "https://wiki.adom.inc/download/adom/adom-desktop-puppeteer-bridge/1.9.205/adom-bridge-puppeteer-v1.9.205.zip",+ "sha256": "76535819ff2e8c1373078b7b37ec8265a9aacfae169426e79bd2e8180415aa7a",+ "size": 437271, "verbPrefixes": [ "browser_", "desktop_recorder_",
src/BRIDGE_VERSION+1−1@@ -1 +1 @@-1.9.204+1.9.205
src/bridge.json+1−1@@ -2,7 +2,7 @@ "manifest_version": 1, "name": "puppeteer", "displayName": "Puppeteer (Chrome for Testing + Native)",- "version": "1.9.204",+ "version": "1.9.205", "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. 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, browser_alert_window posts a native toast whose click focuses the window, browser_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-desktop", "author": "Adom Inc.",
src/server.js+36−4@@ -3924,10 +3924,42 @@ async function applyAppOverlay(session, sessionId) { // v1.9.71: log the missing-favicon case ONCE per session. It was emitted on every tab-badge // update, so a faviconless page produced a line per verb — non-consecutive, so the dedupe // collapser could not catch it. The fact is static per page; repeating it says nothing new.- if (!session._noFavLogged) { session._noFavLogged = true; console.log(`[overlay] "${sessionId}" no favicon on the active tab (retry ${session._faviconRetried ? 'queued' : 'done'})`); }- session._appOverlay = false;- session._overlayDesc = 'none (active tab serves no favicon)';- return false;+ if (!session._noFavLogged) { session._noFavLogged = true; console.log(`[overlay] "${sessionId}" no favicon on the active tab — trying sibling tabs, then the generic glyph`); }+ // v1.9.205 (John: "why does the first taskbar icon still not have a main overlay icon?"): a+ // badge must ALWAYS have a main image. Bailing out here left the button showing the bare Adom+ // mark (or nothing), which is exactly what he kept seeing. Chrome itself never shows "nothing" —+ // a faviconless page gets its generic globe. So: (a) try SIBLING tabs in this window, since a+ // multi-tab window usually has at least one real icon and that is far more informative than a+ // placeholder; (b) if none has one, draw a generic page/globe glyph. Either way the badge keeps+ // its structure — main image + Adom mark inset in the corner — so every pup button looks alike.+ try {+ for (const t of (session.tabs || [])) {+ if (!t || !t.page || t === activeTab || t._crashed) continue;+ const sib = await fetchPageFavicon(t.page).catch(() => null);+ if (sib && sib.b64) {+ console.log(`[overlay] "${sessionId}" using sibling tab ${t.tabId}'s favicon (active tab has none)`);+ src = sib;+ break;+ }+ }+ } catch (e) {}+ if (!src || !src.b64) {+ // Generic glyph: a teal-on-dark globe, same silhouette Chrome falls back to.+ const glyph = Buffer.from('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48">'+ + '<rect x="0" y="0" width="48" height="48" rx="10" fill="#123033"/>'+ + '<circle cx="24" cy="24" r="13" fill="none" stroke="#7de8e2" stroke-width="2.6"/>'+ + '<ellipse cx="24" cy="24" rx="5.5" ry="13" fill="none" stroke="#7de8e2" stroke-width="2.2"/>'+ + '<path d="M11 24 H37" stroke="#7de8e2" stroke-width="2.2"/></svg>');+ try {+ const sharpG = require('sharp');+ src = { b64: (await sharpG(glyph).resize(48, 48).png().toBuffer()).toString('base64'), mime: 'image/png', href: 'generic:no-favicon' };+ console.log(`[overlay] "${sessionId}" no favicon anywhere in this window — using the generic glyph so the badge is never bare`);+ } catch (e) {+ session._appOverlay = false;+ session._overlayDesc = 'none (no favicon and glyph render failed)';+ return false;+ }+ } } session._faviconRetried = false; // v1.9.16 (John's idea, and the right one): the favicon KEEPS the overlay slot — we only