Repository navigation
fix(browser): read the engine's messages in the turn they arrive again (re-land #640) - #732
Merged
Merged
Conversation
…n (re-land #640) #640 gave the engine's messages their own quiet waker, so each DevTools round trip of an agent's browser command no longer waits for the window's next frame. #675 reverted it because back/forward then ended before their history commit was applied. That early end was in the settle logic, fixed since by #706 and #696 (back/forward now wait for the commit's own DevTools events), so the faster wake comes back unchanged. This reverts commit b76cc0a.
|
PR test build retired — merged into |
Member
Author
|
Follow-up check on this PR's CI build (exe bd1095f4…, published engine 156.0.26-10, hidden desktop): back/forward 0/160 first-try failures in 4 sequences x 4 configurations (plain, uBOL, cross-origin frame, both); first command median 27 ms; snapshot after forward ~150 -> ~55 ms median versus dev-474. Cases 0/100 wrong (same-document pushState / anchor and no entry at the 1.2 s grace; bfcache / no-store 19-66 ms). Smoke 12/12 (proof\smoke\2026-11-23\080142-BROWSER-TOOLS-732-smoke-f4f67ba33b-unknown.txt). |
Hona
added a commit
that referenced
this pull request
Nov 23, 2026
…sk for one (#819) #732 (re-land of #640) set the browser engine's message waker in open.rs on every target, but launch::browser_waker exists only off wasm32, so the scheduled web build failed on dev (open.rs:203/206). Both lines are now native-only, as browser_waker itself is. Checked: scripts/web.ps1 -Check (cargo check -p opencode-web --lib --target wasm32-unknown-unknown) exit 0, web clock ok.
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.
What
Re-lands #640: the browser engine's messages wake a quiet update that reads them and steps the agent's browser commands in the same turn, instead of waiting for the window's next frame (17–45 ms per DevTools round trip on blade).
Why it was reverted, and why it is safe now
#675 reverted #640 because
back/forwardreturned before their history commit was applied: the faster wake exposed an early end in the settle logic. That logic is fixed since:back/forwardend only once the commit's own DevTools events are applied (address moved, contexts cleared and recreated, main frame navigated, tab not loading).The diff is exactly
git revert b76cc0a558on top ofdev: 6 files, +49 / −3, no settle change. No engine input (crates/browser-pane/src/client/mod.rsandsidecar.rsonly, notdevice.rs/installer.rs).Not proved in this PR
back/forwardsequence check (4 configurations) on this PR's own build: I run it as a follow-up and post the result here.dev.