Skip to content

fix(browser): open link menu new window in a Codex window - #1703

Merged
i098 merged 1 commit into
mainfrom
fm/cgx-n197-833-new-window
Dec 5, 2026
Merged

i098 merged 1 commit into
mainfrom
fm/cgx-n197-833-new-window

Conversation

@i098

@i098 i098 commented Dec 5, 2026

Copy link
Copy Markdown
Owner

Refs #833

Summary

The link menu's "Open in new window" opened the system browser. It now opens the link in its own Codex browser window (Kind::Page, 800x720, the app's browser chrome). "Open in external browser" still uses the system browser.

What changed and why

  • New ui::browser::OpenBrowserWindow(String) action, sent by "Open in new window".
  • windows::open_browser opens the window; lib.rs handles the action; main.rs reuses it.
  • link_action maps link items to actions; one test proves new window, new tab and external browser take different paths.

Test evidence

  • macOS: cargo test -p ui --lib browser::menu passes.
  • Real macOS app harness (hidden, no focus, CODEX_GPUI_QA): new window gave 1 Page window 800x720 on /target-833, Dia tabs 0. External gave 1 Dia tab, no new window. Frontmost app unchanged.
  • Limit: right-click injected via JS; harness theme is light.
  • Screenshots: page menu, link menu, new window (attached below).

Checklist

  • One concern in this pull request.
  • Commit subject is not Conventional Commits (browser: ...); the PR title is.
  • cargo fmt --check not run.
  • clippy not run (Linux build cannot compile macOS code).
  • Workspace tests not run; only the one menu test.
  • Parity gate not run; the menu is a native popup with no original capture.
  • CHANGELOG line not added.

page menu

link menu

new window

@i098
i098 merged commit 00e9b65 into main Dec 5, 2026
4 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