Skip to content

Keep the reboot offer after a channel switch - #13444

Closed
Bartok9 wants to merge 1 commit into
omacom:quattrofrom
Bartok9:bartok9/channel-set-keep-reboot-offer
Closed

Bartok9 wants to merge 1 commit into
omacom:quattrofrom
Bartok9:bartok9/channel-set-keep-reboot-offer

Conversation

@Bartok9

@Bartok9 Bartok9 commented Sep 27, 2026

Copy link
Copy Markdown
Contributor

Summary

omarchy-channel-set finished with omarchy-update -y, which sets OMARCHY_UPDATE_UNATTENDED=1. That skips confirm_reboot, so a human-watched channel switch never offers Reboot now / Later even when the kernel or Hyprland changed.

--skip-confirm skips only the opening "Ready to update?" prompt. -y still means fully unattended.

Closes #13416

Test plan

  • omarchy-channel-set now calls omarchy-update --skip-confirm
  • -y still exports OMARCHY_UPDATE_UNATTENDED
  • --skip-confirm does not

omarchy-channel-set handed off with omarchy-update -y, which sets
OMARCHY_UPDATE_UNATTENDED and skips confirm_reboot. The channel switch
already ran in a human-watched terminal, so skip only the opening
"Ready to update?" prompt.

Closes omacom#13416
@llstrk

llstrk commented Sep 29, 2026

Copy link
Copy Markdown

Automated duplicate check

Community review: Independent automated community review, unaffiliated with the Omarchy team, intended to help prepare PRs for their review.

Same issue as another open PR: this PR and #13544 both say they fix #13416, with different changes. The review of #13544 (comment) compares the two. This PR was not reviewed separately.


Opt out: To stop receiving these reviews, reply to this comment saying so.

@Bartok9

Bartok9 commented Sep 29, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for the duplicate check. #13544 covers the same #13416 fix and adds the sequence/channel tests this PR does not. Flag name differs (--skip-confirm here vs --confirmed there); behavior is the same: skip only the opening update prompt, leave the reboot offer interactive, leave -y unattended.

Happy to close this in favor of #13544 if maintainers prefer the tested version. Leaving it open until then so the issue is not left with only one approach.

@jandrusk

jandrusk commented Oct 7, 2026

Copy link
Copy Markdown

One thing I noticed with this when the switch is going back to stable: omarchy-channel-set calls the destination's omarchy-update, and stable is still 4.0.4, whose omarchy-update only knows -y:

# v4.0.4 bin/omarchy-update
[[ ${1:-} != "-y" ]] || export OMARCHY_UPDATE_UNATTENDED=1
if [[ ${1:-} == "-y" ]] || omarchy-update-confirm; then

So on edge → stable, --skip-confirm gets treated as an unknown argument and the user sees "Ready to update?" a second time. If they say no at that point, pacman has already switched the packages but the migrations and the rest of the update never run. That's a nit, not a blocker, but a small fallback would cover it:

update_flag=-y
grep -q -- '--skip-confirm' "$OMARCHY_PATH/bin/omarchy-update" && update_flag=--skip-confirm
OMARCHY_UPDATE_USER_PATH="$user_path" "$OMARCHY_PATH/bin/omarchy-update" "$update_flag"

Also, #13544 (same fix for #13416) now conflicts with quattro, so this is currently the one that merges cleanly.

@Bartok9

Bartok9 commented Oct 7, 2026

Copy link
Copy Markdown
Contributor Author

Thanks — the destination-script point is right. omarchy-channel-set execs $OMARCHY_PATH/bin/omarchy-update after the channel packages are already switched, so edge → stable really does hit 4.0.4, which only special-cases -y.

I am not going to land the -y fallback. On a build that lacks --skip-confirm, -y sets OMARCHY_UPDATE_UNATTENDED and skips confirm_reboot, which is the #13416 bug this PR exists to stop. A second "Ready to update?" on old stable is worse UX, but silently going unattended is the wrong trade.

The "say no after pacman already switched" window is real on that path; it is also what happens today if someone declines the destination update. Once stable's omarchy-update knows --skip-confirm, the flag works without a probe. Happy to add a one-line comment in the script noting that older destination builds still prompt, if maintainers want that documented in-tree.

Also noted that #13544 now conflicts with quattro and this branch is the one that merges cleanly. Still fine closing this in favor of a rebased #13544 if you would rather keep the tested variant.

@Bartok9

Bartok9 commented Oct 17, 2026

Copy link
Copy Markdown
Contributor Author

Closing in favor of #13544. Same #13416 seam, and that PR has the TTY vs -y split plus tests.

Fixes #13416 is already the first line of #13544's description.

@Bartok9

Bartok9 commented Oct 17, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #13544 (tests + tty/-y split for #13416).

@Bartok9 Bartok9 closed this Oct 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

omarchy-channel-set suppresses the post-switch reboot offer because it hardcodes omarchy-update -y

4 participants