Repository navigation
Ask for the password once when switching channel - #20403
Conversation
omarchy-update records where its output starts in the log and the analyzer reads from there, so output logged ahead of it by a channel switch can neither hide the update's failed build nor be blamed on it. Without a usable offset the whole log is read, as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-Authored-By: Opus 5.5 High <noreply@anthropic.com>
sudo remembers a password per terminal. The switch ran sudo itself, then handed off to omarchy-update, which re-ran under script(1) in a new terminal and asked again. The switch now starts that log first, so both share one terminal and one authorization. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Confidence Score: 5/5
[Medium impact] The PR appears safe to merge; no actionable issues remain from this review. SummaryChannel switching starts the update log before its first sudo call, so the switch and update share one terminal. The update passes its starting byte offset to the analyzer, keeping earlier switch output out of its checks.
|
AGENTS.md asks for the area's existing test file over a new one. The fallback checks read a log holding only a failed build, so reading the whole log and reading none of it can no longer pass alike. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-Authored-By: Opus 5.5 High <noreply@anthropic.com>
|
Reproduced the password prompt bug at The worker passed GPT-6 in Codex (reasoning effort not exposed) checked the call sites and the worker results. Opus 5.5 High and muse-wonder via pi, thinking high, completed the comparison with #13479 and #13616: those changes address the retired revocation policy or keep the original terminal's authorization alive, and neither fixes the update opening another terminal. Their agreement is recorded with independence not guaranteed. The separate full review command was terminated by SIGTERM (exit 143), so it is not counted as a completed full review; both reviewers answered a subsequent health check. Verification is recorded, and this waits on the maintainer for the remaining review. |
* Check only the update's own output for initramfs failures omarchy-update records where its output starts in the log and the analyzer reads from there, so output logged ahead of it by a channel switch can neither hide the update's failed build nor be blamed on it. Without a usable offset the whole log is read, as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-Authored-By: Opus 5.5 High <noreply@anthropic.com> * Ask for the password once when switching channel sudo remembers a password per terminal. The switch ran sudo itself, then handed off to omarchy-update, which re-ran under script(1) in a new terminal and asked again. The switch now starts that log first, so both share one terminal and one authorization. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Check the update log offset in the existing update sequence test AGENTS.md asks for the area's existing test file over a new one. The fallback checks read a log holding only a failed build, so reading the whole log and reading none of it can no longer pass alike. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-Authored-By: Opus 5.5 High <noreply@anthropic.com> --------- Co-authored-by: Omarchybot <317366263+omarchybot@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>


Switching channel from the menu (Update > Channel) asks for the password twice, about a minute apart.
omarchy-channel-setruns sudo itself to refresh pacman and swap the Omarchy packages, then hands off toomarchy-update, which re-runs itself underscript(1)to write/tmp/omarchy-update.log.scriptopens a new pseudo-terminal, and sudo's cached authorization belongs to the terminal it was given on, so the update asks again.omarchy-channel-setnow starts that log itself, exactly asomarchy-updatedoes, before its first sudo. It exportsOMARCHY_UPDATE_LOGGED, so the update it hands off to stays in the same terminal and its authorization carries over. The wrapper sits after the channel and platform checks, so a refused channel leaves the log alone, and before the dev confirmation, because re-running the script from below it would ask that question twice. A cancelled dev switch or a refused dev checkout therefore replaces the previous update's log, as every switch already did when it reached the update.The switch's own package transactions now land in the update log ahead of the update's.
omarchy-update-analyze-logslooked for a successful initramfs build anywhere in the log, so a success during the switch could hide a failed build during the update.omarchy-updatenow records where its own output starts and passes that offset; the analyzer reads only from there, and without a usable offset reads the whole log as before.What this does not cover:
script, so they arrive on stdout rather than stderr, as the update's already do.channel-test.shsetsOMARCHY_UPDATE_LOGGEDlike the other update tests so it keeps checking stderr, and no longer writes the real log.On a 4.6.0-rc1 machine in QEMU, switching to edge from the menu asked for the password twice with the shipped
omarchy-channel-setand once with this wrapper in it.Second opinions from Opus 5.5 High and muse-wonder (pi, thinking high); the analyzer change answers the masking both of them found. Independence between them is not guaranteed.