Repository navigation
π Browser4 4.16.9
π Browser4 v4.16.9 Release Notes
Release Date: 2026-11-21 08:26:23 UTC
Built by: @galaxyeye
β Java requirement β depends on how you install
Install mode Java needed? Self-contained bundle β browser4-cli installNone β the bundle ships its own jlink-built JRE browser4-clibinaries /npm install -g browser4-cliNone β native binary Standalone Browser4.jar(java -jar)Java 25+ WebMiner ( browser4-cli webminer)JDK 17+ β auto-detected (the bundle's JRE also satisfies it) Build from source JDK 25+ to compile; JDK 25 enables the JVM AOT cache (JEP 483/515)
feat(agentic): align multi-turn context with pi (window, usage, continuity, follow-ups, rewind)
Five behaviours pi gets right were missing here, and each of them changes what the model sees on the next turn:
-
The in-task compaction pressure now follows the model: browser4.agent.context.windowTokens minus reserveTokens (configurable) replaces the flat threshold, and the retained tail is capped at half of it so a small window still leaves something foldable.
-
The pressure decision prefers the provider-reported context size of the last request (prompt + completion, cache reads included) plus an estimate of what was appended since, instead of a chars/3.5 guess that under-counts CJK and tool JSON; the measurement is invalidated by every commit so the estimate takes over again.
-
A second fold of the same conversation uses the incremental merge instruction whenever a is already present: preserve the older facts, add what is new, keep the section structure.
-
The session keeps its REAL message list and hands it to the next task (browser4.agent.session.continuousMessages), and each outer round continues from AgentToolCallLoop.finalMessages - assistant tool calls stay paired with their results (browser4.agent.toolLoop.carryRoundMessages). The loop compressor now sees real rounds across rounds and tasks, so tool pairs are never split at a cut. After a restart the compacted transcript remains the fallback.
-
Follow-ups: POST /api/commands/{id}/input accepts deliverAs=followUp, and such a message is delivered when the loop would stop (the model answered without tool calls) as a real user message that continues the same conversation - steering still injects at the next model round. Undelivered follow-ups are reported and kept for the next task.
Rewind: beginTask checkpoints the conversation per task, and command.run(rewindTaskId=...) restores that point, summarizes the abandoned branch with a dedicated instruction, and continues from there (agent run --rewind, -i /rewind). It is mutually exclusive with --resume and fails loudly when the checkpoint is gone (the conversation lives in memory).
Verified: SessionConversationTest 26, StatefulAgentRunnerTest 31, FileBackedChatModelToolLoopTest 2, ToolLoopCompressorTest 34, cargo test --bin browser4-cli 2282. Downstream modules compile. Real-browser e2e for the new prompt shape is still pending (the two carry switches roll the behaviour back).
Docs: config (window/reserve, the two carry switches), CLI reference, SKILL reference, help/tips, the agent-run flow dev doc and the tool-loop compaction design doc.
π¦ Release Highlights
π Release Statistics
| Metric | Value |
|---|---|
| π JAR Size | 107MB |
| π Commits | 70 |
| π₯ Contributors | 2 |
| ποΈ Build Date | 2026-11-21 08:26:23 UTC |
π Changes Since Last Release
- feat(agentic): align multi-turn context with pi (window, usage, continuity, follow-ups, rewind) (b8b7a76b00)
- feat(agentic): hand the next task the whole session transcript (0bc0b3e952)
- fix(browser): keep the off-viewport plan on the explicit-pace pointer path (d8ec973e4c)
- ci(nightly): give a failing JVM test one surefire retry (a800ca6c37)
- fix(xsql): drop a pooled connection that closed under the statement, and retry once (e866155ab8)
- docs(mcp): regenerate the tool reference for PERMISSION_DENIED (cb4439c0bc)
- test(e2e): compare the delivered y against the live viewport height (3ca1dc5ef1)
- ci(nightly): move the permission e2e suite into its own Windows workflow (f9dfd342b1)
- fix(agentic): land the two gate cases the Linux nightly surfaced (e7b13fc80e)
- fix(coding): fold a version-pinned interpreter onto its family (61918926d9)
- fix(browser): stop delivering off-viewport pointer points as in-page (ebe476083f)
- ci(nightly): retry the backend warm-up instead of one launch attempt (490c8a1c22)
- chore(prompt-tokens): re-record the coding prompt baseline (f69b6dcc17)
- ci(nightly): start the backend before permission-e2e instead of calling status (58192c579f)
- fix(coding): make the sandbox selection tests host- and order-independent (c3b8530d45)
- docs(copilot): evaluate pluginizing the WebPage persistence layer (c3097aff29)
- docs(copilot): document the human-like browser interaction stack (dd794a7a0f)
- ci(permission-e2e): run Tier A on a nightly Windows job and from bin/test.ps1 (f781049046)
- fix(agent): stop reporting a permission refusal as a successful call (d4d0d8ca43)
- fix(coding): derive mirror grants from a manifest and revoke them at task end (516e22f236)
- docs(copilot): record the sandbox review, the e2e plan/backlog and five issues (f57f7a2494)
- test(permission-e2e): land the permission/sandbox e2e suite (99a63e4cb9)
- fix(cli): anchor the fallback state dir at the workspace (b301ca91c0)
- docs(copilot): A2 retracted - the footgun is a BOM-less .ps1, not [Console]::OutputEncoding (abec480eb1)
- fix(coding): name the real PowerShell encoding footgun (BOM-less .ps1) (48e9b08d02)
- docs(copilot): tier A is green on the fresh bundle, and why a stale one lies (e61e109bb3)
- docs(copilot): F2 closed - the verdict line is clamped to stay quotable (0104725f33)
- fix(coding): keep coding.verify's verdict line quotable (66f577207b)
- docs(copilot): record the two sandbox defects the real agent run exposed (09326519ad)
- fix(coding): make coding.verify compile inside the OS sandbox (2ca5aa4047)
- fix(agentic): warn the coding prompt that powershell -Command re-encodes output (7718c86cd8)
- fix(coding): give sandboxed children a UTF-8 stdio contract for Python (61b5e12197)
- feat(cli): name the state directory status resolves to (e1f2a82683)
- fix(cli): switch the console to UTF-8 before the first byte (28f3d6b891)
- fix(coding): keep template expressions in the JS word heuristics (eabe7728c9)
- docs(copilot): record the tier A and twin results for the 2026-11-20 fixes (6c0606b672)
- fix(cli): report a state file that exists but cannot be read (e5c79e45f7)
- docs(cli): say where a sandboxed CLI keeps its session state (2aca54989e)
- feat(agentic): give every sandboxed CLI child the workspace state dir (3de28e8232)
- fix(coding): validate delimiters with a lexer-aware scan (b0054ddb27)
- fix(coding): decode child output per line and share the decoder (ae54a9d1e7)
- fix(cli): read the CLI state where the write went (aeda7e75cc)
- fix(coding): only a module of a checkout becomes a writable mirror root (f0a5a7c996)
- fix(coding): keep the sandbox boundary inside its workspace (bc6b6122b4)
- docs(permissions): G9 closed β self-check, revoke, and the grant convention (6df6fd520e)
- feat(coding): revoke stale container grants and warn about the ACEs they leave (6e1cea60e3)
- feat(examples): attach to ego lite and summarize a weibo user's latest posts (878d6572d4)
- docs(permissions): a stale AppContainer ACE makes a toolchain root unreadable (525340ba10)
- fix(cli): cancel the backend task on Ctrl+C and stop attach --list panicking (0ae51730ac)
- fix(agent): keep a finish report honest about files the run itself deleted (758ced6f5b)
- fix(coding): name the sandbox that really runs, and read GBK/empty files (7cf2ea8c9f)
- docs(copilot): agent-permissions Β§10 - windows-low-il cannot start (8885b9e7a9)
- fix(coding): grant OWNER RIGHTS on a fresh worktree and heal a refused label (48265d481b)
- fix(coding): keep the freshness guard for change sets no module owns (19edbfaa5d)
- fix(coding): resolve a module by containment, and let the workspace graph decide (e787c0106e)
- docs(cli): spell commands the way
--helpprints them (b95077534c) - feat(cli): make the spaced form the public spelling of prefixed commands (10747e23a0)
- fix(coding): make mvnBuild's Kotlin daemon writable and name the covering verifier (9045985313)
- fix(coding): track OwnerSecurityRights so isolated worktrees can compile (2e175d2378)
- docs(copilot): link the permission gap register to its tracking issue (9295777368)
- docs(copilot): evaluate adopting sandbox-runtime as a fourth sandbox backend (4c2605f04d)
- docs(copilot): register the known permission gaps (G1βG8) (936247bfc1)
- test(agent): pin that a sandboxed git cannot write worktree metadata (2f06d1b93d)
- docs(copilot): add the as-built
agent runpermissions report (a3ce202c68) - docs(copilot): record the container probe and the b4.run decision (ba939abe8f)
- feat(agent): keep b4.run usable where a backend cannot host the CLI (bb9b04e4d8)
- feat(agent): make the OS the agent's boundary, not the string layer (7324e408b5)
- fix(cli): make every help section reachable and the reference follow COLUMNS (1f2f8c086e)
- docs(copilot): plan the coverage ramp from 62.5% to the AGENTS.md floors (d2983858d1)
- Auto-bump version to 4.16.9-SNAPSHOT (6f0e8ebe56)
π Quick Start
Self-contained install
Use the CLI to download the matching Browser4 runtime bundle for your platform
(ships its own jlink-built JRE β no Java installation required):
browser4-cli install
browser4-cli openCLI & SKILLS
# Open a new browser window
browser4-cli open
# Navigate to a page
browser4-cli goto https://browser4.io
# Inspect the page β note the eN labels on interactive nodes
browser4-cli snapshot
# Interact using refs from the snapshot
browser4-cli click e15
browser4-cli type e15 "Hello World"
browser4-cli press e15 Enter
browser4-cli keydown Shift
browser4-cli mousemove 150 300
browser4-cli mousewheel 0 100
browser4-cli keyup Shift
# Take a screenshot and save it to disk
browser4-cli screenshot
# Use a custom server URL
browser4-cli open --server http://localhost:9090
# Execute multiple commands in one process
browser4-cli batch "open https://browser4.io" "snapshot"
# Stop on the first batch failure
browser4-cli batch --bail "open https://browser4.io" "click e1" "screenshot"
# Advanced: pipe batch commands as JSON via stdin
echo '[
["goto", "https://example.com/form-filling"],
["click", "#reset-btn"],
["fill", "#first-name", "Bob"],
["fill", "#last-name", "Smith"],
["fill", "#email", "bob@example.com"],
["select", "#country", "uk"],
["check", "#agree-terms"],
["click", "#submit-btn"]
]' | browser4-cli batch --json
# Close the session when done
browser4-cli closeπ Full Changelog
Built with β€οΈ by the Browser4 team
browser4-cli
This release also includes prebuilt browser4-cli binaries for:
- Linux x64
- Linux ARM64
- Linux musl x64
- Linux musl ARM64
- Windows x64
- macOS x64
- macOS ARM64
npm package:
npm install -g browser4-cli
CLI package version in this release workflow:
4.16.9
Self-contained Browser4 runtime bundles
This release also includes self-contained Browser4 runtime bundles with:
- a
lib/directory containingBrowser4Bundle.jarand all runtime dependencies - a minimal
jlink-built JRE underruntime/ - platform-specific launcher scripts in
bin/
Runtime model:
runtime/bin/java -cp "lib/*" <MainClass>
Supported release assets:
browser4-bundle-runtime-windows-x64.zipbrowser4-bundle-runtime-linux-x64.tar.gzbrowser4-bundle-runtime-darwin-arm64.tar.gz
Recommended install flow:
browser4-cli install
Full Changelog: v4.16.8...v4.16.9