Repository navigation
Read plugin manifests without a process per file at startup - #15163
Merged
Merged
Conversation
dhh
marked this pull request as ready for review
October 12, 2026 14:13
Contributor
|
omarchybot
added a commit
to surim0n/omarchy
that referenced
this pull request
Oct 21, 2026
The merge of quattro took this branch's scanner whole, which brought back the cat and dirname that omacom#15163 replaced with builtins so a scan forks no process per manifest. It also left quattro's plugin-manifest-scan-test.sh building the command without omarchyPath, so it ran bash on "undefined/shell/services/scan-plugins.sh" and failed with 127. An unreadable manifest still prints an empty block and the scan carries on: $(<file) failing inside printf's argument does not trip set -e. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Plugin discovery runs before the shell loads its plugins on every desktop startup. It currently forks
catfor each manifest anddirnamefor each sibling widget manifest. Read manifest contents and parent directories directly in Bash instead.Across 25 scans of the current 39 bundled manifests on this machine, median discovery time fell from 26.5 ms to 3.5 ms. This is a discovery measurement, not a claim of an equivalent reduction in total boot time.
Validation: regression coverage for grouped plugins, sibling widget manifests, local paths with spaces, Unicode, empty files, malformed JSON and trailing whitespace; bundled manifest contract tests; live Quickshell registry contract tests and shell restart/IPC in a disposable VM booted with
omarchy-iso/test/vm-image/vm-bootusing the verified 2026.10.12.442 edge image.Claude reviewed the complete diff and parser and found no actionable correctness or regression issues. Its nonblocking process-count concern was checked with
/proc/self/stat: Bash performs$(<file)in the parent process, whereas ordinary command substitution has a different PID. Greptile feedback will be addressed as it arrives. This PR is to remain unmerged.