Skip to content

Read plugin manifests without a process per file at startup - #15163

Merged
dhh merged 1 commit into
quattrofrom
perf/plugin-manifest-startup
Oct 12, 2026
Merged

dhh merged 1 commit into
quattrofrom
perf/plugin-manifest-startup

Conversation

@dhh

@dhh dhh commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Plugin discovery runs before the shell loads its plugins on every desktop startup. It currently forks cat for each manifest and dirname for 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-boot using 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.

@dhh
dhh marked this pull request as ready for review October 12, 2026 14:13
@greptile-apps

greptile-apps Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Medium impact] The reviewed changes appear safe to merge.

Summary

This PR reads plugin manifests and finds sibling manifest directories directly in Bash instead of starting cat and dirname.

  • Plugin scans read each manifest without extra file processes.

Reviews (1) · Last reviewed commit: "Read plugin manifests without a process ..." · Reviewed by Greptile

@dhh
dhh merged commit 86234a9 into quattro Oct 12, 2026
1 check passed
@dhh
dhh deleted the perf/plugin-manifest-startup branch October 12, 2026 23:40
@emirb emirb added this to the 4.5 milestone Oct 17, 2026
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>
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