You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(plugins): status bar items plugins can update live - #37291
Plugins can now put small items in Orca's status bar, such as a count, a state or a quick action, and update them live. Pressing an item runs one of the plugin's commands.
What Changed
Manifest:contributes.statusBarItems is now a real contribution point (it was reserved and had to be empty): { id, text?, icon?, tone?, tooltip?, command? }, at most 8 per plugin. icon uses the plugin icon set, tone the usual tones, and command must be one of the plugin's own commands. The lowest profile (declarative) is enough for static items. Engine floor 1.4.248.
Live updates: a worker calls orca.host.call('statusBar.update', { id, text, icon, tone, tooltip, visible }). It is a new row in the host-API table (API 1.2), so typings, docs and host.has are generated. Main keeps the values for the session and pushes them to every desktop window. They are cleared when the plugin is disabled, removed or updated, so a re-enable starts from the manifest.
Display: items sit next to the Plugins icon in the status bar, use the existing status bar button style, icons and tone colours, and are hidden in paired web windows like the Plugins icon. The plugin page's "Adds to Orca" lists them.
Docs: regenerated references, schemas, typings and skill references, plus a recipe ("A status bar item a worker updates").
Why
Full modability needs plugins to reach Orca's own surfaces, and the status bar is the most-wanted one (counters, sync state, quick toggles). Declaring items in the manifest and updating them through one host method keeps them native-looking and lets Orca show them before the worker starts. Not audit-logged, because a worker may redraw an item many times a minute.
Linked Issue
N/A (maintainer).
Visual Proof
A dev plugin declares one status bar item (Guard: idle, flag icon, runs guard.check). Pressing it runs the worker command, which calls statusBar.update with 3 blocked and the warning tone.
Before (manifest value):
(screenshot removed: contained real product data)
After the worker's update:
(screenshot removed: contained real product data)
The plugin page's "Adds to Orca" lists the item:
(screenshot removed: contained real product data)
Testing
New tests: manifest validation, the host method and stored state, collecting items (updated, hidden, disabled plugin, older host), clearing on disable/remove/update, rendering and pressing, plugin page row.
pnpm test over shared/main plugins, main/ipc, main/startup, cli, renderer plugins and status bar: all pass. pnpm tc passes.
Risk
Level: Low. Additive; the status bar shows nothing new unless a plugin declares items. Older hosts ignore the field. Paired web clients do not show the items. Item text is not localized (it comes from the plugin). Plain revert.
We couldn't safely recover the incremental review. No full review was started, and the last reviewed checkpoint was preserved. Retry later, or explicitly request a full review by commenting @coderabbitai full review.
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
Trigger review
No actionable comments were generated in the recent review.
Recent review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 9b8e0374-046b-4810-aadb-0390a1e4e5db
Commits
Reviewing files that changed from the base of the PR and between a6c739c and 445cc52.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
Walkthrough
The change adds manifest-defined status-bar items with validation for their fields, commands, and plugin profile. Workers can update declared items through statusBar.update. The main process stores overrides and sends changes to renderer subscribers. The renderer merges overrides with enabled plugins’ contributions and displays eligible items. Plugin manager contribution summaries and authoring references also include status-bar items.
Merge Risk: Low · previous review 445cc
Plugin details may fail to show available status-bar additions, leaving users with incomplete contribution information.
Pre-merge checks: 4 · 1
Failed checks: 1 warning
Check name
Status
Explanation
Resolution
Docstring Coverage
Docstring coverage is 20.83% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documenta…
Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed checks: 4 passed
Check name
Status
Explanation
Title check
The title clearly and concisely identifies the main change: plugins can add status bar items and update them live.
Description check
The description covers the required sections and provides user-facing behavior, implementation details, rationale, visual proof, testing results, risk, and rollback information. The Review and Notes s…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Description check
Explanation
The description covers the required sections and provides user-facing behavior, implementation details, rationale, visual proof, testing results, risk, and rollback information. The Review and Notes sections are omitted, and several checklist items remain unchecked, but the description is mostly complete.
Full details: Docstring Coverage
Explanation
Docstring coverage is 20.83% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 24 functions across 39 files. (1 skipped: 1 unsupported.)
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
Finishing Touches
Generate docstrings
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
update always replaces this.overrides and calls emit(). This happens even when the merged patch equals the stored one. A worker that polls and writes the same text every few seconds sends one IPC message per call to every window. Each message gives the renderer a new overrides identity. That identity re-runs collectPluginStatusBarItems and re-renders the status bar. The statusBar.update spec says calls may happen "many times a minute", so this case is realistic.
Return early when the install is unchanged and the merged patch is shallow-equal to the previous one. The revisions entry must still be set first.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
The reason will be displayed to describe this comment to others. Learn more.
Minor · Functional Correctness · Quick win
Include status-bar items in catalog summaries.
When a catalog release has a contribution summary, PluginAddsSection prefers it over the fetched manifest. This empty array therefore hides its status-bar items before installation, even after the preview loads.
Add status-bar items to both this projection and pluginContributionSummary, which currently omits them. (raw.githubusercontent.com)
…date)
A plugin declares status bar items { id, text?, icon?, tone?, tooltip?,
command? } (declarative profile, engines >=1.4.247); pressing one runs
its own command. A trusted worker changes them with the new worker-only
host method statusBar.update; main keeps the session's changes and
pushes snapshots to desktop windows over plugins:statusBarChanged.
Regenerates schemas, references, typings and the authoring skill.
… catalog summaries
- An item whose command needs a workspace is disabled with no open workspace.
- A dev code edit (new devRevision) drops the old worker's status bar changes.
- Catalog summaries list status bar items, and marketplace details show them.
…l lists them
The skill no longer calls status bar items reserved and gains a row for them. The
dev-load/inspect approval already lists them via the contribution summary; a test pins
that and the fingerprint binding.
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
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.
ELI5
Plugins can now put small items in Orca's status bar, such as a count, a state or a quick action, and update them live. Pressing an item runs one of the plugin's commands.
What Changed
contributes.statusBarItemsis now a real contribution point (it was reserved and had to be empty):{ id, text?, icon?, tone?, tooltip?, command? }, at most 8 per plugin.iconuses the plugin icon set,tonethe usual tones, andcommandmust be one of the plugin's own commands. The lowest profile (declarative) is enough for static items. Engine floor 1.4.248.orca.host.call('statusBar.update', { id, text, icon, tone, tooltip, visible }). It is a new row in the host-API table (API 1.2), so typings, docs andhost.hasare generated. Main keeps the values for the session and pushes them to every desktop window. They are cleared when the plugin is disabled, removed or updated, so a re-enable starts from the manifest.Why
Full modability needs plugins to reach Orca's own surfaces, and the status bar is the most-wanted one (counters, sync state, quick toggles). Declaring items in the manifest and updating them through one host method keeps them native-looking and lets Orca show them before the worker starts. Not audit-logged, because a worker may redraw an item many times a minute.
Linked Issue
N/A (maintainer).
Visual Proof
A dev plugin declares one status bar item (
Guard: idle,flagicon, runsguard.check). Pressing it runs the worker command, which callsstatusBar.updatewith3 blockedand thewarningtone.Before (manifest value):
(screenshot removed: contained real product data)
After the worker's update:
(screenshot removed: contained real product data)
The plugin page's "Adds to Orca" lists the item:
(screenshot removed: contained real product data)
Testing
pnpm testover shared/main plugins, main/ipc, main/startup, cli, renderer plugins and status bar: all pass.pnpm tcpasses.Risk
Level: Low. Additive; the status bar shows nothing new unless a plugin declares items. Older hosts ignore the field. Paired web clients do not show the items. Item text is not localized (it comes from the plugin). Plain revert.
Agent skill upstream boundary
Checklist