← Commit history

v2.0.263: Overlay badge size becomes a real PERCENT and gains 66, now the default (John tried 50 and asked to try 66). overlayScalePct() parses and clamps the stored value to 25-100 so a bad value can never composite a zero-size, invisible badge, and adding another stop is now a one-word change rather than a new branch. Options 50 | 66 | 100 across the dashboard dropdown, the set-setting whitelist and pup_configure.

John Lauer ·8f1b7ff311 ·2mo ago ·parent 563e493
4 files changed +24−15
adom-bridge-puppeteer-manifest.json+5−5
@@ -1,10 +1,10 @@ {   "manifest_version": 1,   "name": "puppeteer",-  "version": "2.0.262",-  "url": "https://wiki.adom.inc/download/adom/pup-bridge/2.0.262/adom-bridge-puppeteer-v2.0.262.zip",-  "sha256": "32f2f6533ed4e82b5aca535a1860c31e195697600c232b5dee6f5fcb84a96d73",-  "size": 959307,+  "version": "2.0.263",+  "url": "https://wiki.adom.inc/download/adom/pup-bridge/2.0.263/adom-bridge-puppeteer-v2.0.263.zip",+  "sha256": "c058ade5cbde7736b490a89f9a941084b6f023897dc01ee263831017c99ffa38",+  "size": 959652,   "verbPrefixes": [     "browser_",     "desktop_recorder_",@@ -12,5 +12,5 @@   ],   "healthEndpoint": "/status",   "statusVerb": "browser_readiness",-  "released_at": "2026-08-21T00:15:39.513208Z"+  "released_at": "2026-08-21T00:17:56.816854Z" }
src/BRIDGE_VERSION+1−1
@@ -1 +1 @@-2.0.262\ No newline at end of file+2.0.263\ No newline at end of file
src/bridge.json+1−1
@@ -2,7 +2,7 @@   "manifest_version": 1,   "name": "puppeteer",   "displayName": "Puppeteer (Chrome for Testing + Native)",-  "version": "2.0.262",+  "version": "2.0.263",   "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+17−8
@@ -3497,8 +3497,9 @@ function pupSettings() {               // super valuable so i want to be able to see it"). '50' composites the same badge at half               // scale inside the same canvas, so Windows draws it half-size in the corner and the tile               // text stays readable. DEFAULT is '50' — the readable one — with '100' available for-              // anyone who wants the big badge back.-              overlaySize: '50',+              // anyone who wants the big badge back. v2.0.263: John tried 50 and asked for 66 — the+              // value is a straight PERCENT now, so adding another stop is a one-word change.+              overlaySize: '66',               aumidIconStyle: 'category', taskbarGrouping: 'split',               // v2.0.152 THREAD TILES (John): group every pup window/tab of one ai-thread under ONE               // taskbar button whose icon is that thread's NAME rendered on the teal tile (Familjen@@ -5119,6 +5120,13 @@ if (process.platform === 'win32') { // A progress-tracker edit landed in both copies but its variable was declared in only one, so every // pup_configure toggle threw "ReferenceError: _obApply is not defined" as an unhandled rejection. // One implementation now; `track` carries the progress entry when the caller made one.+// v2.0.263: the badge scale as a PERCENT of full size. Stored as a string so it rides the same+// settings/whitelist plumbing as every other key; clamped here so a bad value can never produce a+// zero-size (invisible) badge.+function overlayScalePct() {+  const n = parseInt(String(pupSettings().overlaySize || '66'), 10);+  return (Number.isFinite(n) && n >= 25 && n <= 100) ? n : 66;+} async function applyOverlayBadgeSetting(val, track) {   try {     for (const [sid, sess] of [...sessions]) {@@ -6513,7 +6521,7 @@ async function applyAppOverlay(session, sessionId) {     // icons. Keying on BRIDGE_VERSION makes any new build rebuild its badges.     // v2.0.262: overlaySize is part of the key — without it, flipping the setting would serve the     // previously-composited badge from cache and nothing would visibly change.-    const cacheKey = BRIDGE_VERSION + ':' + sessionId + ':' + (src.href || 'explicit') + ':' + (plateAuthed ? 'auth' : 'plain') + ':' + (pupSettings().aumidIcons === 'on' ? 'nomark' : 'mark') + ':sz' + (pupSettings().overlaySize === '100' ? '100' : '50');+    const cacheKey = BRIDGE_VERSION + ':' + sessionId + ':' + (src.href || 'explicit') + ':' + (plateAuthed ? 'auth' : 'plain') + ':' + (pupSettings().aumidIcons === 'on' ? 'nomark' : 'mark') + ':sz' + overlayScalePct();     let overlay = _appOverlayCache.get(cacheKey);     if (!overlay) {       let sharpMod = null;@@ -6655,8 +6663,9 @@ async function applyAppOverlay(session, sessionId) {           // on glass is a badge half the size, tucked in the corner, with the tile text clear.           // Anchored NORTHEAST: the tile draws its name from the BOTTOM-LEFT, so the far corner from           // the text is where the badge does the least damage.-          if (pupSettings().overlaySize !== '100') {-            const _h = Math.round(BSZ / 2);+          const _pct = overlayScalePct();+          if (_pct < 100) {+            const _h = Math.max(8, Math.round(BSZ * _pct / 100));             const _small = await sharpMod(_built).resize(_h, _h, { fit: 'cover' }).png().toBuffer();             _built = await sharpMod({ create: { width: BSZ, height: BSZ, channels: 4, background: { r: 0, g: 0, b: 0, alpha: 0 } } })               .composite([{ input: _small, gravity: 'northeast' }]).png().toBuffer();@@ -12299,7 +12308,7 @@ const SETTINGS_DEF=[  {k:'fgCaption',l:'Caption on AI foreground',d:'When an AI brings a window to your screen, show its stated reason as an on-screen caption. The AI is always forced to give a reason; this shows it to you.'},  {k:'fgCaptionMs',l:'',d:'',slider:[500,5000,250],dep:'fgCaption',test:1},  {k:'overlayBadges',l:'Favicon overlay badges',d:'Paint each pup taskbar icon with the favicon of its active tab plus the Adom mark.'},- {k:'overlaySize',l:'Badge size',d:'How big the favicon badge is drawn on the taskbar button. Half size keeps the badge clear of the thread tile\u2019s bottom line of text, which is usually the part you want to read. Full size is the older, larger badge.',sel:['50','100'],selLabels:{'50':'Half size \u2014 keeps the tile text readable','100':'Full size'},dep:'overlayBadges'},+ {k:'overlaySize',l:'Badge size',d:'What percent of full size the favicon badge is drawn at on the taskbar button. Smaller keeps the badge clear of the thread tile\u2019s bottom line of text, which is usually the part you want to read; 100% is the original, larger badge.',sel:['50','66','100'],selLabels:{'50':'50% \u2014 smallest, maximum text clearance','66':'66% \u2014 balanced (default)','100':'100% \u2014 full size'},dep:'overlayBadges'},  {k:'openFlash',l:'Taskbar flash on new window',d:'Flash the taskbar button (the Windows attention flash; accent-colored, salmon on your theme) when a new pup window opens, so you can spot it.',testflash:1},  {k:'autoFlash',l:'Taskbar flash on agent activity',d:'Flash a window taskbar button when an AI changes that window (navigate, click, type). One flash per burst.'},  {k:'agentActivity',l:'Taskbar progress bar',d:'Show a progress strip on a window taskbar button while an AI is actively driving it.'},@@ -12799,7 +12808,7 @@ const server = http.createServer(async (req, res) => {           // v1.9.259: the dashboard settings dialog. Whitelisted keys only; values validated.           const ALLOWED = {             aumidIcons: ['on', 'off'], jumpLists: ['on', 'off'], fgWatch: ['on', 'off'],-            fgCaption: ['on', 'off'], overlayBadges: ['on', 'off'], overlaySize: ['50', '100'], autoFlash: ['on', 'off'],+            fgCaption: ['on', 'off'], overlayBadges: ['on', 'off'], overlaySize: ['50', '66', '100'], autoFlash: ['on', 'off'],             openFlash: ['on', 'off'], sleepRecovery: ['on', 'off'], agentActivity: ['on', 'off'],             reportIssues: ['on', 'off'], autoLogin: ['on', 'off', 'submit', 'fill'], captureLogins: ['on', 'off'], minimalTouch: ['on', 'off'],             taskbarGrouping: ['split', 'grouped'],@@ -14321,7 +14330,7 @@ const server = http.createServer(async (req, res) => {           // (selftest T6 caught exactly that for jumpLists), so it is wired in the same pass as the           // dashboard rather than left for later.           const osz = args.overlaySize;-          if (osz !== undefined && !['50', '100'].includes(String(osz))) { sendJSON(res, { success: false, error: `overlaySize must be one of 50|100 (50 = half size, the default — it keeps the thread tile's bottom line of text readable)` }); return; }+          if (osz !== undefined && !['50', '66', '100'].includes(String(osz))) { sendJSON(res, { success: false, error: `overlaySize must be one of 50|66|100 — the PERCENT of full size to draw the favicon badge at. 66 is the default; smaller keeps more of the thread tile's bottom line of text readable.` }); return; }           if (osz !== undefined) {             savePupSettings({ overlaySize: String(osz) });             console.log(`[configure] overlaySize -> ${osz}`);