Repository navigation
Conversation
|
Verified: No actionable defect found in the reviewed scope at Headless checks using a synthetic theme and the actual activation entry points:
Source inspection also supports the publication rollback and retained recovery-directory design. The separate directory/name operations remain command-failure recovery, not a power-loss or SIGKILL transaction. Review informationTest scope: Targeted headless checks with a stubbed failing renderer and a real-render success control. Desktop hooks, live terminals, and rollback-failure execution are outside these validated checks. Community review: Independent automated community review, unaffiliated with the Omarchy team, intended to help prepare PRs for their review. Automated AI review: Astra Medium initial inspection and evidence-based synthesis, with independent technical assessments by Opus 5.5 High and GPT 6 Sol Xhigh, followed by a fresh Astra Medium editorial check. |
|
Reviewed at What was checked, on a disposable Omarchy VM: a headless activation of Catppuccin Latte from Tokyo Night with Second opinion: none. The configured reviewer, Codex Medium, did not run because its daily review budget was spent. This review is one model's reading (Claude Opus 5.5), plus the worker results above. The conflict. Two changes landed on
Scope. The bug is that a failed copy or render was ignored and the old theme deleted anyway. The smallest fix is to stop on those failures before Related: #11223 (refusing a theme with no palette) touches the same script and complements this rather than competing with it. No other open pull request fixes this bug. Waiting on the author to rebase onto |
12cdaf4 to
d904707
Compare
[Medium impact] The PR appears safe to merge, with a non-blocking delay in removing failed-switch covers on older shells. Findings
SummaryThis PR stops failed copies, palette conversions, and template renders before they replace the active theme.
|
|
Re-reviewed after the rebase, at What was checked, on a disposable Omarchy VM:
Pushed: Second opinion: Codex Medium reviewed two rounds on this head. Beyond the finding above, it agreed that cleanup is correct on every path, including rollback and signals, and that the test file cannot pass vacuously. It had read my brief, so that agreement is not a fully independent check. In its second round it raised an overflow for components of 19 digits or more. I did not act on it: Scope. The rebase keeps the publication rollback, the retained No other open pull request fixes this bug. This is now waiting on the maintainer. |
|
Checked again at The text conflict is one hunk in The failure path needs one more step. On No existing IPC cancels a prepared intro without applying a palette. What was checked: a trial merge of this head into Second opinion: Codex Medium reviewed the same merge independently of the steps above. It found the same single conflict and resolution, and it confirmed that the inode tokens survive the publish. It agreed on the failure-path gap and contributed the The scope point from the last review still stands for the maintainer: the publication rollback and recovery directories go beyond the bug. Waiting on the author to merge |
|
Re-reviewed at What was checked, on a disposable Omarchy VM running this branch's shell:
Second opinion: Codex Medium reviewed this head. It agreed that the merge resolution is correct, that the staged directory's inode token survives both the first-activation rename and the exchange, that the success path still delivers the palette after the cover has timed out, and that the new assertions would fail without the change. It had my questions in its brief, so that agreement is not a fully independent check. It raised one point: Scope, for the maintainer: the publication rollback, retained No other open pull request fixes this bug. This is now waiting on the maintainer. |
|
Re-reviewed after Pushed:
What was checked, on a disposable Omarchy VM running this branch's shell:
Second opinion: Codex Medium reviewed three rounds. It found the retint stub gap in Scope, for the maintainer, unchanged: the publication rollback, retained No other open pull request fixes this bug. This is waiting on the maintainer. |
|
Merged |
|
Re-reviewed at What was checked, on a disposable Omarchy VM. Everything below ran on this head merged with current
Second opinion: Codex Medium and muse-wonder (pi, thinking high) each reviewed this head and found nothing open. Both traced the cover and cancel paths and reached the same result as above. muse-wonder also confirmed that the cancel cannot reach a newer activation's cover while the theme lock is held, and that the moved tests keep their coverage. This review is Claude Opus 5.5 with those two, and their brief named the paths to check, so their agreement is not a fully independent check. Scope, for the maintainer, unchanged from the last review. The publication rollback, the retained No other open pull request fixes this bug. This is waiting on the maintainer. |
|
Merged current On a disposable Omarchy VM running the merged shell, The cropped Foot captures use the generated theme include after that failure: the base loses GPT-6 in Codex (effort setting not exposed) ran these checks. Opus 5.5 High and muse-wonder via pi, thinking high reviewed two rounds; their last round at The scope decision remains with the maintainer: the staging/render checks and intro cancellation address the failure before publication; publication rollback, retained recovery directories and signal handling add more state to maintain. Splitting that recovery behavior would keep the immediate fix smaller. The |
A failed copy, palette conversion or template render used to be ignored, so activation deleted the working theme, published the incomplete one and reported success. Stop on those failures before the swap, make the renderer report its own errors, and cancel a prepared intro cover by token without applying a palette. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
7175554 to
225159a
Compare
|
Cut this down to the fix itself, as the earlier reviews suggested, and rebuilt it on current Kept: the checks before the theme is replaced, the renderer reporting its own failures, and cancelling a prepared intro cover. Dropped: the rollback when writing Review comments above that mention rollback or |
|
Checked the rebuilt branch at GPT-6 in Codex (effort setting not exposed) read the updated change and classified it as a bug fix. The configured second classifier, deepseek-v4p1-flash, returned no valid classification, so the required classification step remains incomplete. The main review panel answered its availability check, but no technical second review, reproduction or test suite was run for this head in this session. Nothing was pushed and no verification labels were added. This is waiting on the maintainer to resolve the classification blocker so verification of the trimmed head can continue. |
A shell an update could not restart does not understand prepareThemeIntroCover. Fall back to its existing prepareThemeIntro call with empty palette payloads so the outgoing cover is still presented before activation replaces its still. Extend the existing older-shell case to reject the new IPC and require the preparation before publication. Co-Authored-By: GPT-6 (effort setting not exposed) <noreply@openai.com> Co-Authored-By: Opus 5.5 High <noreply@anthropic.com>
| shell_ipc shell prepareThemeIntroCover "$OLD_BACKGROUND_SNAPSHOT" "$PREPARED_INTRO_TOKEN" || | ||
| shell_ipc shell prepareThemeIntro "$OLD_BACKGROUND_SNAPSHOT" "$PREPARED_INTRO_TOKEN" "" "" || true |
There was a problem hiding this comment.
Failed switch leaves wallpaper frozen
If an update leaves the older shell running, this fallback prepares a cover through prepareThemeIntro, but that shell has no cancelThemeIntro. If rendering fails, cleanup ignores the failed cancellation and deletes the snapshot while the cover still uses it. The wallpaper can stay frozen until the shell’s ten-second fallback runs.
Keep the legacy path cancellable without applying a palette, or skip early cover preparation when cancellation is unavailable.
There was a problem hiding this comment.
This is the older-shell compatibility limit at e0ae4595, which Opus 5.5 High and muse-wonder via pi, thinking high both considered in their final review; GPT-6 in Codex (effort setting not exposed) checked it on a worker running the previous shell. The old shell has no token cancellation call. Its existing ten-second fallback releases the cover, and its themeColors || themeShell guard keeps the empty preparation payload from changing the palette. The failed render still preserves the active theme and its name.
Skipping preparation would restore the regression this fallback fixes: a successful switch could replace the still under a playing OWE intro before any cover is presented. Adding token cancellation to the new code cannot update a shell that is still running old code. I have kept the existing cover path and left the bounded freeze versus skipping that cover as a decision for the maintainer. The updated shell cancels immediately by token. No further code was changed for this finding.
|
Rechecked the trimmed fix at On a disposable Omarchy VM serving this branch's shell, The cropped Foot captures use a minimal config that loads the generated theme include when it exists. The base capture shows the default palette after that file is lost; the head retains Tokyo Night. The capture with the two scripts reverted matches the base exactly. With the stock Foot config, the missing include instead prevents a new terminal from starting: its config check exits 230 on the base and reverted scripts, and 0 on this head. These images compare palettes, not a full desktop acceptance run. GPT-6 in Codex (effort setting not exposed) ran these checks. Opus 5.5 High and muse-wonder via pi, thinking high reviewed two rounds; both found nothing actionable on the final head. Opus identified the older-shell regression fixed above. Their agreement on the remaining code is not guaranteed to be independent. The fix is labelled |




What changes
When copying, converting or rendering a theme fails,
omarchy-theme-setignores the failure, deletes the working theme, publishes the incomplete one and exits 0. Foot then losesfoot.iniand falls back to its default palette.This stops on those failures before the current theme is touched:
alacritty.tomlpalette, now refuse activation when they fail. A missing overlay is still fine; an unreadable one no longer counts as empty.omarchy-theme-set-templatesruns underset -eand reports its own read and write failures. The cases it skips on purpose (every output already supplied, no templates, noshell.tomlfor an override, empty gradients) still succeed. Decimalrgb()components with a leading zero are read as base 10, whichset -ewould otherwise turn into a refused switch.The theme is still replaced the way it is today, so this does not cover a failure while the new theme is being moved into place.
Related: #11223 decides what to do with a theme that has no palette; this handles failed commands. #19445, #19446, #19467 and #19494 edit the same two colour lookups in the renderer; a sparse theme activates the same way here as on
quattro.Verification
omarchy-theme-set-templatesstubbed to exit 42, switching from Tokyo Night to Catppuccin Latte onquattroexits 0, publishescatppuccin-latteand leaves 7 of the 30 theme files, withoutfoot.ini. On this branch it exits 1 withcould not render the themeand leaves the name and all 30 files unchanged. A retry without the stub publishes Catppuccin Latte. This ran headless in a temporary home with the real built-in themes.theme-staging-test.shcovers failed renders, copies (built-in, packaged, user, nested installed), palette and legacy palette conversion, unreadable sources, the renderer's intended no-op cases, snapshot cleanup, and an intro cover cancelled by token followed by a successful retry. Withbin/omarchy-theme-setreverted toquattro, it fails on its first case.theme-staging-test.sh,theme-templates-test.sh,background-intro-lifecycle-test.sh,theme-intro-switch-test.sh,bin-style-test.shand./test/clipass.Screenshots
A Foot terminal opened after a failed render, captured at an earlier head of this PR; the trimmed change preserves the same files.
Before:
foot.iniis gone and Foot uses its default palette.After:
foot.iniis kept and Foot stays on Tokyo Night.🤖 Generated with Claude Code