Skip to content

feat: multi-tenant Phase 4 — context-tagged event producer - #56

Merged
KeyCode17 merged 3 commits into
developfrom
feat/mt-phase4-event-producer
May 30, 2026
Merged

KeyCode17 merged 3 commits into
developfrom
feat/mt-phase4-event-producer

Conversation

@KeyCode17

Copy link
Copy Markdown
Owner

Summary

Builds the CDP→BrowserEvent producer the audit found missing (events were drained and discarded). Per-tab listeners forward to a supplied EventBus, so a session giving its own bus gets only its own tab's events — structural per-session isolation.

  • ras-cdp::event_pump::attach(page, target, bus): arms EventFrameNavigated (main frame → NavigationCompleted) + EventJavascriptDialogOpening (→ DialogOpened) listeners.
  • BrowserPort::attach_events(target, bus) (default no-op; adapter resolves the Page and attaches).
  • Adapter file split (chromiumoxide_adapter_setup.rs) to stay under the 200-LOC cap.
  • Bump 3.4.0 → 3.5.0.

Test Plan

  • cargo build --workspace + clippy clean; hooks green.
  • Live e2e (#[ignore]+CDP_URL, Chrome 148): navigation_event_reaches_the_bus1 passed (NavigationCompleted delivered to the bus for the tab).

Scope

Navigation + dialog events now; downloads/network/target-lifecycle are incremental on the same per-tab→bus model.

🤖 Generated with Claude Code

KeyCode17 and others added 3 commits May 30, 2026 09:34
…ibling file

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ve e2e

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@KeyCode17
KeyCode17 merged commit 78df2d7 into develop May 30, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant