Repository navigation
Conversation
pacman replaces the script while bash still holds the unlinked inode, so the next toast uses the new helper with the old argv. Fixes omacom#8613
There was a problem hiding this comment.
Pull request overview
Restarts the crash watcher after updates to prevent version-skew notification failures.
Changes:
- Adds a best-effort
try-restartafter shell restart. - Adds regression coverage for the restart command.
Tip
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
bin/omarchy-update-restart |
Restarts the active crash watcher after updates. |
test/shell.d/crash-capture-test.sh |
Asserts update restart integration. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
quattro split omarchy-update-restart into --services-only and --reboot-only phases. The crash-watch restart goes in the services phase, beside the shell restart: it is service work, and the reboot phase runs after the user hooks with nothing left to restart. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The services phase now runs systemctl --user try-restart, and without a stand-in the test restarted the crash watcher of whoever ran the suite. The stub also pins the restart to the services phase. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Reviewed and verified on a worker built from the Omarchy ISO. The fix holds, and I pushed two commits so it merges into What changed on your branch. Since you opened this, Reproduction. On the worker I restarted the watcher and replaced
With the watcher stopped, as Tests on the worker. Review. Reviewed by Claude Opus 5.5. The second opinion (Codex Medium) did not run: it answered a ping, but omabot's daily review budget was spent before it could look at this. No other model has checked this change. No other open pull request touches #8613. The change is proportionate: one line in the place that already restarts the shell after every update. It covers the next change to the watcher too, which a one-off migration would not. This now waits on a second-opinion review and on CI, then on the maintainer. |
[Medium impact] The PR appears safe to merge; no actionable issues remain. SummaryRestarts
Reviews (4) · Last reviewed commit: "Merge quattro into fix/restart-crash-wat..." · Reviewed by Greptile |
quattro folded omarchy-system-reboot into omarchy-system, so the restart phase test stubs omarchy-system beside systemctl. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
This stopped merging into The merge. Reproduction, at a44820a. I restarted the watcher, replaced
With the watcher stopped, as Tests on the worker. Review. Reviewed by Claude Opus 5.5. The second opinion, Codex Medium, reviewed this head and found no defects. It agreed that the fix is proportionate and that the services phase is the right place, because Related. This fixes #8613, and no other open pull request does. #7155 restarts the watcher once, in a migration for its own change, so the two don't compete. They do both add lines at the same spot in This now waits on the maintainer. |
quattro removed the shell tests that only grep source text (omacom#16334), which conflicted with the grep this branch added to crash-capture-test.sh. Take quattro's file: update-restart-phases-test.sh already proves the restart by running omarchy-update-restart with a stubbed systemctl. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Want your agent to iterate on Greptile's feedback? Try greploops. |
|
This stopped merging into The merge. What ran on the worker. I replaced Second opinion. Codex Medium and muse-wonder (via pi, thinking high) each reviewed the merged head, including the conflict resolution, and found nothing wrong. They agreed with my reading, and their independence is not guaranteed. Nothing is left for you to do. It is waiting on the maintainer. |
quattro moved the omarchy-restart-shell stub into the shared sudo boundary fixture (omacom#17524), which conflicted with the systemctl stub this branch adds to update-restart-phases-test.sh. Keep quattro's list and add systemctl to it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
This stopped merging into The merge. What ran on the worker. I replaced Second opinion. Codex Medium and muse-wonder (via pi, thinking high) each reviewed the merged head, including the conflict resolution, and found nothing wrong. They agreed with my reading, and their independence is not guaranteed. muse-wonder pointed out that a libalpm hook would run inside pacman's root transaction, where there is no user bus to reach the watcher's unit, which backs your choice of Nothing is left for you to do. It's waiting on the maintainer. |
What: Restart
omarchy-crash-watchfromomarchy-update-restartafter an update.Why: Fixes #8613.
pacmanreplacesbin/omarchy-crash-watchwhile the running process still holds the unlinked inode (fd 255). The next journal toast then execs the newomarchy-notification-sendwith the old argv, so notifications fail.How:
systemctl --user try-restart omarchy-crash-watch.serviceafter the existing shell restart. try-restart is a no-op if the watcher is stopped, so crash-capture-off stays off. Rejected a one-shot migration: it would not cover the next script change. Restarts belong here, not in a migration (same rule as the shell).Verified:
bash -n bin/omarchy-update-restartomarchy-update-restartcontainstry-restart omarchy-crash-watch.serviceUnknown option:) #8613 (comment)NOT verified:
systemctl --user try-restart(Windows; no user systemd / Hyprland)test/shell.d/crash-capture-test.sh(needsjq+ journal stubs beyond the new grep)test/all, pacman, omarchy-iso