Repository navigation
Conversation
|
Two service-loader issues were found at Track pending service loads before starting anotherIn Verified: With the extracted base/head loader in Quickshell 0.3.1, synthetic services and a modeled two-sync scan completion, four services produced four instances on base and eight on head. The head retained both instances of each first-party service under Impact: Repeated synchronization during compilation can leave duplicate service objects outside lifecycle cleanup. For the background service, that risks duplicate surfaces and work; actual desktop surfaces were not tested. A late callback also does not recheck whether the plugin was disabled or replaced while loading. Suggested change: Claim each pending service ID before starting compilation, as Do not grant host parenting from a self-declared clone nameThe new attachment rule accepts any Verified: In the same synthetic QML check:
Impact: A service can bypass its scoped shell facade through the shared object tree. This is a service API-boundary regression, not a demonstrated credential leak or same-process sandbox escape: authentication services remain detached, and plugin code is already unsandboxed. Suggested change: Keep third-party services detached unless the required integration can be granted through host-controlled state or a narrow API. A user-editable clone-name prefix is not provenance. The reported component-load error occurs before Review informationTest scope: Source review and isolated offscreen Quickshell checks using the extracted production loader, synthetic services and modeled registry callbacks. No Wayland compositor, real background surface, or original Community review: Independent automated community review, unaffiliated with the Omarchy team, intended to help prepare PRs for their review. Automated AI review: Astra Medium performed initial inspection and synthesis; Opus 5.5 High and GPT 6 Sol Xhigh completed independent technical assessments. Claims were checked against source and targeted evidence, followed by a fresh Astra Medium editorial check. |
|
Tested in the Omarchy VM running Omarchy 4.0.4-1 with Quickshell 0.3.1: While 1. Duplicate service instances created during asynchronous compilationIn In the Omarchy VM, simulating back-to-back Suggested fix: 2. Self-declared
|
2ff6664 to
2c1c92a
Compare
|
Updated at "2c1c92a5" on current "quattro". Addressed both review findings. Async service loads now take a per-plugin pending claim before compilation. A second sync cannot start another copy, and the completion callback only publishes if it still owns that claim, the same manifest/entry-point is current, and the service is still enabled. Disable/remove/reload invalidates stale claims. I also removed the "clonedFrom" host-parenting exception. Cloned/third-party services are detached again; only first-party non-auth services may be parented to "serviceHost". "clonedFrom" remains descriptive/routing metadata, not trust provenance. The cloned-background entry-point repair remains: clone completion verifies every declared entry point exists and restores a missing one from the built-in source. Added behavioral claim tests for current, superseded, replaced-manifest, changed-URL, and disabled-service cases. Branch is one commit ahead / zero behind current "quattro". Executable Quickshell/Wayland validation still pending. |
Automated AI review
Follow-up to the earlier review of
Verified: In an offscreen Quickshell 0.3.1 check using the extracted loader from each revision and synthetic services: Re-enable, rescans with replaced manifests, a changed entry point, reload, load errors and a The linked issue's symptom is not shown to be fixedIn the same synthetic check, a service whose entry file was missing on its first load logged In Qt 6.11.2 source, the missing-file check and the per-URL cache of the failed load are the same for Impact: The issue's report (the error repeating while Suggested change: Reproduce the clone in a real Quickshell session, logging the first load's resolved URL and whether the file is visible at that moment, and identify that trigger before relying on Optional test improvement: The new loader coverage checks the pure Optional: Review informationTest scope: Source review of the current head, Qt 6.11.2 and Quickshell 0.3.1 source, plus isolated offscreen Quickshell 0.3.1 checks using the extracted production loader from base, AI process: Opus 5.5 Medium coordination and synthesis; independent Opus 5.5 Xhigh and GPT 6 Sol Xhigh technical assessments, with targeted follow-up questions; Opus 5.5 Medium editorial check. Opt out: To stop receiving these reviews, reply to this comment saying so. |
|
Reviewed at What ran, and where. An Omarchy ISO worker, with the shell serving the merge base
Overlap. The per-plugin pending claim and the revalidation before publishing are the mechanism #11492 (opened 2026-09-12) already proposes. The older one keeps it unless it is shown to miss a case. Second opinion (Codex Medium). It agreed that neither the async switch nor the clone check affects a cached failed load, and that the new clone assertions pass on base. It may have read this review's working notes, so that agreement isn't independent. It also pointed out that Nothing was pushed. Waiting on the maintainer to decide what to do with this alongside #11492, and on finding the first-load trigger behind #12959. |
What
Fixes the cloned "omarchy.background" service load path without widening the plugin trust boundary.
Why
"omarchy plugin clone omarchy.background" could leave an enabled clone whose "Background.qml" failed to load with a spurious "No such file or directory".
The first version switched service loading to "Component.Asynchronous", but review found two additional problems:
This revision keeps the async loading fix while closing both ownership boundaries.
Invariants
A logical service ID may have at most one current in-flight load.
A late asynchronous callback may publish only if it still owns that service ID and the plugin is still the same enabled service with the same entry point.
Plugin-authored clone metadata cannot grant host-tree access.
Tests
"plugin-clone-test.sh" covers the cloned background artifact:
"plugin-auth-boundary-test.sh" now covers:
Verification status
Rebuilt as one commit on current "quattro" ("28ceaae7").
Executable Quickshell/Wayland verification has not been rerun from this environment, so the original live cloned-background symptom remains the final integration check.
Fixes #12959.