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.8: wiki toggle snappy click (respond after raise, background cosmetics), async non-blocking PS raise, optimistic self-correcting glyph
5 files changed
+42−24
CHANGELOG.md+11@@ -1,5 +1,16 @@ # Changelog — Adom Desktop Puppeteer Bridge +## 1.9.8 — 2026-07-19 — Wiki toggle: snappy click, non-blocking raise, self-correcting glyph++Follow-up to 1.9.7's foreground raise, from ralph-testing it live. Three fixes: (1) the OS raise now+uses async PowerShell (runPsHiddenPromise) instead of sync — the sync call blocked pup's whole event+loop for up to 8s, stalling every other request. (2) browser_wiki_set_view now RESPONDS the instant+the window is raised and runs branding/overlay/jump-list/auth-recheck in the BACKGROUND, so a+jump-list click doesn't wait ~30s on cosmetics (that stall was likely why the switch felt like it+"never worked"). (3) The tab glyph is set optimistically on switch and then self-corrects via a+delayed auth re-check — fixes a logged-in window (/auth/me=200) briefly mislabeling "📖 Public"+because the first auth check raced the page load.+ ## 1.9.7 — 2026-07-19 — Wiki toggle now REALLY pops to the foreground when you click it The taskbar wiki view-toggle worked functionally (verified: it relaunches the window under the
adom-bridge-puppeteer-manifest.json+5−5@@ -1,10 +1,10 @@ { "manifest_version": 1, "name": "puppeteer",- "version": "1.9.7",- "url": "https://wiki.adom.inc/download/adom/adom-desktop-puppeteer-bridge/1.9.7/adom-bridge-puppeteer-v1.9.7.zip",- "sha256": "2d3b0d0fd1000e6a8f3edafa3828700671e1984ad974b071c324caf84fc5dbae",- "size": 215239,+ "version": "1.9.8",+ "url": "https://wiki.adom.inc/download/adom/adom-desktop-puppeteer-bridge/1.9.8/adom-bridge-puppeteer-v1.9.8.zip",+ "sha256": "48567e579859f697fa90e03c8864a7b54a94d9beb69788af4fb9e09cccf048cb",+ "size": 215427, "verbPrefixes": [ "browser_", "desktop_recorder_",@@ -12,5 +12,5 @@ ], "healthEndpoint": "/status", "statusVerb": "browser_readiness",- "released_at": "2026-07-19T21:10:00Z"+ "released_at": "2026-07-19T21:25:00Z" }
src/BRIDGE_VERSION+1−1@@ -1 +1 @@-1.9.7+1.9.8
src/bridge.json+1−1@@ -2,7 +2,7 @@ "manifest_version": 1, "name": "puppeteer", "displayName": "Puppeteer (Chrome for Testing + Native)",- "version": "1.9.7",+ "version": "1.9.8", "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+24−17@@ -2111,7 +2111,9 @@ async function osRaiseSessionWindow(session, sessionId) { '}', ].join('\r\n'); try { fs.writeFileSync(psScript, psContent); } catch (e) { return; }- try { const r = runPsHidden(psScript, { timeout: 8000 }).toString().trim(); console.log(`[wiki] raised session "${sessionId}" to foreground: ${r}`); } catch (e) {}+ // ASYNC PS (runPsHiddenPromise) — the sync runPsHidden blocks pup's event loop for up to 8s,+ // stalling every other request; the async variant frees the loop while the raise runs.+ try { const r = (await runPsHiddenPromise(psScript, { timeout: 8000 })).toString().trim(); console.log(`[wiki] raised session "${sessionId}" to foreground: ${r}`); } catch (e) {} } catch (e) {} } // Brand a pup window: full identity on capable AD, overlay badge fallback on older AD.@@ -4772,25 +4774,30 @@ const server = http.createServer(async (req, res) => { 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) {}- // Re-check auth (authed view only) + refresh the in-tab glyph, branding, and jump list.- let authState = null;- if (view === 'authed') { try { authState = await Promise.race([checkWikiAuth(s2.page), new Promise(r => setTimeout(() => r({ authed: false }), 3500))]); } catch (e) {} }- const label = (view === 'authed' && authState && authState.authed) ? '\u{1F513} Logged in' : '\u{1F4D6} Public';- try { await setWikiModeGlyph(s2.page, label); } catch (e) {}- if (process.platform === 'win32') {- try { await brandPupWindow(sessionId); } catch (e) {}- try { await registerPerSessionAumid(`${PUP_APP_ID}.${sessionId}`); } catch (e) {}- try { await applyAppOverlay(s2, sessionId); } catch (e) {}- await updateWikiJumplist(s2, sessionId).catch(() => {});- }- const loginNeeded = view === 'authed' && authState && !authState.authed;+ // v1.9.7: set an OPTIMISTIC glyph immediately (the window is on the authed profile, and the+ // common case IS logged in) so the tab reflects the switch the instant it pops, then+ // RESPOND — the window is already raised. Everything below runs in the BACKGROUND so a+ // click never waits on cosmetics: branding, favicon overlay, jump list, AND the auth+ // RE-check that corrects the glyph once the authed cookies/SPA settle (the first check+ // races the page load, so a logged-in window was briefly mislabeling "📖 Public" — John+ // saw exactly this).+ try { await setWikiModeGlyph(s2.page, view === 'authed' ? '\u{1F513} Logged in' : '\u{1F4D6} Public'); } catch (e) {} sendJSON(res, { success: true, output: JSON.stringify({ ok: true, view, url, foregrounded: true,- wikiLoginNeeded: loginNeeded || undefined,- _hint: loginNeeded- ? 'Switched to the logged-in profile, but no one has done the one-time SSO login yet (or the ~30-day session expired) — so this window still shows the PUBLIC/logged-out view. The user logs in ONCE at hydrogen.adom.inc in this window; then every thread\'s authed view is signed in for ~30 days.'- : `This window is now the ${view === 'authed' ? 'LOGGED-IN' : 'PUBLIC'} view.`,+ _hint: `This window is now the ${view === 'authed' ? 'LOGGED-IN' : 'PUBLIC'} view (auth is re-confirmed a moment later; the tab label self-corrects if the ~30-day login has expired).`, }) });+ (async () => {+ if (process.platform === 'win32') {+ try { await brandPupWindow(sessionId); } catch (e) {}+ try { await registerPerSessionAumid(`${PUP_APP_ID}.${sessionId}`); } catch (e) {}+ try { await applyAppOverlay(s2, sessionId); } catch (e) {}+ try { await updateWikiJumplist(s2, sessionId); } catch (e) {}+ }+ if (view === 'authed') {+ await new Promise(r => setTimeout(r, 1800));+ try { const a = await checkWikiAuth(s2.page); await setWikiModeGlyph(s2.page, (a && a.authed) ? '\u{1F513} Logged in' : '\u{1F4D6} Public'); } catch (e) {}+ }+ })().catch(() => {}); return; }