Repository navigation
Conversation
Confidence Score: 4/5
[Medium impact] The changes affect bounded parts of the shell's installed-plugin workflow. Fix the missing app-library methods before merging so cloned docks can open their app grid and activate windows. Findings
Fix with agent prompt### Issue 1
shell/shell.qml:659-660
After `omarchy plugin clone omarchy.dock`, the dock receives an `appLibrary` object that lacks methods it calls. Opening the app grid calls the missing `refreshVersions()` in `AppGrid.qml:58` and throws before `opened` becomes true, so the grid never appears. Clicking a running app calls the missing `dockClickMode()` in `Dock.qml:229` and stops before activating its window. The grid also expects `version()`.
Extend `PluginAppLibraryApi` and its host callbacks with these dock methods before giving it to dock clones.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.SummaryThe PR lets service startup continue when
Reviews (1) · Last reviewed commit: "Guard read-only omarchyPath assignment a..." · Reviewed by Greptile |
| appLibrary: shell.pluginHasAppLibraryAccess(manifest) | ||
| ? shell.pluginAppLibraryFor(cacheKey, key) : null, |
There was a problem hiding this comment.
After omarchy plugin clone omarchy.dock, the dock receives an appLibrary object that lacks methods it calls. Opening the app grid calls the missing refreshVersions() in AppGrid.qml:58 and throws before opened becomes true, so the grid never appears. Clicking a running app calls the missing dockClickMode() in Dock.qml:229 and stops before activating its window. The grid also expects version().
Extend PluginAppLibraryApi and its host callbacks with these dock methods before giving it to dock clones.
Prompt To Fix With AI
This is a comment left during a code review.
Path: shell/shell.qml
Line: 659-660
Comment:
**Cloned dock actions throw**
After `omarchy plugin clone omarchy.dock`, the dock receives an `appLibrary` object that lacks methods it calls. Opening the app grid calls the missing `refreshVersions()` in `AppGrid.qml:58` and throws before `opened` becomes true, so the grid never appears. Clicking a running app calls the missing `dockClickMode()` in `Dock.qml:229` and stops before activating its window. The grid also expects `version()`.
Extend `PluginAppLibraryApi` and its host callbacks with these dock methods before giving it to dock clones.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.
What changes
Fixes #22007 (see also #18826).
Two papercuts affect cloned and third-party service plugins in
shell/shell.qml:if ("omarchyPath" in inst) inst.omarchyPath = shell.omarchyPaththrowsTypeError: Cannot assign to read-only property "omarchyPath"if a service plugin declaresreadonly property string omarchyPath, aborting the remainder of service initialization (inst.shell,inst.manifest,_servicesregistration).createScopedPluginShell()only grantspluginAppLibraryFor()to plugins with kind"menu". Cloningomarchy.dock(manifest.omarchy.clonedFrom === "omarchy.dock", kind"service") leavesshell.appLibrary === null, preventing cloned docks from reusing the host app library.Changes:
pluginHasAppLibraryAccess(manifest)returningtruefor"menu"plugins andclonedFrom === "omarchy.dock"plugins, and use it in bothpluginShellCapabilityProfile()andcreateScopedPluginShell().inst.omarchyPath = shell.omarchyPathintry { ... } catch (_e) {}so a read-only property never aborts service startup.Verification
4.6.0rc3-1(omarchy-shellservice plugin lifecycle withcustom.dockcloned fromomarchy.dock).inst.shell = shell.pluginShellFor(manifest)wiring checked bytest/shell.d/plugin-auth-boundary-test.shremains intact.Screenshots
No visible change: built-in plugins are unaffected; guards service startup when
omarchyPathis declared read-only and provides the scopedappLibraryfacade to clonedomarchy.dockservices.Filed by Gemini 4 Carbon via Antigravity.