Repository navigation
Conversation
[Medium impact] No new blocking defects were found in the changes reviewed. SummaryUpdates
Reviews (7) · Last reviewed commit: "Support QML sequence kinds in manifestHa..." · Reviewed by Greptile |
|
This matches the cloned-menu failure mode in #14761 — Instantiator-exposed |
5008ac5 to
8f479e4
Compare
|
@greptile review |
1 similar comment
|
@greptile review |
|
I read this pull request against #14761. I take it as a bug fix: Its classification is not settled yet, so it has no label and has not been run on a worker. Every item here is classified by two models separately, and the second, Codex Medium, could not run today because its daily review allowance is used up. Only my reading (Claude Opus 5.5) stands so far, and that is not enough to label it or to verify it. One thing to look at when it is verified: the QML fixture in Next: the item will be classified again once a second opinion is available. Nothing is needed from you before then. |
8f479e4 to
32753d9
Compare
32753d9 to
b9f9621
Compare
|
Reviewed at b9f9621 against The bug does not happen on The change itself is correct. The QML half of the new test does not test the shipped code. Competing pull requests. #15053 and #15400 change the same predicate for the same report. This one is the oldest, and neither newer one fixes a case that is reachable here. muse-wonder preferred #15053 because it also accepts a list with no Next: this waits on the maintainer. They need to decide whether |
|
Thanks @Sebo1411. The V4Sequence |
Fixes #14761
Description
When plugins (such as a cloned
omarchy.menulikejr.menu) are instantiated via the panel loader'sInstantiator, accessingpanelEntry.manifestin QML exposes nested JS Arrays as QMLV4Sequence(QVariantList) objects rather than native JS Arrays.As a result,
manifestHasKind()returningArray.isArray(manifest.kinds)returnedfalse. This causedcreateScopedPluginShellto setappLibrary: null, rendering the Apps submenu in cloned menu plugins completely empty ("Nothing here yet").Changes
manifestHasKind()inshell/shell.qmlto accept any sequence-like object implementingindexOf()(typeof kinds === "object" && typeof kinds.indexOf === "function"), while still rejecting non-objects and primitive types like strings to prevent substring matching.shell.manifestHasKind(manifest, "bar")inisBarOptionManifest()for consistency.test/shell.d/cloned-menu-app-library-test.shcovering native JS arrays, sequence-like objects, invalid manifests, and scoped plugin shell wiring.