Repository navigation
feat(browser): open a link's new tab beside its opener with New tab hold (UP-118) - #363
Merged
Merged
Conversation
|
PR test build retired — merged into |
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.
Summary
Ports upstream
UP-118(anomalyco/opencode#65126, commit80d7c17d8e24b64deed205d166c7de812eeb3c64) without changingcontract.json:apps/desktop/src/surfaces/browser/openers.rs,features/panels/src/tabs.rs):packages/gui-plugins/src/browser/tab-openers.ts(placed_after,record_open,on_select,on_close/FixOpeners,on_addressed) andpackages/app/src/shell/state/session-tabs.ts(append_session_tab,open_session_tab_after).target="_blank", Cmd/Ctrl-click, middle-click viapopup_opens) or from the context menu ("Open link in new tab","Open image in new tab") insert beside their opener (front tabs directly after opener; multiple background tabs in requested order after the opener's contiguous family). Background link tabs stay behind without stealing selection or focus. Agent-driven tabs keep appending at the end."New tab"title hold (apps/desktop/src/surfaces/browser/openers.rs,apps/desktop/src/plugin_host/native/browser{,/chrome}.rs,plugins/browser/init.luau):unnamedfor link-opened tabs until the document names itself or finishes loading (pane-machine.tsnamed), exposingBrowserTab:Unnamed()solabel()andtabText()keep"New tab"instead of flashing Chromium's raw URL string.docs/upstream-sync/ledger.json): MarksUP-118ashave it.Verification
scripts/guardrails.ps1: 5/5 passed (all logic extracted toopeners.rs, keepingsurfaces/browser/mod.rsbelow the 800-line ceiling).selene plugins/browser/init.luau: 0 errors, 0 warnings.docs/upstream-sync/ledger.json: valid.