feat(browse): drive Zen over WebDriver BiDi; release v0.2.0 #115
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/browse-zen-0.2.0"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
John 2026-11-28: original Zen and Chromium are agent-ready; release as minor 0.2.0.
Depends on john/browse #21 being released first.
f1e9refs accepted;browse_browsersreturns an object.:latest). Note: managed Compose still follows:dev; see the PR thread for the follow-up.602 tests pass locally with real Chromium + Firefox.
- Worker: sessions whose browser speaks BiDi (Zen/Firefox) are driven with the normal Playwright API: for that one connection the firefox BrowserType's connectOverCDP is backed by Playwright's in-process BiDi Firefox over the gateway WebSocket. A small transport shim adopts the user's open tabs (answers the first browsingContext.create with the existing tab after replaying contexts and script realms). - BrowseService.act asks the gateway (with the user's key) for the session's protocol and refuses sessions that are not the user's or not Playwright-capable before starting a worker. - From the first live run (dev.11 notes folded in): frame-prefixed refs (f1e9) accepted; browse_browsers returns {"browsers": [...]}. - Version 0.2.0 (stable, :latest), release notes deploy/releases/0.2.0.md. Tests: 602 pass with a real Chromium and a real Firefox 161 (as Zen) behind a copy of the gateway: tabs adopted, snapshot, click, type, screenshot, repeated calls after Firefox's sticky BiDi session.Change review ·
e10c261bcd88→4bd7a02059f6Call paths changed by this PR
Caller → changed symbol → callee. Each edge labels the line in the caller. One detected entry path (up to 3 hops) is included when found. Static evidence, not a runtime stack trace.
After
Changed symbols:
BrowseService.act—src/corn/integrations/browse.py:260register—src/corn/integrations/browse.py:277register._locals_.browse_browsers—src/corn/integrations/browse.py:291register._locals_.browse_browsers._locals_.go—src/corn/integrations/browse.py:293register._locals_.browse_snapshot—src/corn/integrations/browse.py:320protocol—tests/fixtures/cdp_gateway_reference.py:258Bounded view: 43 more changed symbols and 0 neighbour references omitted.
Overall architecture after this change
Source: 4bd7a02059f6 ·
code-review 0.1.0-dev.1.Generated from resolved static calls between reviewed code areas. Numbers are call sites, not request counts.
Framework registration, dynamic dispatch, and unresolved calls are not shown. This is not a deployment map.
Showing 7 of 7 inter-area edges. Edit the reviewed source instead of this generated page.
This diagram is for the linked commit. It refreshes after required checks pass for a new head.