Skip to content

feat: manage multi-window codex injection - #12

Merged
loocor merged 11 commits into
mainfrom
feat/multi-window-lifecycle
May 27, 2026
Merged

feat: manage multi-window codex injection#12
loocor merged 11 commits into
mainfrom
feat/multi-window-lifecycle

Conversation

@loocor

@loocor loocor commented May 27, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add multi-target CDP discovery and bridge caller identity so Helper can inject and route actions per Codex window.
  • Synchronize Codex targets from both the packaged Tauri app and the Bun dev launcher.
  • Manage Codex lifecycle recovery, stale debug-port cleanup, runtime activity reporting, and noisy event suppression.

Test Plan

  • bun run check
  • RUSTC_WRAPPER= cargo test --manifest-path src-tauri/Cargo.toml -- --test-threads=1

Note: bun test currently exits without details on main as well, so it was not used as a merge gate.

loocor added 11 commits May 27, 2026 14:29
Document the multi-window injection design and execution plan so the
branch carries the target identity and validation rationale.
Track injected Codex targets by CDP target id and attach caller identity
to bridge requests so target-scoped Helper actions resolve against the
originating Codex window instead of target discovery order.
Expose Codex launch and injection sync from the Helper tray menu so users
can bring Codex under Helper control without restarting the helper.
Report runtime activity from each injected Codex window and limit
automatic port ownership work to the focused window so multi-window
sessions do not race over shared Helper state.
Avoid local port binding races between tests that intentionally exercise
bound and unavailable port behavior.
Accept settings files that still contain keys removed from earlier Helper runtime surfaces. This keeps existing local configs readable without re-enabling the removed features.
Attach the active Helper caller identity to bridge requests so routes can target the originating Codex window. Use that identity for DevTools routing and runtime activity diagnostics.
Add browser-level target discovery helpers for Codex pages, including Target.getTargets support and injectable target filtering. This provides the CDP foundation needed for multi-window injection management.
Update the Bun launcher to mirror the managed multi-window injection model used by the Tauri shell. Inject all current Codex targets, keep watching target changes, clean up disconnected bindings, and keep target event logs behind an explicit debug flag.
Deduplicate routine activity reports, throttle remote port sync attempts, and suppress successful noisy bridge request logs while keeping failures visible.
Track managed Codex startup and shutdown more directly so Helper can recover from stale CDP state, avoid proxy environment leakage, and keep the dev launcher aligned with the packaged Tauri flow.
@loocor
loocor merged commit 1723148 into main May 27, 2026
3 of 4 checks passed
@loocor
loocor deleted the feat/multi-window-lifecycle branch May 27, 2026 06:43
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