Repository navigation
Description
Problem or use case
I want to keep using Orca's built-in browser without having links automatically split my workspace. Choosing between the built-in browser and the system browser is different from choosing where a browser tab appears.
In Orca 1.4.239, the placement rule introduced by #31844 reuses a visible browser pane. If none is visible and the source pane is occupied, it creates a new pane to the right. An empty source pane is filled instead. I would like to keep links inside Orca while choosing a layout that does not create another split.
The existing settings do not provide that choice:
- Link Routing selects Orca versus the system browser.
- Open links in the background controls activation and focus, but still applies the same placement rule.
- Closing a browser tab afterward does not change the placement policy for the next link.
Environment: Orca 1.4.239, macOS 26.5.2, arm64. The installed version and saved settings were checked: Link Routing was on and background opening was off.
This is a request for control over the current placement behavior, rather than a claim that closing tabs is broken. The exact action behind my original observation has not yet been isolated, and no GUI reproduction was performed during this investigation. The placement rule and the absence of an opt-out were checked in source, including main at 0302e0a5fd09c783f81ab41bb83f95ad59812971.
Proposed solution
Add a browser-link placement preference, independent of link routing and background focus:
- Current behavior: reuse a visible browser pane, or open beside the source when needed.
- No automatic split: reuse a visible browser pane if available; otherwise add a tab in the source group without creating a new split.
The second option would let me retain the embedded browsing workflow. The default and exact reuse policy can be decided by maintainers. Background opening should remain a separate focus choice.
Apply the preference consistently to routed links from terminal, chat, Markdown and editor surfaces, including the desktop's local, SSH and paired-server workspace routes. This request does not ask to change explicit split commands, manual tab creation, agent browser automation or session restoration, or to disable those features.
Alternatives or additional context
Turning off Link Routing or using the system-browser modifier avoids this placement path, but gives up embedded browsing. Background opening reduces focus interruptions without preventing the split. Closing the browser afterward is only temporary layout management.
Related work:
- [Feature]: Open clicked links in the pane to the side, splitting if none exists #13390 requested an opt-in placement choice and was closed by feat(browser): open links beside their pane, focus link tabs, honor window.close() #31844. This is a follow-up about the choice that remains unavailable in the released behavior.
- feat(browser): open clicked links in the pane to the side #13392 still proposes an Open Links Beside setting, but is unmerged and targets an older browser-page path rather than the current shared routed-link path.
- [Feature]: Option to open in-app browser links in a background tab #31530 concerns background focus and was implemented through feat(browser): open links beside their pane, focus link tabs, honor window.close() #31844.
- Open browser links beside their source #32907 is an open follow-up around source-aware placement and an Open in this group action. That per-open action is related; this request is for a persistent preference.
- CLI:
orca tab createcannot open a browser tab in a split pane #27369 / feat(cli): open a browser tab in a split pane withtab create --split#27370 and [Feature]: Keyboard shortcut to open a browser tab in a split pane #32222 request explicit browser splits from the CLI or a shortcut, rather than opting out of automatic link placement.
References: placement decision, v1.4.239 release notes.
A suggested validation scenario, not yet executed, is a local workspace with one occupied terminal pane and no visible browser, Link Routing enabled, followed by Cmd-click on https://example.com. A no-auto-split preference should keep the group count unchanged with background opening either on or off.
Activity
PatrykMilewski commentedon Oct 25, 2026
This may also be a regression introduced by #31844, rather than only a request for a new preference.
My issue, #31530, requested opening links in a new background tab without switching focus away from the terminal. It was closed as completed by #31844. That PR also introduced the placement rule that creates a right-hand split when no browser pane is visible.
We tested this in the running Orca 1.4.240 on macOS, starting with an occupied terminal pane and no visible browser:
The expected workflow is: Cmd-click adds a new tab to the same pane, leaves the current tab selected when background opening is enabled, and does not change the split layout. Keeping keyboard focus while resizing the workspace into a split does not achieve that.
The timing and the placement code in #31844 suggest that change caused this behavior. Could this be investigated as a possible bug/regression in the implementation that closed #31530, alongside the placement preference requested here?
Generated by Codex agent