Repository navigation
Sonny: a link with nowhere to open is copied and said so, SSH or not - #636
Merged
Merged
Conversation
On Linux, Sonny decided "nothing can open here" from the SSH variables. A Herdr or tmux server outlives the SSH session that started it, so its panes lack them, and a click on a box with no display handed the link to an opener that failed out of sight. Now Linux checks for a display (DISPLAY, WAYLAND_DISPLAY, BROWSER; WSL opens on Windows) and copies the link with a notice when there is none. macOS keeps the SSH check. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGFQFsMWT3ryazYxU9H
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
lydakis
pushed a commit
that referenced
this pull request
Nov 1, 2026
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGG5PKzf3A9NDuvu9Xu
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.
What
A tester running Sonny inside Herdr on a remote Linux machine with no display reported that clicking a link did nothing and showed no error.
Sonny's
open(sonny/src/main.rs) checked "is there anywhere to open this?" usingSSH_CONNECTIONandSSH_TTY. A Herdr or tmux server outlives the SSH session that started it, so its panes don't have those variables. Sonny then handed the link toxdg-open, which started and failed out of sight.Now:
DISPLAY,WAYLAND_DISPLAY, orBROWSER), with or without SSH. WSL still opens on Windows (WSL_DISTRO_NAME). With none of them, Sonny copies the link (OSC 52) and shows the noticenothing opens on this machine; copied <link>. The notice includes the link, so it can be selected even when the clipboard copy doesn't get through a multiplexer.BROWSER, Sonny copies, becauseopenwould show the link on that Mac's own screen.Plain clicks in the conversation already go to Sonny (
screen.rs,Action::Open), so they take this path. Ctrl-click in Herdr still goes to the terminal, as before.This is the first step of the two-machine design (a link that opens things on the laptop). That design isn't built yet and needs no daemon change.
Checks
cargo test -p sonny --bin sonny with_nothing_to_opencovers Mac, Linux, SSH or not, a multiplexer server with no SSH variables, X forwarding, Wayland,BROWSER, and WSL.cargo clippy -p sonny --all-targets -D warningsis clean, andcargo fmtwas run.sonny/FEATURES.mdrow updated.