Skip to content

agent-browser: warn below a version floor, forward macOS editing chords - #1900

Merged
nedtwigg merged 1 commit into
mainfrom
agent-browser-version-floor
Nov 28, 2026
Merged

nedtwigg merged 1 commit into
mainfrom
agent-browser-version-floor

Conversation

@nedtwigg

Copy link
Copy Markdown
Member

Summary

Version floor. Dormouse runs whatever agent-browser the user installed and never checked its version, so no code kept for an old release could ever be deleted. dor agent-browser now asks --version once per new browser and, below the floor, prints a warning naming agent-browser upgrade. It never refuses. The floor is 0.27.0, the newest release that is six months old.

The policy is a rule in docs/specs/dor-browser.md -> "agent-browser":

  • warn below the floor, never refuse, and never warn above it;
  • raise the floor only to a release at least six months old, verified against a real daemon, deleting the fallbacks for older releases in the same change;
  • use a new release's features as soon as it ships, keeping the old path until the floor passes it.

A browser pane opened from the UI shows no warning, since panes have nowhere to show one.

macOS editing chords. agent-browser 0.45.0 forwards CDP commands on stream key events (upstream vercel-labs/agent-browser#1453). On macOS the pane now sends Cmd+Z, Cmd+Shift+Z, Cmd+arrows (with and without Shift), Cmd+Backspace and Cmd+Delete with their editor command. Before this, these chords did nothing in a pane.

Test plan

  • dor: pnpm test (new agent-browser-version.test.mjs). Five viewport tests that list every spawn now skip the version probe, which carries no session.
  • lib: agent-browser-input, browser-viewer, the surface controller, and AgentBrowserPanel with a Mac Cmd chord. Each new test goes red with its line deleted.
  • tsc -b in lib, tsc --noEmit in standalone, pnpm test:checks, spec lint.
  • Inside Dormouse, a shim reporting 0.27.0 forwarding to the real CLI: the warning prints on a new browser; the real 0.31.1 prints none. (Run with the floor at 0.31.1 before it moved to 0.27.0.)
  • The chords in a real pane on agent-browser 0.45.0 (this machine has 0.31.1).

🤖 Generated with Claude Code

Dormouse runs whatever agent-browser is installed and never checked its
version, so no fallback for an old release could ever be deleted. `dor
agent-browser` now asks `--version` once per new browser and warns, without
refusing, below a floor of 0.27.0. The spec rule raises the floor only to a
release at least six months old, and uses a new release's features as soon as
it ships, keeping the old path until the floor passes it.

agent-browser 0.45.0 forwards CDP `commands` on stream key events
(vercel-labs/agent-browser#1453). On macOS the pane now sends Cmd+Z,
Cmd+Shift+Z, Cmd+arrows (and their Shift forms), Cmd+Backspace and Cmd+Delete
with their editor command; the viewer socket keeps only listed commands on a
keyDown, and the Playwright host passes them to CDP. Older daemons ignore the
field. Select-all keeps its host path until the floor reaches 0.45.0.

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

Copy link
Copy Markdown

Deploying mouseterm with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7cab61d
Status: ✅  Deploy successful!
Preview URL: https://61153ecb.mouseterm.pages.dev
Branch Preview URL: https://agent-browser-version-floor.mouseterm.pages.dev

View logs

@dormouse-bot dormouse-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment above the EDIT_OPS branch in handleKeyDownLike (lib/src/components/wall/agent-browser-surface-controller.ts) still says editing chords "don't fire over the stream input path (CDP commands field is dropped), on any platform". This PR makes that false from agent-browser 0.45.0, so a later reader would conclude the commands field in sendKey is dead weight. The comment should say what the spec now says: copy and cut stay on the host path because they write the OS clipboard, and select-all stays there only until the floor reaches 0.45.0 (#1899).

@nedtwigg
nedtwigg merged commit 16584e4 into main Nov 28, 2026
19 checks passed
@nedtwigg
nedtwigg deleted the agent-browser-version-floor branch November 28, 2026 20:00

This branch was successfully deployed

1 active deployment
dormouse/preview — 7cab61db 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