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.29: wiki toggle no longer destroys other tabs and verifies the relaunched window is visible before claiming success
5 files changed
+77−9
CHANGELOG.md+18@@ -1,5 +1,23 @@ # Changelog — Adom Desktop Puppeteer Bridge +## 1.9.29 — 2026-07-20 — CRITICAL: the wiki toggle destroyed tabs and could leave NO window++John clicked the jump-list login toggle on a 5-tab research window. The window closed, the captions+fired, and nothing came back. Two separate bugs, both severe:++1. TAB LOSS. The toggle relaunched only the ACTIVE tab's url and closed the rest, silently+ destroying every other tab in the window. It now snapshots ALL tab urls plus which one was+ active BEFORE teardown, relaunches on the active url, restores the siblings in order, and+ re-activates the tab the user was on.+2. NO WINDOW RETURNED. The relaunch succeeded (session alive, page at 0,0, logged in) but the+ window never became visible to the shell: the identity stamp logged "No visible window with+ title containing (session: ...)" and the user was left with nothing at all. The toggle now+ VERIFIES the window is findable after the raise, retries heal+raise with backoff, and if it+ still cannot be seen says so in an on-screen caption instead of reporting success.++A switch that cannot show its window is a failed switch. Reporting ok:true while the user stares at+an empty desktop is the worst possible outcome and is what this release exists to prevent.+ ## 1.9.28 — 2026-07-20 — Category re-stamp retries, and stamp failures are loud The 1.9.27 acid test flipped the AUMID to .mixed but the window stamp silently returned false once
adom-bridge-puppeteer-manifest.json+5−5@@ -1,10 +1,10 @@ { "manifest_version": 1, "name": "puppeteer",- "version": "1.9.28",- "url": "https://wiki.adom.inc/download/adom/adom-desktop-puppeteer-bridge/1.9.28/adom-bridge-puppeteer-v1.9.28.zip",- "sha256": "55c4b2ed6d4ffc890dfb353338f6993415baece5c794bc566e0168cb96d134ea",- "size": 281916,+ "version": "1.9.29",+ "url": "https://wiki.adom.inc/download/adom/adom-desktop-puppeteer-bridge/1.9.29/adom-bridge-puppeteer-v1.9.29.zip",+ "sha256": "1f54422f0396f6a7ede60ded6aae644ab303e7a9485baf52fd83fb0157cda637",+ "size": 282793, "verbPrefixes": [ "browser_", "desktop_recorder_",@@ -12,5 +12,5 @@ ], "healthEndpoint": "/status", "statusVerb": "browser_readiness",- "released_at": "2026-07-20T05:50:00Z"+ "released_at": "2026-07-20T03:00:00Z" }
src/BRIDGE_VERSION+1−1@@ -1 +1 @@-1.9.28+1.9.29
src/bridge.json+1−1@@ -2,7 +2,7 @@ "manifest_version": 1, "name": "puppeteer", "displayName": "Puppeteer (Chrome for Testing + Native)",- "version": "1.9.28",+ "version": "1.9.29", "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+52−2@@ -5000,7 +5000,23 @@ const server = http.createServer(async (req, res) => { sendJSON(res, { success: true, output: JSON.stringify({ ok: true, view, unchanged: true, url }) }); return; }- console.log(`[wiki] view toggle "${sessionId}": ${curView} → ${view} (${url})`);+ // v1.9.29 BUG FIX: carry EVERY tab across the switch. The old code relaunched only the+ // active tab's url and closed the rest, silently destroying the user's other tabs (John+ // lost a 5-tab research window to one jump-list click). Snapshot all urls + which was+ // active BEFORE the teardown, then restore them into the relaunched window.+ const _tabUrls = [];+ let _activeIdx = 0;+ try {+ (session.tabs || []).forEach((t, i) => {+ let u = null; try { u = t.page.url(); } catch (e) {}+ if (u && !/^(about:|chrome:|edge:|devtools:)/i.test(u)) {+ if (t.tabId === session.activeTabId) _activeIdx = _tabUrls.length;+ _tabUrls.push(u);+ }+ });+ } catch (e) {}+ if (!_tabUrls.length) _tabUrls.push(url);+ console.log(`[wiki] view toggle "${sessionId}": ${curView} → ${view} (${_tabUrls.length} tab(s), active #${_activeIdx + 1})`); // v1.9.9: tell the user IMMEDIATELY that their click registered — the relaunch takes a // few seconds and silence reads as "it did nothing". Replaced by the result caption below. const _switchMsg = view === 'authed'@@ -5026,8 +5042,19 @@ const server = http.createServer(async (req, res) => { // Relaunch the SAME sessionId under the new profile at the same URL. const newProfile = view === 'authed' ? WIKI_AUTH_PROFILE : publicProfile; let s2 = null;- try { s2 = await launchSession(sessionId, url, { profile: newProfile, owner, takeover: true, foreground: true }); }+ try { s2 = await launchSession(sessionId, _tabUrls[_activeIdx] || url, { profile: newProfile, owner, takeover: true, foreground: true }); } catch (e) { sendJSON(res, { success: false, error: `wiki view relaunch failed: ${e.message}` }); return; }+ // v1.9.29: restore the OTHER tabs (in their original order) into the relaunched window.+ for (let i = 0; i < _tabUrls.length; i++) {+ if (i === _activeIdx) continue;+ try { await addTabToSession(sessionId, _tabUrls[i]); } catch (e) {}+ }+ // Re-activate the tab the user was actually on.+ try {+ const s3 = sessions.get(sessionId);+ const back = (s3 && s3.tabs && s3.tabs[0]) || null;+ if (back) { s3.activeTabId = back.tabId; await back.page.bringToFront(); }+ } catch (e) {} s2._wikiView = view; if (view === 'public') s2._publicProfile = newProfile; s2._foreground = true;@@ -5037,6 +5064,29 @@ const server = http.createServer(async (req, res) => { // the user's active window — the reason John "never saw the switch work"). Plus a taskbar // flash as a belt-and-suspenders notice in case Windows' foreground lock denies the raise. await osRaiseSessionWindow(s2, sessionId);+ // v1.9.29 BUG FIX: VERIFY the window actually came back. John clicked the toggle, the old+ // window closed, captions fired, and NO window returned: the relaunch had happened but the+ // window stayed unfindable/off-screen (the identity stamp logged "No visible window"),+ // leaving him with nothing. A switch that cannot show its window is a FAILED switch, so+ // confirm the shell can see it and self-heal before reporting success.+ let _visible = false;+ for (let i = 0; i < 6 && !_visible; i++) {+ try {+ const fr = await chrome.adCommand('desktop_find_window', { titleContains: `(session: ${sessionId}` }, { timeoutMs: 5000 });+ const fraw = fr && (typeof fr.output === 'string' ? fr.output : JSON.stringify(fr.output || ''));+ const fo = fraw ? JSON.parse(fraw) : {};+ _visible = !!((fo.data || fo).best);+ } catch (e) {}+ if (!_visible) {+ try { await healOffscreenWindow(s2, sessionId); } catch (e) {}+ try { await osRaiseSessionWindow(s2, sessionId); } catch (e) {}+ await new Promise(r => setTimeout(r, 700 * (i + 1)));+ }+ }+ if (!_visible) {+ console.log(`[wiki] "${sessionId}" switched but the window never became visible — telling the user`);+ wikiCaption('Adom wiki: the switch finished but the window did not come back on screen. Click the Adom Pup taskbar button to raise it.', 15000).catch(() => {});+ } try { flashViaAD(sessionId, {}); } catch (e) {} s2._lastForeground = { ts: Date.now(), verb: 'browser_wiki_set_view', reason: `user clicked the taskbar "switch to ${view} view" task` }; try { recordAgentUpdate(s2, 'browser_wiki_set_view', { updateNote: `wiki view → ${view} (user clicked taskbar task)` }, s2.activeTabId); } catch (e) {}