Repository navigation
Refuse --reauth without an account instead of adding one - #14100
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
chessing234
left a comment
There was a problem hiding this comment.
everything seems fine, ready to merge.
|
Reviewed at 5cbb407, with nothing to change. The bug is real on current One correction to the description: on Account ids can't trip the guard. The second opinion was Codex at medium effort. It reached the same conclusion, though its independence isn't guaranteed, and it raised the |
|
Thanks @chessing234 — I appreciate the review. The |
Co-authored-by: Claude Opus 5.5 <[email protected]> (cherry picked from commit a3c3a6a)
omarchy-agent-account-add --reauth <account>signs an existing account in again. Called with no account,reauthends up empty and the script falls through to the normal add flow. It opens a sign-in, registers whoever logs in as a new account, and reportsAdded …with exit 0. Someone who meant to fix a lapsed sign-in ends up with an extra account. The same happens with--reauth --events, where--eventsis taken as the account name.--reauthnow requires a following argument that isn't another flag. Without one, it prints its usage and exits 1 before anything starts.Testing
agent-account-test.shruns--reauthand--reauth --eventswith no account. Each must fail, add no account, and open no sign-in. That check fails onquattro(the first case adds an account) and passes with this change; all 29 checks pass, including the existing--reauth <account>cases.shellcheck -S warningis clean.🤖 Generated with Claude Code