Repository navigation
Conversation
The installer also appended o.launch_on_start("sunshine"), so login
started a second copy that SIGABRTed on the already-bound GameStream port.
paulogeyer
left a comment
There was a problem hiding this comment.
+1 — this is the right primary fix for #12349: drop the Hyprland double-start, migrate existing autostart.lua lines, and cover it with an in-tree test. Verified locally (installer no longer appends; migration strips only the sunshine line and is idempotent).
One small ask before merge: please also enable/disable the canonical unit app-dev.lizardbyte.app.Sunshine.service (as in #12472) instead of the sunshine alias, which can fail on a fresh enable. Happy to re-check once that’s in.
The sunshine alias is missing until the first successful enable, so a fresh install can fail. Use app-dev.lizardbyte.app.Sunshine.service for enable and disable.
|
@paulogeyer Taken. Install now |
|
Reviewed at Reproduced on a disposable Omarchy worker, with
Second opinion: Codex at medium effort reviewed the diff and found it proportionate, with no blocking defect; its review is not guaranteed to be independent of this one. It noted that the Since this also fixes the alias failures, I've added links to #7050, #7218, #12053, #12499, #12537 and #13877 alongside #12349. #12472 fixes the double start too, but without a migration it doesn't reach machines that already carry the line. #8879, #12505, #13230, #13331 and #13925 only change the unit name, so they leave the double start in place. This one covers all of it. Now waiting on the maintainer. |
The test grepped the scripts' source, which passes for a script that names the canonical unit anywhere and still runs the alias. It now runs the installer and the remover against a mocked systemctl, as omacom#13925 does, and checks the commands they actually issue: the canonical unit is enabled and the alias never is, no Hyprland autostart line is written, a failed enable stops before the firewall and web app, removal disables the unit before dropping the package and strips a leftover line, and a failed disable still removes the package. Each failure scenario also asserts the call was made, so an unrelated early exit cannot pass it. The installer backgrounds the admin web app launch, so the test waits for the mock launcher to run before asserting anything: a failure that removed the mocks first could let that child resolve the real omarchy-launch-webapp and open a browser on the machine running the suite. Co-Authored-By: AnPod <drejc83@gmail.com> Co-Authored-By: Codex Medium <noreply@openai.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
I pushed one commit, Why: the test checked the scripts by grepping their source, so a script that named the canonical unit anywhere would pass even if it still ran the alias. #13925 by @AnPod tests the same scripts by running them, so its approach is adopted here and AnPod is credited as co-author. The installer and remover now run against a mocked
Tested on a disposable Omarchy worker: the new test passes on Second opinion: Codex at medium effort reviewed the new test over three rounds, and its findings changed the test, so it is credited as co-author too:
Its last round, on Now waiting on the maintainer. |
[Medium impact] The PR appears safe to merge; no actionable defects were found. SummarySunshine now starts through its systemd user unit instead of two login paths.
Reviews (2) · Last reviewed commit: "Check failed Sunshine reinstalls keep th..." · Reviewed by Greptile |
|
Verified direction looks right: enable the real unit Heads-up on the cluster of open siblings doing the same unit-name fix: #13925, #14412, #12505, #13230. Worth picking one (this one already has the migration + remove path + tests) and closing the rest as duplicates once it merges. |
|
Confirmed on a real session, not only the disposable worker. This is the change that stops the crash we just traced. Machine: Omarchy 4.5.0-3, Sunshine 2026.914.233613 (newer than the 2026.516 package in the review above). On the boot at 2026-11-06 00:37:
This patch matches that failure. Dropping Filed by Grok 4.7 via Grok Build. |
|
@omarchybot can we have this merged? Having the same issue |
|
I read the four-file diff at GPT-6 in Codex (reasoning effort not exposed) classifies this as a bug fix. The configured classification reviewer, DeepSeek v4p1 Flash, returned no usable classification, so the required classification check is incomplete. No second technical review or new worker tests were completed in this pass, and no code was changed. This pass stops at the classification check. Verification can resume after that check is completed; no action is requested from the author. |
A user can disable the crashing unit and keep the Hyprland launcher as a workaround for the double start. The migration now removes that launcher only when the canonical unit is enabled, so an update preserves their sole startup path. An explicit reinstall enables the canonical unit and removes the legacy launcher, including when the migration previously preserved it. The existing installer test now starts with a legacy entry and catches a reinstall that leaves it behind. Co-Authored-By: Opus 5.5 High <noreply@anthropic.com> Co-Authored-By: GPT-6 <noreply@openai.com>
The enable-failure scenario now starts with the legacy launcher present and checks that it survives. Moving cleanup before a failed unit enable would otherwise remove the only startup path while leaving the existing failure assertions green. Co-Authored-By: Opus 5.5 High <noreply@anthropic.com> Co-Authored-By: GPT-6 <noreply@openai.com>
|
I pushed Verified on a fresh disposable Omarchy worker with Sunshine
GPT-6 in Codex (reasoning effort not exposed), Opus 5.5 High, and muse-wonder via pi at high thinking reviewed the change. Both final reviewers found the production code correct. Opus still objects to the migration tests already in this PR because the current repository rules prohibit them; muse-wonder found no remaining defect or coverage gap. The final readiness check also flags test size and maintenance cost. The three-round review limit is reached, so these findings remain for the maintainer. Agreement between these reviews is not guaranteed to be independent. For comparison, #12271 has no cleanup of existing Hyprland entries, and #13230 still writes the second launcher and leaves removal using the alias. I read all seven linked reports against the final diff: the canonical-unit change covers the fresh and repeated-install failures, and the startup checks cover both double-start reports. Cleanup takes effect at the next login; it does not stop an already running legacy Sunshine process during the current session. The fix carries |
|
I confirm this fix works. |
|
Just tested it on Omarchy 4.5.0-3, I can confirm that this fix works for me too. |
|
GitHub now reports a conflict with GPT-6 in Codex (effort not exposed), Opus 5.5 High and muse-wonder via pi, thinking high checked the source and reached the same conclusion. The reviews may share context. Worker preflight blocked a fresh test run. |
Fixes #12349.
`omarchy-install-service-sunshine` enabled the systemd user unit and appended `o.launch_on_start("sunshine")`. On login both copies started; the Hyprland/uwsm one aborted on TCP 47984 after the unit already had the port.
Autostart is the user unit alone now. A migration strips the leftover Hyprland line from existing installs; removal already deleted that line.
Verified with installer/removal source checks and a migration test against a fake `~/.config/hypr/autostart.lua`.
Fixes #7218
Fixes #7050
Fixes #12053
Fixes #12499
Fixes #12537
Fixes #13877