Repository navigation
agent-browser: warn below a version floor, forward macOS editing chords - #1900
Merged
Merged
Conversation
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>
Deploying mouseterm with
|
| Latest commit: |
7cab61d
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://61153ecb.mouseterm.pages.dev |
| Branch Preview URL: | https://agent-browser-version-floor.mouseterm.pages.dev |
dormouse-bot
left a comment
Collaborator
There was a problem hiding this comment.
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).
2 of 3 tasks
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-browsernow asks--versiononce per new browser and, below the floor, prints a warning namingagent-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":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
commandson stream key events (upstreamvercel-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(newagent-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, andAgentBrowserPanelwith a Mac Cmd chord. Each new test goes red with its line deleted.tsc -binlib,tsc --noEmitinstandalone,pnpm test:checks, spec lint.🤖 Generated with Claude Code