Skip to content

Inject Codex++ into new Codex windows#113

Merged
BigPizzaV3 merged 1 commit into
BigPizzaV3:mainfrom
muxuuu:fix/inject-new-windows
May 15, 2026
Merged

Inject Codex++ into new Codex windows#113
BigPizzaV3 merged 1 commit into
BigPizzaV3:mainfrom
muxuuu:fix/inject-new-windows

Conversation

@muxuuu
Copy link
Copy Markdown
Contributor

@muxuuu muxuuu commented May 15, 2026

What changed

  • Inject Codex++ into every existing Codex CDP page target at startup.
  • Keep watching CDP targets so windows opened later through Open in new window receive the same Codex++ wrapper.
  • Track all injected websocket targets so user-script reload covers every Codex window.
  • Drop closed websocket targets during reload so closed child windows do not break reload for remaining windows.

Verification

  • Confirmed locally that Codex exposes multiple page targets for main, local chat, and hotkey/new windows.
  • Confirmed after relaunch that Open in new window shows the Codex++ menu in the child window.
  • .venv/bin/python -m pytest tests/test_cdp.py tests/test_launcher_cli.py -q -> 51 passed
  • .venv/bin/python -m py_compile codex_session_delete/cdp.py codex_session_delete/launcher.py -> passed

Notes

This PR intentionally keeps the diff focused on multi-window injection and related tests.

@muxuuu muxuuu force-pushed the fix/inject-new-windows branch from 6606027 to c352f72 Compare May 15, 2026 09:45
@muxuuu muxuuu mentioned this pull request May 15, 2026
@muxuuu muxuuu marked this pull request as ready for review May 15, 2026 09:45
@BigPizzaV3
Copy link
Copy Markdown
Owner

这是干什么的

@muxuuu
Copy link
Copy Markdown
Contributor Author

muxuuu commented May 15, 2026

解决 #106 的问题

@BigPizzaV3 BigPizzaV3 merged commit e63f1ee into BigPizzaV3:main May 15, 2026
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.

2 participants