← Commit history

AUMID icon-style sub-setting (John: 'show another sub-setting that lets you pick to just use one standard icon for all aumid windows, or the 4 (or 5) custom ones you made that try to differentiate between logged out and logged in state of wiki, the world icon, the adom app icon, etc'). New aumidIconStyle pref, default 'standard' (one pup tile for every stamped window - least shell churn for the crash experiment); 'category' switches to the custom per-category set (pup-cat-wiki / wiki-in padlock / web world icon / app / mixed). Enforced at pupIconPath, the single place stamp art is resolved, so the stamp, the jump-list header, and the dashboard /stampicon endpoint all follow it. Rendered as a dependent sub-select under the AUMID toggle, enabled only when the experiment is on.

John Lauer ·dac3574ef1 ·2mo ago ·parent 9a6f4a0
4 files changed +14−7
adom-bridge-puppeteer-manifest.json+4−4
@@ -1,10 +1,10 @@ {   "manifest_version": 1,   "name": "puppeteer",-  "version": "1.9.260",-  "url": "https://wiki.adom.inc/download/adom/adom-desktop-puppeteer-bridge/1.9.260/adom-bridge-puppeteer-v1.9.260.zip",-  "sha256": "5d119f5f11877711523190a065a4970e8e2d13d5f6b01b115887ebee1b5f078a",-  "size": 476424,+  "version": "1.9.261",+  "url": "https://wiki.adom.inc/download/adom/adom-desktop-puppeteer-bridge/1.9.261/adom-bridge-puppeteer-v1.9.261.zip",+  "sha256": "711bf02f0c1d14994b383eadbda1bd8f02178bea59238e5ea13a42a84782c757",+  "size": 476683,   "verbPrefixes": [     "browser_",     "desktop_recorder_",
src/BRIDGE_VERSION+1−1
@@ -1 +1 @@-1.9.260+1.9.261
src/bridge.json+1−1
@@ -2,7 +2,7 @@   "manifest_version": 1,   "name": "puppeteer",   "displayName": "Puppeteer (Chrome for Testing + Native)",-  "version": "1.9.260",+  "version": "1.9.261",   "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+8−1
@@ -2710,7 +2710,8 @@ function pupSettings() {   if (!_pupSettings.taskbarGrouping) _pupSettings.taskbarGrouping = 'split';   // v1.9.259 (John's settings dialog): every user-facing behavior gets an explicit pref.   const D = { aumidIcons: 'off', jumpLists: 'off', fgWatch: 'on', fgCaption: 'on', fgCaptionMs: 2000,-              overlayBadges: 'on', autoFlash: 'off', sleepRecovery: 'on', openFlash: 'off' };+              overlayBadges: 'on', autoFlash: 'off', sleepRecovery: 'on', openFlash: 'off',+              aumidIconStyle: 'standard' };   // v1.9.260 (John: "2s feels too fast cuz i can't read"): readable default. A stored 2000 was the   // old default, not a choice made in the dialog (it shipped hours ago) - migrate it up once.   if (D.fgCaptionMs) D.fgCaptionMs = 3500;@@ -2860,6 +2861,10 @@ function pupSessionAuthed(sessionId) {   try { const s = sessionId && sessions.get(sessionId); return !!(s && s._wikiAuthed); } catch (e) { return false; } } function pupIconPath(sessionId) {+  // v1.9.261 (John): aumidIconStyle 'standard' = ONE icon for every AUMID window (the default pup+  // tile); 'category' = the custom per-category set (wiki signed-out, wiki signed-IN padlock, world+  // icon for the open web, adom app icon, mixed).+  if (pupSettings().aumidIconStyle !== 'category') return path.join(__dirname, 'icons', PUP_ICON_DEFAULT);   const cat = pupCategory(sessionId);   const file = (cat && PUP_CAT_ICONS[cat]) || PUP_ICON_DEFAULT;   return path.join(__dirname, 'icons', file);@@ -8505,6 +8510,7 @@ let SEENTOAST=0; const SETTINGS_DEF=[  {k:'aumidIcons',l:'AUMID taskbar icons',d:'EXPERIMENT: give every pup window its OWN taskbar icon by stamping a per-window identity. Toggle on/off to test whether AUMID stamping is what crashes Chrome. Off = all windows share one Chrome button (current mode). Already-stamped windows keep their icon until closed.'},  {k:'taskbarGrouping',l:'AUMID grouping',d:'Only applies when AUMID icons are on: split = one icon per window; grouped = all pup windows under one Adom Pup icon.',sel:['split','grouped'],dep:'aumidIcons'},+ {k:'aumidIconStyle',l:'AUMID icon style',d:'Only applies when AUMID icons are on: standard = one pup tile for every window; category = the custom set (wiki signed-out, wiki signed-in padlock, world icon for the open web, adom app icon, mixed).',sel:['standard','category'],dep:'aumidIcons'},  {k:'jumpLists',l:'Jump lists',d:'Build right-click jump-list menus on pup taskbar icons. Known to blip on Windows 11; off by default.'},  {k:'fgWatch',l:'20s foreground watch',d:'For 20s after a window opens or navigates in the background, watch whether something (JavaScript, Chrome, a focus change) brings it to the foreground, and caption that it was not Adom. Never moves the window.'},  {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.'},@@ -8693,6 +8699,7 @@ const server = http.createServer(async (req, res) => {             openFlash: ['on', 'off'], sleepRecovery: ['on', 'off'], agentActivity: ['on', 'off'],             reportIssues: ['on', 'off'], autoLogin: ['on', 'off'], minimalTouch: ['on', 'off'],             taskbarGrouping: ['split', 'grouped'],+            aumidIconStyle: ['standard', 'category'],           };           const key = String(a.key || ''); let val = a.value;           if (key === 'fgCaptionMs') {