Skip to content

Preserve modes and symlinks in remaining config rewrites - #96

Open
AnPod wants to merge 4 commits into
review/upstream-quattro-2026-10-15from
fix/config-rewrite-preservation
Open

AnPod wants to merge 4 commits into
review/upstream-quattro-2026-10-15from
fix/config-rewrite-preservation

Conversation

@AnPod

@AnPod AnPod commented Oct 15, 2026

Copy link
Copy Markdown
Owner

VS Code theme registration, dictation backend selection, and the Quattro sleep-lock unit repair still replace existing configs with 0600 temporary files. This changes user-selected modes and replaces dotfile symlinks.

Resolve each existing config to its referent, stage beside that target, preserve its mode, and publish with an atomic rename. Failed transforms or publications return failure, retain the original, and clean the stage file. A symlinked empty .obsolete registry remains linked; an ordinary empty registry keeps its existing cleanup behavior. Newly created registries and dictation configs retain their private defaults.

Addresses the three uncovered command sites documented in omacom/omarchy#9326. The migration and shell-config sites covered by omacom/omarchy#12250, and the Claude/Pi and display-text-size work in omacom/omarchy#13983 and omacom/omarchy#13990, are outside this patch.

Validation:

  • New regression covers normal/private/group-writable modes, relative symlinks, read-only targets, repeated rewrites, invalid input, injected transform/chmod/mktemp/rename failures, and top-level error propagation. Restoring each affected command to upstream independently makes the regression fail.
  • Existing VS Code, dictation, and upgrade suites, the full ./test/cli suite, Bash syntax checks, and git diff --check pass.
  • The upgrade test loads only its repair function in a temporary home; no system upgrade is run. Preservation covers file modes and symlinks.

Upstream submission: Open this change against omacom/omarchy. This review targets a snapshot of upstream quattro at 246f33a2fef66411c990860d88e0823ae83987fc; the GitHub integration cannot create PRs in the upstream repository.

@AnPod
AnPod marked this pull request as ready for review October 15, 2026 15:01
ryanrhughes and others added 3 commits October 15, 2026 11:53
…macom#15557)

Only its hardware setup installs it, so without a listing the ISO's
offline mirror lacks it and an install on a ProArt stops on "target not
found".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants