🤖 feat: add extension registry + migrate right sidebar panes #2073
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.
Summary
Adds a minimal, in-process renderer extension system (registry + loader) and migrates the right-sidebar Review, Explorer, and Costs/Stats panes into first-party extensions.
Background
Mux’s right sidebar tabs were previously wired via hardcoded registries and large conditional blocks, which made it difficult to extract features cleanly or add new panes without touching core layout code.
Implementation
ExtensionRegistrycontribution model for right-sidebar tabs.ExtensionRegistryProviderand builtin loader with try/catch so a broken builtin extension can’t brick startup.RightSidebarto render labels/panels via registry contributions, preserving existing tab IDs and terminal/file tab behavior.mux.review: Review pane (src/extensions/review/...)mux.metrics: Costs + Stats (src/extensions/metrics/...)mux.explorer: File explorer + fileExplorer utilities (src/extensions/explorer/...)Validation
make static-checkRisks
ext:*) and unknown/unregistered tabs render a safe placeholder panel.fileExplorer) are now extension-owned and imported by a couple of existing consumers; this is intended but does slightly broaden the “extension folder as shared home” pattern.Generated with
mux• Model:openai:gpt-5.2• Thinking:xhigh• Cost:$2.03