Repository navigation
Start the herdr server with the desktop session - #16572
Merged
Merged
Conversation
A remote herdr SSHing in at boot would otherwise start the server with a tty environment, leaving its panes without WAYLAND_DISPLAY so agents can't paste clipboard images. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
[Medium impact] The PR appears safe to merge; no actionable issues were found. SummaryStarts
Reviews (1) · Last reviewed commit: "Start the herdr server with the desktop ..." · Reviewed by Greptile |
4 tasks
20 of 34 tasks
4 tasks
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.
When a remote machine's herdr connects over SSH before the local herdr client is opened, that SSH login starts the herdr server. The server then carries the SSH session's environment (
XDG_SESSION_TYPE=tty, noWAYLAND_DISPLAY), and so does every pane it spawns. Agents in those panes can't reach the Wayland clipboard, so pasting a screenshot (Ctrl+V in Claude Code, which reads viawl-paste) silently finds no image.This starts
herdr serverfrom Hyprland's autostart underuwsm-app, so the server comes up inside the graphical session and its panes inherit the Wayland environment. If a server is already running,herdr serverexits with "already running" and nothing changes.Cost: an idle empty server is about 21 MB RSS (about 6 MB private) and effectively no CPU.
On an autologin boot, Hyprland starts within a second of sshd, well before a remote client can connect (on the machine where this was found: Hyprland at 18:40:09, SSH login at 18:40:32). Without autologin, an SSH login that happens before the user logs in can still win; restarting the server from the desktop (
herdr server stop, then reopen herdr) fixes it.🤖 Generated with Claude Code