Repository navigation
Conversation
Contributor
[Medium impact] The PR appears safe to merge; no actionable issues were found. SummaryStarts
Reviews (1) · Last reviewed commit: "Start the herdr server in its own sessio..." · Reviewed by Greptile |
Contributor
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.
Fixes #18301
Problem
Since #16572 the autostart starts the herdr server with
uwsm-app -- herdr server. herdr's remote client prompts to restart the server whenever the server'sdetached_server_daemonflag is false, and that flag is only true when the server leads its own process session (getsid(0) == getpid(); herdr v0.9.1src/platform/mod.rs:179). uwsm-app does not setsid, so everyherdr --remote <host>attach against the autostarted server shows a destructive "restart the remote server now? [y/N]" prompt — and answeringykills every pane: shells, agents, dev servers, tests.Fix
Start the server in its own session:
The reporter verified this exact form through Hyprland:
uwsm-app -- setsid herdr --session X serverreportsdetached_server_daemon: true(no prompt on attach) while the server still inheritsWAYLAND_DISPLAY/XDG_SESSION_TYPE— the property #16572 added the line for. The comment inautostart.luanow records why setsid is there.