Repository navigation
Clear the update indicator after an update instead of rechecking - #15047
Merged
Merged
Conversation
Once the dev checkout is fast-forwarded and the full -Syu succeeds, there is no Omarchy update left to show. omarchy-update-status still ran omarchy-update-available, which refetched the checkout and had checkupdates sync every database into a temp dir, only to clear the indicator. Clear it directly and retire the helper, whose only caller was the update. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
An update already running when this lands parsed its pipeline before the upgrade replaced it, and still calls omarchy-update-status after the packages are in. Keep it as a hidden helper that only clears the indicator, so that update finishes instead of stopping at a missing command. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 12, 2026
Closed
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.
What
After a successful update,
omarchy-updatenow clears the bar's update indicator directly (omarchy-shell -q omarchy.system-update clear) instead of callingomarchy-update-status, which reranomarchy-update-available.omarchy-update-statusstays as a hidden compatibility helper that now only clears the indicator: an update already running when this lands parsed its pipeline before the upgrade replaced it, and still callsomarchy-update-statusafter the packages are in. Without the helper, that update would stop at a missing command and skip the restarts, hooks, AUR and boot verification.Why
By that point in the update,
omarchy-update-devhasgit pull --ff-only'd the dev checkout andomarchy-update-system-pkgshas completed a full-Syu(both run underset -e, so the update never reaches this line otherwise). There's nothing left for the indicator to show, but the recheck still:git fetchon the dev checkout a second time (up to its 10s timeout), andcheckupdates, which syncs every repo database into a temp dir. That's about 0.4s when nothing changed, and a few seconds right after a sync, when it has to download the new databases.That's roughly 1–5s saved per update, more on a slow network.
The shell is restarted right after this anyway, and the widget runs
omarchy-update-availableagain on startup and every 6h, so a release that lands during the update is still picked up. Clearing in-line keeps the indicator right when that restart can't happen (TTY or ssh).Verification
test/shell.d/update-sequence-test.shnow expectsomarchy-shellwith-q omarchy.system-update clearat the oldomarchy-update-statusslot. It also stubsomarchy-update-available, so the step-order diff fails if the update ever rechecks.test/shell.d/update-status-test.shchecks the compatibility helper clears the indicator without callingomarchy-update-available.omarchy-shellin place ofomarchy-update-status../test/clipasses../test/shell's remaining failures (agents/Grok,shortcut menu route: toggle,unowned-system-paths) are unrelated to this change.🤖 Generated with Claude Code