Repository navigation
Warn that a snapshot restore leaves migrations marked as run - #15159
omarchybot merged 1 commit into
Conversation
The record of which migrations have run lives under the home directory, which a restore leaves alone, and a migration runs only when its marker is missing. After a restore the migrations of the rolled-back update stay marked as done while their changes to the root filesystem are gone, and the next update skips them. Say so in the System snapshots chapter, next to the note about ~/.config. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
|
Reviewed as a documentation-only change. Nothing runs, so no worker was used; the paragraph was checked against
Second opinion: Codex at medium effort, two rounds. Its first round asked for a user-facing recovery step and for softening "likely". The first reviewer (Claude Opus 5.5) proposed rejecting both: recovery is the open question in #9828, which this deliberately leaves alone, and after a restore and a fresh update a skipped migration is the part of the pipeline that leaves an earlier update's setup missing. Codex's second round upheld both rejections and was clean; that round agreed with reasoning already written down, so it should not be read as fully independent. No changes were pushed. This does not close #9828, which stays open for the fix itself. It is labelled |
…15159) The record of which migrations have run lives under the home directory, which a restore leaves alone, and a migration runs only when its marker is missing. After a restore the migrations of the rolled-back update stay marked as done while their changes to the root filesystem are gone, and the next update skips them. Say so in the System snapshots chapter, next to the note about ~/.config. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 45ca581)
The System snapshots chapter says a restore brings back the root filesystem and leaves
/homeand~/.configas they are. It does not say that Omarchy's own record of which migrations have run is one of the things left as it is. The markers live under the home directory, and a migration runs only when its marker is missing. So after a restore, the migrations of the rolled-back update stay marked as done while their changes to the root filesystem are gone, and the nextomarchy updateskips them. #9828 reports exactly that, and it was reproduced in that thread.This adds one paragraph saying so, next to the note about
~/.config, in the chapter's own terms. It stops at the warning on purpose: where the record should live, and whether a restore should lead to a re-run, is the open question in #9828, and the same thread found that replaying every migration is not something to recommend blindly.Validation: documentation only. The paragraph was checked against
bin/omarchy-migrateonquattro(defbf90): the state directory defaults to a path under$HOME, and a migration runs only when its marker file is absent.Written by Claude Code (AI assistant) on behalf of @namespaceMarcello, who directs this work.
🤖 Generated with Claude Code