Skip to content

Clear the update indicator after an update instead of rechecking - #15047

Merged
dhh merged 2 commits into
quattrofrom
update-clear-indicator
Oct 12, 2026
Merged

dhh merged 2 commits into
quattrofrom
update-clear-indicator

Conversation

@dhh

@dhh dhh commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

What

After a successful update, omarchy-update now clears the bar's update indicator directly (omarchy-shell -q omarchy.system-update clear) instead of calling omarchy-update-status, which reran omarchy-update-available. omarchy-update-status stays 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 calls omarchy-update-status after 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-dev has git pull --ff-only'd the dev checkout and omarchy-update-system-pkgs has completed a full -Syu (both run under set -e, so the update never reaches this line otherwise). There's nothing left for the indicator to show, but the recheck still:

  • ran git fetch on the dev checkout a second time (up to its 10s timeout), and
  • ran checkupdates, 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-available again 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.sh now expects omarchy-shell with -q omarchy.system-update clear at the old omarchy-update-status slot. It also stubs omarchy-update-available, so the step-order diff fails if the update ever rechecks.
  • test/shell.d/update-status-test.sh checks the compatibility helper clears the indicator without calling omarchy-update-available.
  • The sudo-boundary fixture stubs omarchy-shell in place of omarchy-update-status.
  • ./test/cli passes. ./test/shell's remaining failures (agents/Grok, shortcut menu route: toggle, unowned-system-paths) are unrelated to this change.

🤖 Generated with Claude Code

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>
@greptile-apps

greptile-apps Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable issues remain in the reviewed changes.

Summary

The PR clears the update indicator directly instead of checking for updates again.

  • Updates clear the indicator without running another update check.

No new actionable issues were found in the changes since the previous review. No previous review threads were supplied.

Reviews (2) · Last reviewed commit: "Keep omarchy-update-status for updates s..." · Reviewed by Greptile

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>
@dhh
dhh merged commit 11f456f into quattro Oct 12, 2026
1 check passed
@dhh
dhh deleted the update-clear-indicator branch October 12, 2026 13:37
@emirb emirb added this to the 4.5 milestone Oct 17, 2026
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