Skip to content

Offer the first-run update only when there is something to update - #16211

Merged
emirb merged 4 commits into
quattrofrom
first-run/update-toast-only-when-pending
Oct 21, 2026
Merged

emirb merged 4 commits into
quattrofrom
first-run/update-toast-only-when-pending

Conversation

@emirb

@emirb emirb commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

First run sends a critical "Update System" toast as soon as the network is up, whatever the machine has pending. On a fresh 4.5.0rc1 install checkupdates reports nothing, the bar's update icon stays hidden because omarchy-update-available says Omarchy is up to date, and the toast leads to an update with nothing to do.

Screenshot 2026-10-21 at 23 17 54

And there's really nothing new after a fresh install :)

Screenshot 2026-10-21 at 23 46 40

Send it only when omarchy-update-available finds an update (Omarchy itself or a development checkout, the bar's signal) or checkupdates lists any package. checkupdates exits 2 when every package is current and 1 when it could not tell; only a definite "nothing" holds the toast back, so a failed check prompts as before.

First run sends a critical "Update System" toast as soon as the network
is up, whatever the machine has pending. On a fresh 4.5.0rc1 install
checkupdates reports nothing, the bar's update icon stays hidden because
omarchy-update-available says Omarchy is up to date, and the toast leads
to an update with nothing to do.

Send it only when omarchy-update-available finds an update (Omarchy
itself or a development checkout, the bar's signal) or checkupdates lists
any package. checkupdates exits 2 when every package is current and 1
when it could not tell; only a definite "nothing" holds the toast back,
so a failed check prompts as before.
@greptile-apps

greptile-apps Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; the remaining repeated package check is non-blocking.

Fix All in Claude CodeFindings

  1. P2 Package lists refresh twice ▶

Summary

First run now checks for updates before showing the critical “Update System” notification.

  • First-run setup offers the update toast only when an update may be available.

Reviews (3) · Last reviewed commit: "Read OMARCHY_PATH as the session sets it" · Reviewed by Greptile

omarchy-update-available >/dev/null 2>&1 && return 0

local status=0
checkupdates --nocolor >/dev/null 2>&1 || status=$?

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 Package lists refresh twice

When no Omarchy update is found, omarchy-update-available has already run checkupdates, but update_pending runs it again here to check other packages. On a current install, this repeats network requests and delays the decision to skip the toast. Reuse one package-check result for both decisions.

Fix in Claude Code

omarchy-update-available runs checkupdates to find Omarchy's package, and
the first-run check then ran it again for the rest. Each run syncs the
package databases over the network, so an install with nothing to update
paid for that twice before skipping the toast.

checkupdates alone covers every repository package, Omarchy's included.
omarchy-update-available is still asked when OMARCHY_PATH is a development
checkout, the one thing checkupdates cannot see. The test's stand-in for
it now runs checkupdates as the real one does, and counts the runs.
Comment thread install/user/first-run/wifi.sh Resolved
emirb added 2 commits October 21, 2026 23:36
The repository style quotes string literals in [[ ]] comparisons and prefers a full if/else over an early return that skips what follows.
AGENTS.md: runtime code relies on $OMARCHY_PATH and does not default it.
@emirb
emirb merged commit 7075b61 into quattro Oct 21, 2026
2 checks passed
@emirb
emirb deleted the first-run/update-toast-only-when-pending branch October 21, 2026 21:48
@emirb emirb added this to the 4.5 milestone Nov 5, 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.

1 participant