Skip to content

Ask with gum before rebooting after a channel switch - #17251

Merged
dhh merged 1 commit into
quattrofrom
channel-switch-reboot-gum
Nov 1, 2026
Merged

dhh merged 1 commit into
quattrofrom
channel-switch-reboot-gum

Conversation

@dhh

@dhh dhh commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Switching channels (e.g. to dev) ended with a plain-text line instead of a reboot prompt:

Updates require reboot. Ready? Run omarchy-system reboot when ready.

omarchy-channel-set runs omarchy-update -y to skip the start confirmation, but -y also exported OMARCHY_UPDATE_UNATTENDED=1, which makes confirm_reboot in omarchy-update-restart echo instead of using gum confirm.

  • omarchy-update: -y now respects an explicitly set OMARCHY_UPDATE_UNATTENDED.
  • omarchy-channel-set: passes OMARCHY_UPDATE_UNATTENDED=0, since the user is still at the terminal. Side effect: package-conflict handoff during a channel switch is interactive too.

Tests: channel-, update-restart-, update-sequence, update-package-conflict shell tests pass.

🤖 Generated with Claude Code

omarchy-channel-set runs omarchy-update -y to skip the start confirmation,
but -y also set OMARCHY_UPDATE_UNATTENDED=1, so the required reboot after
switching channels printed "Run omarchy-system reboot when ready." instead
of offering a gum confirm. -y now respects an explicit
OMARCHY_UPDATE_UNATTENDED, and the channel switch passes 0 since the user
is still at the terminal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@greptile-apps

greptile-apps Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 4/5

[Medium impact] The change affects prompts during channel-switch updates.

This appears safe to merge, but switches to older destinations still miss the intended reboot prompt.

Findings

  1. P2 Older destinations skip reboot prompts ▶

Summary

This PR separates skipping the start confirmation from suppressing later prompts.

  • Channel switches skip the update's opening question but keep later prompts interactive.

Reviews (1) · Last reviewed commit: "Ask with gum before rebooting after a ch..." · Reviewed by Greptile

Comment thread bin/omarchy-channel-set
"$OMARCHY_PATH/bin/omarchy-update" -y
# The switch was already confirmed, but the user is still here: keep the
# reboot prompt interactive.
OMARCHY_UPDATE_UNATTENDED=0 "$OMARCHY_PATH/bin/omarchy-update" -y

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Older destinations skip reboot prompts

If the destination has an older omarchy-update, its -y handler overwrites this 0 with OMARCHY_UPDATE_UNATTENDED=1. Switching to stable or rc can install an older release, and an existing dev checkout is not refreshed before this handoff. Those users still get the plain-text reboot message instead of a prompt. Add a fallback for destinations that do not support the override.

Knowledge Base Used: Prevent stable channel switches from stranding edge

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

@dhh
dhh merged commit 5fa15f2 into quattro Nov 1, 2026
3 checks passed
@dhh
dhh deleted the channel-switch-reboot-gum branch November 1, 2026 15:39
@emirb emirb added this to the 4.5 milestone Nov 5, 2026
berenddeboer pushed a commit to berenddeboer/omarchy that referenced this pull request Nov 6, 2026
omarchy-channel-set runs omarchy-update -y to skip the start confirmation,
but -y also set OMARCHY_UPDATE_UNATTENDED=1, so the required reboot after
switching channels printed "Run omarchy-system reboot when ready." instead
of offering a gum confirm. -y now respects an explicit
OMARCHY_UPDATE_UNATTENDED, and the channel switch passes 0 since the user
is still at the terminal.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 5fa15f2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants