Skip to content

agent-browser: name sessions with _, which agent-browser 0.41.1+ requires - #1902

Merged
nedtwigg merged 1 commit into
mainfrom
agent-browser-session-names
Nov 28, 2026
Merged

nedtwigg merged 1 commit into
mainfrom
agent-browser-session-names

Conversation

@nedtwigg

Copy link
Copy Markdown
Member

Summary

agent-browser 0.41.1 (2026-11-01) rejects a --session containing anything but letters, digits, - and _, before it starts a browser (upstream vercel-labs/agent-browser#2272). Every session Dormouse minted was dormouse.<scope>.<key>. So on any current agent-browser, every pane failed to open with Invalid session name 'dormouse.1.tool.surface-2' and fell back to an iframe.

  • Sessions are now dormouse_<scope>_<key>, numbered _2, _3, … (sessionForKey, BrowserBindingReservations).
  • Scope and key are scrubbed to [A-Za-z0-9_-], and a Tool's key is tool-<leaf>.
  • dor agent-browser --key now takes [A-Za-z0-9_-]+, so a dotted key fails instead of colliding with its scrubbed twin.
  • Every earlier agent-browser release accepts _, including the 0.27.0 floor proposed in agent-browser: warn below a version floor, forward macOS editing chords #1900.
  • A pane saved with a dotted session keeps it and still fails on a current agent-browser. There is no migration (no users yet).
  • docs/specs/dor-browser.md -> "Managed identity" updates the key charset and suffix rules; the rationale cites the upstream change. Test literals, the glossary, the help snapshot and the debug skill use the new form.

Test plan

  • dor-lib-common, dor (363), and all lib suites
  • tsc -b in lib, tsc --noEmit in standalone, pnpm test:checks, spec lint
  • An agent-browser pane opens on agent-browser 0.45.0 in dev:standalone

🤖 Generated with Claude Code

…quires

agent-browser 0.41.1 (2026-11-01) refuses a `--session` outside letters,
digits, `-` and `_` before it starts anything (upstream #2272). Every session
Dormouse minted was `dormouse.<scope>.<key>`, so on a current agent-browser
every pane failed to open ("Invalid session name 'dormouse.1.tool.surface-2'")
and fell back to an iframe.

Sessions are now `dormouse_<scope>_<key>`, numbered `_2`, `_3`, ...; scope
and key are scrubbed to `[A-Za-z0-9_-]`, a Tool's key is `tool-<leaf>`, and
`dor agent-browser --key` takes `[A-Za-z0-9_-]+`. Every earlier release
accepts `_`. A pane saved with a dotted session keeps it and still fails on a
current agent-browser; there are no users to migrate.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Deploying mouseterm with  Cloudflare Pages  Cloudflare Pages

Latest commit: ea2ecd1
Status: ✅  Deploy successful!
Preview URL: https://5b118455.mouseterm.pages.dev
Branch Preview URL: https://agent-browser-session-names.mouseterm.pages.dev

View logs

@nedtwigg
nedtwigg merged commit 451adcb into main Nov 28, 2026
19 checks passed
@nedtwigg
nedtwigg deleted the agent-browser-session-names branch November 28, 2026 20:01

This branch was successfully deployed

1 active deployment
dormouse/preview — ea2ecd1a Deployed Nov 28, 2026 by argos-ci[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants