Repository navigation
fix(browser): open link menu new window in a Codex window - #1703
Merged
Merged
Conversation
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.
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
ui::browser::OpenBrowserWindow(String)action, sent by "Open in new window".windows::open_browseropens the window;lib.rshandles the action;main.rsreuses it.link_actionmaps link items to actions; one test proves new window, new tab and external browser take different paths.Test evidence
cargo test -p ui --lib browser::menupasses.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.Checklist
browser: ...); the PR title is.cargo fmt --checknot run.