Skip to content

Warn that a snapshot restore leaves migrations marked as run - #15159

Merged
omarchybot merged 1 commit into
omacom:quattrofrom
namespaceMarcello:docs/snapshot-restore-migrations
Oct 29, 2026
Merged

omarchybot merged 1 commit into
omacom:quattrofrom
namespaceMarcello:docs/snapshot-restore-migrations

Conversation

@namespaceMarcello

Copy link
Copy Markdown
Contributor

The System snapshots chapter says a restore brings back the root filesystem and leaves /home and ~/.config as 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 next omarchy update skips 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-migrate on quattro (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

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

greptile-apps Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Low impact] This documentation change appears safe to merge.

Summary

Adds a warning to the system snapshots chapter.

  • Snapshot guidance explains why updates can skip rolled-back migrations.

Reviews (1) · Last reviewed commit: "Warn that a snapshot restore leaves migr..." · Reviewed by Greptile

@omarchybot omarchybot added documentation Improvements or additions to documentation verified Omarchy Triage has verified that this issue is ready for final review ready Good to merge labels Oct 17, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

Reviewed as a documentation-only change. Nothing runs, so no worker was used; the paragraph was checked against quattro instead, and every claim in it holds:

  • Migration markers default to ~/.local/state/omarchy/migrations (bin/omarchy-migrate:32), and a migration runs only when its marker is absent (bin/omarchy-migrate:91).
  • Snapper is configured for / alone (install/config/snapper.sh, default/snapper/root), and omarchy-snapshot restore hands off to limine-snapper-restore without touching migration state.
  • omarchy update takes the snapshot before upgrading packages and running omarchy-migrate (bin/omarchy-update), so that update's migrations are exactly the ones a restore to its snapshot leaves marked as done.
  • The term is already introduced to users in manual/30-updates.md, and the paragraph is on one line as the manual's style asks.

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 documentation, verified and ready, and waits on the maintainer.

@omarchybot
omarchybot merged commit 45ca581 into omacom:quattro Oct 29, 2026
1 check passed
@emirb emirb added this to the 4.5 milestone Nov 5, 2026
berenddeboer pushed a commit to berenddeboer/omarchy that referenced this pull request Nov 6, 2026
…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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation ready Good to merge verified Omarchy Triage has verified that this issue is ready for final review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants