feat: tab assignment persistence, lifecycle hooks, and extension relay#1
Open
feat: tab assignment persistence, lifecycle hooks, and extension relay#1
Conversation
…relay support - Add tab_assignments.rs with persistence primitives, CAS write guard, and atomic temp+rename writes - Add restore/persist hooks in BrowserManager for tab lifecycle events (new, switch, close, target discovery/destruction) - Add shutdown-safe flush with is_shutting_down guard - Add extension relay connection mode with WebSocket handshake stub - Add CLI flags: --connection-mode, --relay-url, --profile-id, --profile-directory, --persist-tab-assignment, --agent-id - Refactor CDP connect into reusable resolve_cdp_url + attach_connected_browser - Relax profile+CDP validation for extension-relay mode - Store relay handshake metadata for first-attach persistence Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
3a60f74 to
4f13dbc
Compare
4f13dbc to
10dc457
Compare
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
tab_assignments.rsmodule withTabAssignmentsFile/TabAssignmenttypes, atomic temp+rename writes, flock-based CAS for multi-daemon safety, session name validation against path traversalis_shutting_downguard--connection-mode,--relay-url,--profile-id,--profile-directory,--persist-tab-assignment,--agent-idresolve_cdp_url()+attach_connected_browser()for relay reuse. Relaxed profile+CDP restriction for extension-relay modeTest plan
cargo buildpasses--persist-tab-assignment, disconnect, reconnect — verify same tab restored--agent-idconnecting to same profile — verify independent tab assignments🤖 Generated with Claude Code