Skip to content

Keep plugin services alive when saving shell settings - #17552

Open
Pillumz wants to merge 1 commit into
omacom:quattrofrom
Pillumz:fix/preserve-services-config-reload
Open

Pillumz wants to merge 1 commit into
omacom:quattrofrom
Pillumz:fix/preserve-services-config-reload

Conversation

@Pillumz

@Pillumz Pillumz commented Nov 4, 2026 •

Copy link
Copy Markdown

What changes

Saving bar or dock settings could briefly stop third-party plugins. When the temporary directory and the home directory are on different filesystems, mv copies the new settings into place. The running shell could read an empty shell.json during that copy and apply defaults that disable those plugins.

The writer now creates the temporary file beside shell.json and renames it into place once the write finishes. Readers see either the old settings or the complete new settings.

#18096 addresses the same bug. #11096 and #12250 also include this fix alongside changes to how symlinks or file permissions are handled.

Verification

  • bash test/shell.d/config-test.sh: passed. With the temporary directory and test home on separate filesystems, the new check rejects the original writer’s cross-filesystem move and passes with the fix.
  • In a desktop VM, a third-party plugin stayed running while moving the bar to all four screen edges.
  • The full shell suite had one failure: a background-transition check in background-intro-lifecycle-test.sh. The same check failed on the unchanged parent revision.

Authored by GPT-6.1 Sol; GPT-6 Astra and Kimi K3.1 Pro independently reviewed the writer and regression check and reported no blocking concerns.

Screenshots

No visible change: the bar and dock render as before.

@Pillumz
Pillumz marked this pull request as ready for review November 4, 2026 14:01
@greptile-apps

greptile-apps Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Summary

Stages updates beside shell.json so saving bar or dock settings replaces the file with an atomic rename, even when the default temporary directory is on another filesystem.

  • Bar and dock saves replace shell.json in one step.

Acknowledged scope from Pillumz: preserving destination symlinks and existing file permissions is deferred to the broader overlapping PRs. Pillumz also reports the same background-transition test failure on the unchanged parent revision; that failure remains outside this change.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  A[Save bar or dock settings] --> B[Create private temporary file beside shell.json]
  B --> C[Write completed JSON]
  C --> D[Rename over shell.json]
  D --> E[Refresh running shell]
Loading

Reviews (1) · Last reviewed commit: "Replace shell settings atomically across..." · Reviewed by Greptile

@omarchybot

Copy link
Copy Markdown
Collaborator

Source review by GPT-6 High in Codex covered the atomic-write change, its cross-filesystem regression check, the base writer, and the overlapping diffs in #11096, #12250 and #18096. No worker tests were run.

Classification is unsettled: I classified this as a bug, but the classification service returned no valid second answer. The configured review models answered an availability check, which did not review this PR. No labels were applied; this is waiting for classification to be resolved before verification or a decision about the overlapping fixes.

@omarchybot omarchybot added the bug Something isn't working label Nov 22, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

Source review at 60a41747ca5d894562760ce9c97440a7b4892c17 covered the config writer, its bar/dock callers, the shell reload path, the regression check, and the diffs of #11096, #12250 and #18096. The agreed classification is now bug, resolving the previous classification blocker.

For the atomic-writer fix, the oldest candidate, #11096, already stages beside the resolved destination and also preserves symlinked configs. This PR adds a useful cross-filesystem regression check that #11096 lacks. I queued that check, together with the staging-failure diagnostic, for #11096's own session to incorporate with credit to @Pillumz. The rename-only test stub needs to accept that branch's leading mv -- argument.

The comparison was reviewed by GPT-6 in Codex (reasoning effort not exposed), Opus 5.5 High, and muse-wonder via pi, thinking high. Both second-opinion reviewers favored #11096; independence is not guaranteed. No worker tests or reproduction ran because this candidate stopped at the competing-fix comparison. No code was changed. This remains open, waiting on the maintainer's choice between the overlapping fixes.

omarchybot added a commit to t4t5/omarchy that referenced this pull request Nov 22, 2026
Fold the rename-only regression and staging-failure diagnostic from omacom#17552. Accept the leading mv -- argument and report an explicit skip when no second filesystem is available.

Co-Authored-By: Pillumz <explify@gmail.com>

Co-Authored-By: GPT-6 (Codex, effort not exposed) <noreply@openai.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants