Repository navigation
Host browser panes in the shared pane canvas with explicit lifecycle ownership - #17
Merged
Merged
Conversation
…ownership A pane can carry browser content: the browser plugin owns a Chromium profile-backed target and reports it through pane tokens, the core reads those tokens through the typed wire boundary into a pane content model that is independent of pane layout, and the shell draws the frame through a native transport in the same canvas terminals use, forwarding native editing keys and fitting owned viewports. Closing a browser pane or its tab explains what ownership is released. A remote projection marks browser content unavailable rather than attaching to a host it cannot reach.
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 changed, in one paragraph a new contributor can follow
A pane can now carry a browser instead of a terminal. The
plugins/browserHerdr plugin owns a Chromium target backed by a named profile and reports its identity (binding, profile, target, CDP port, ownership) through pane tokens; the core reads those tokens through the typed wire boundary into aPaneContentmodel that is independent of pane layout, so a shell that later occupies the same layout leaf never inherits a stale browser; and the Swift shell draws the frame through a native transport (BrowserCDPSession,BrowserCanvas,BrowserPaneController) inside the same canvas terminals use, forwarding native editing keys and fitting the viewport the pane owns. Closing a browser pane or its tab states what ownership is released before it happens. A remote projection marks browser content unavailable rather than attaching to a host it cannot reach.docs/BROWSER_PANES.mdexplains the plugin, the tokens and the lifecycle. Third of four integration pull requests, after #15 and #16.Review boundary
tokensto the projected pane and acontentvalue on each pane in the revisionedrest. Tokens change only when the plugin reports, so an idle session does not restamprest. The token map crosses the boundary through the generatedPaneInfotype inwire.rs; the replica keeps no wire struct (check-typed-contract-structure.pyand bothstructurelanes pass).PaneInfo.tokensmap (string values, 32 keys max).browsercomponent JSON line; a remote host's browser pane is unavailable by construction.Evidence
cargo test --locked(351 core tests pass),swift test(260 tests pass), the plugin'snode --testsuite (6 pass), all seven structural checks,check-typed-contract-structure.py,check-typed-contract.sh structureandcheck-typed-live-remote.sh structure, run locally on this branch.main. The fullcheck-herdr-contract.shagainst a running server is a local step and was not run here.Screenshots
Not captured for this integration pass; see Evidence.
AI tooling
The move of the pane token read onto the typed wire boundary (a
tokensfield onProjectedPane, filled inwire.rs) and this description were produced with AI tooling. Every lane above was run locally afterwards.