Repository navigation
feat(app): load configured GUI plugins in Desktop - #58472
Closed
mortezaPRK wants to merge 4 commits into
Closed
mortezaPRK wants to merge 4 commits into
mortezaPRK wants to merge 4 commits into
Conversation
3 of 6 tasks
Contributor
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
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.
Issue for this PR
Related: #55246.
Stacked on #58471.
I could not open the rest of this stack here because of limits on my account. It is in my fork for now: sidebar, header, panels, menus, main-process entries.
Type of change
What does this PR do?
Desktop loads the configured GUI plugins from its built-in server after startup and registers them with the existing extension host. Through
@opencode/plugin/guia plugin can add commands, open interactive dialogs, keep plugin-scoped storage and open sessions in app tabs. Cleanup runs when a plugin is removed or reloaded. Plugins come from the built-in server; web builds and remote servers are skipped.How did you verify your code works?
bun run checkandbun run lint:changedpass on this branch.packages/app/component-tests/extension-host.spec.tscovers loading, commands, dialogs and cleanup.The flow ran under Playwright against the production Electron build in a Tart macOS VM (1 passed). The manual version is below; it uses the command and dialog example from mortezaPRK#4, which contains this layer.
Screenshots / recordings
Screenshot: mortezaPRK#4 (command and dialog example).
Checklist