Repository navigation
Invite agent and fingerprint setup once online, not after the first update - #17628
Conversation
…pdate Both setups install packages, so they only need a connection. Waiting for the first update hid the agent invitation on fresh installs until someone ran one. Co-Authored-By: Claude Opus 5.5 <[email protected]>
[Medium impact] The change affects first-run setup notices for fresh installs. The PR still needs a persistent retry so users who reboot while offline receive the setup invitations later. Findings
SummaryMoves agent and fingerprint invitations from post-update hooks to the first-run network check.
Reviews (2) · Last reviewed commit: "Wait for the first connection however lo..." · Reviewed by Greptile |
| bash "$OMARCHY_PATH/install/user/first-run/setup-agent.hook" | ||
| bash "$OMARCHY_PATH/install/user/first-run/setup-fingerprint.hook" |
There was a problem hiding this comment.
Offline users lose setup invitations
If a fresh user stays offline for the first hour, nm-online -q -t 3600 times out before either invitation runs. omarchy-provision-first-run has already marked first run complete because the network wait runs in the background, so later logins skip it.
This PR also removes the post-update hooks that previously offered another chance. Fresh installs mark migration 1786549201 complete, so it cannot restore the agent hook. Keep a persistent retry until both invitations have been considered.
There was a problem hiding this comment.
Fixed in 323a734: the wait for the first connection no longer has a time limit, so the invitations and update toast always go out on first connection.
The hour cap meant a machine left offline longer never saw the agent, fingerprint or update invitations, since first run had already completed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Fresh installs only saw the default-agent invitation after their first update, because first run installed it as a post-update hook. The fingerprint invitation had the same wait. Both setups install packages, so all they need is a connection.
install/user/first-run/wifi.shsends both invitations as soon as a link is up, before the update check.omarchy-provision-first-runno longer installs them as post-update hooks..hookfiles stay: migration1786549201still installs the agent one for existing accounts, and the sharedomarchy-donemarkers keep anyone from being invited twice.first-run-test.shchecks that the agent invitation goes out once online (fails on the base branch).🤖 Generated with Claude Code