Repository navigation
Conversation
[Medium impact] The reviewed update appears safe to merge. SummaryShell edits now read the current
|
|
Reviewed at fe58aba, and the fix holds. On a disposable Omarchy worker running the real shell, I edited Tests ran on the worker against this branch merged with current Second opinion: Codex Medium reviewed the same head and found no defect. It agreed the cause is fixed and that the error reporting and the refusal of malformed files belong in this change, since falling back to defaults would recreate the overwrite. I had already reasoned the same, so its independence is not guaranteed. Overlap: #14355 (newer) changes the same persistence path in Labelled |
Quattro moved the bar background toggle out of the shell: toggleBarTransparency now cycles it through omarchy-bar, which edits shell.json itself, so the shell-side toggleTransparency this branch made read fresh config no longer exists. Take quattro's cycle in both conflicts and drop the toggle cases from the mutation test; every mutation still made by the shell keeps reading the file fresh. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
This branch stopped merging after The bug is still real on No second opinion on this revision: the configured reviewer (Codex Medium) answers, but the day's review budget was already spent, so the merge has been read only by me. Codex Medium's review of fe58aba, before the merge, found no defect. #14355 still changes the same persistence path in Labelled |
|
Updated the description to match the surviving plugin enable/disable, bar position, drag-reorder and inline-settings paths. The bar background cycle now runs through I reviewed the production changes at For the aggregate comparison, @omarchybot please review @greptileai please re-review |
|
Reviewed at 11a12c1. The new commit only changes the mutation test's fixture: it backgrounds Tested on a disposable Omarchy worker running the real shell from that merge. An external Second opinion: Codex Medium reviewed this head and found no defect in the change. It checked every caller of the mutation functions for the new It also traced a case this PR leaves open, which belongs to #14354 rather than #10885. If a widget saves before the shell has read Labelled |
Quattro's tray section (omacom#15281) added "tray" to the section list in updateEntryInline, which this branch had moved inside mutateShellConfig; the resolution keeps the branch's mutation wrapper and adds the tray section to it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
This branch stopped merging cleanly when #15281 added the bar's Tested on a disposable Omarchy worker running the real shell from each tree. An in-place No second opinion this time. The configured reviewer, Codex Medium, answered a ping, but its daily review budget was spent before it could look at the merge. Its earlier review of 11a12c1 found no defect, but that was before this merge. The merge and the test results above have only been checked by Claude Opus 5.5. Labelled |
|
Resolved the new Inline settings now follow All 33 mutation checks pass, including fresh updates in every bar section and a stale drag source. The registry, clone, bar, drag, tray and CLI suites pass. I have not rerun the full shell suite on this merge. |
mutatePluginBarConfig ignored its mutator's return, so a third-party or cloned bar whose drop was refused (landBarDrag returning false because the layout changed on disk) still wrote shell.json and reported success. Pass the false through so ShellConfigStore skips the write, as it does for the stock bar. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-Authored-By: Codex Medium <noreply@openai.com>
|
Reviewed again at your two new commits. The quattro merge (7dde27d) resolves correctly: I pushed one fix, a8ad77a. Tested on a disposable Omarchy worker running the real shell from each tree. An in-place Second opinion: Codex Medium reviewed 0a324a5 and found the wrapper defect above. That finding was its own, not something I had reasoned about. It reviewed a8ad77a and found nothing open. It also noted that several panels (clock, power, Elsewhen, tray, Tailscale) ignore a failed save and update their local state anyway. That was already true before this PR, so it is not a finding against it. Labelled |
Resolves the conflicts with omacom#14534 and the bar's drag-off removal. Mutations keep reading shell.json fresh through ShellConfigStore, and when the shell is running on defaults because shell.json is unreadable, a change still applies for the session and the file is left as the user left it, as omacom#14534 does. The removal path shares writeLayout with drags, so both now return whether anything was saved and skip the write when nothing changed.
…nusable The session-only fallback for an unusable shell.json keyed off userConfigUnreadable, which the asynchronous watcher sets. A stale flag let every store refusal through, so a mutator that cancelled, threw, met a concurrent edit or failed to save ran again against memory and reported success, and a drag the on-disk guard refused could still move in memory. The store now says when it refused because the file it just read is not a usable config, before running the mutator, and only that refusal falls back; the watcher flag has no other reader and goes. Drag-off removal took its index from the drawn layout and applied it to the freshly read file, so with two same-id widgets reordered on disk it could delete the other one. It now cancels when the layout on disk differs from the one drawn, as a drag does. Co-Authored-By: Codex Medium <noreply@openai.com> Co-Authored-By: muse-wonder High <noreply@meta.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…docs Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
This had started conflicting with
Tested on a disposable Omarchy worker running the real shell from each tree. I made an in-place Second opinion: Codex Medium and muse-wonder (via pi, thinking high) reviewed the merge. Both found the fallback defect, and Codex found the removal one. Neither was something I had reasoned about. Both then reviewed f2f5dc6 and feda743 and found nothing open. Both also judged that #14355 and #12992 fix related bugs in the same write path (#14354 and #12990), not #10885. This PR also stops the startup overwrite #14354 describes, because a mutation reads the file itself. It does not fix #12990's reset to defaults when a truncated file is reloaded. Their independence from my review is not guaranteed. Labelled |
putBarWidget checked presence in the cached config, but the mutation now reads shell.json fresh. A widget added on disk before the watcher caught up was then moved to the requested placement. Check again inside the fresh-config mutation and leave an existing entry where it is. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
put's own check skips a widget whose clone is on the bar, but read the cached config. The check inside the mutation looked only for the widget itself, so a clone written to shell.json before the cache caught up was switched back to the built-in. Use the same relative lookup on the file being changed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks, @sprajs. 4c04a09 fixes what Greptile flagged:
Tested on a disposable Omarchy worker running the real shell, against These pass at 66b69a5, and again with the branch merged with current Second opinion: Codex Medium and muse-wonder (via pi, thinking high) both reviewed 4c04a09 and 66b69a5 and found nothing to change. Both noted a smaller gap that predates this round: Labelled |
Shell config edits currently serialize cached runtime state, potentially erasing external edits or service plugins that have not been ingested. Read the current file synchronously for each mutation and update runtime state only after successful persistence. This covers plugin enable/disable, bar position, drag reordering and inline settings, with persistence errors returned through IPC and the calling commands.
Refuse malformed, unsupported, unreadable or unwritable files rather than replacing them with defaults. Preserve targeted settings replacement, cancel no-op edits and detect changes made during the mutator. Atomic writes avoid partial output but do not serialize independent writers after the final comparison.
Validation: real offscreen Quickshell fixtures with disposable HOME cover stale state, sequential edits, targeted replacement, malformed/partial/missing files, read/write failures, exceptions, concurrent changes and IPC/CLI failure propagation. Existing registry, bar and clone checks pass. The full-suite runs reproduce baseline/environment failures also seen on clean
quattro; they are not fully green. Focused regressions pass.The bar background cycle now runs through
omarchy-barafter #14991 and is outside this shell-side mutation change. #14355 overlaps the same persistence path; the maintainer will need to choose or reconcile the two.Merge order
I recommend landing #13946 first. It fixes the placement error returned through IPC. This PR covers keeping the saved shell configuration current. Both apply independently to
quattroat4d64235cd. Applying this PR after #13946 conflicts inshell/shell.qmlandtest/shell.d/fixtures/plugin-registry/shell.qml. I tried this order onquattroatc6be7abb9. The combined change reads the current file, returns the placement error and skips the write on failure. The real Quickshell registry fixture, 42 config-mutation checks and 22 plugin-cloning checks all passed in a disposable session.Fixes #10885.