Repository navigation
Ask with gum before rebooting after a channel switch - #17251
Conversation
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>
[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
SummaryThis PR separates skipping the start confirmation from suppressing later prompts.
Reviews (1) · Last reviewed commit: "Ask with gum before rebooting after a ch..." · Reviewed by Greptile |
| "$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 |
There was a problem hiding this comment.
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!
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)
Switching channels (e.g. to dev) ended with a plain-text line instead of a reboot prompt:
omarchy-channel-setrunsomarchy-update -yto skip the start confirmation, but-yalso exportedOMARCHY_UPDATE_UNATTENDED=1, which makesconfirm_rebootinomarchy-update-restartecho instead of usinggum confirm.omarchy-update:-ynow respects an explicitly setOMARCHY_UPDATE_UNATTENDED.omarchy-channel-set: passesOMARCHY_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