Skip to content

Invite agent and fingerprint setup once online, not after the first update - #17628

Merged
dhh merged 2 commits into
quattrofrom
agent-invite-on-wifi
Nov 5, 2026
Merged

dhh merged 2 commits into
quattrofrom
agent-invite-on-wifi

Conversation

@dhh

@dhh dhh commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

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.sh sends both invitations as soon as a link is up, before the update check.
  • omarchy-provision-first-run no longer installs them as post-update hooks.
  • The .hook files stay: migration 1786549201 still installs the agent one for existing accounts, and the shared omarchy-done markers keep anyone from being invited twice.
  • first-run-test.sh checks that the agent invitation goes out once online (fails on the base branch).

🤖 Generated with Claude Code

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

greptile-apps Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 4/5

[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

  1. P1 Offline users lose setup invitations ▶

Summary

Moves agent and fingerprint invitations from post-update hooks to the first-run network check.

  • Fresh installs get setup invitations as soon as they connect.

Reviews (2) · Last reviewed commit: "Wait for the first connection however lo..." · Reviewed by Greptile

Comment on lines +48 to +49
bash "$OMARCHY_PATH/install/user/first-run/setup-agent.hook"
bash "$OMARCHY_PATH/install/user/first-run/setup-fingerprint.hook"

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.

P1 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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread docs/file-layout.md Resolved
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]>
@dhh
dhh merged commit 19d13be into quattro Nov 5, 2026
3 checks passed
@dhh
dhh deleted the agent-invite-on-wifi branch November 5, 2026 02:38
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