Repository navigation
feat(dsh): check for PowerContext updates in the status panel - #2614
Conversation
hidb4ai
left a comment
There was a problem hiding this comment.
No blocking correctness issue found within the documented DSH 0.2.2-rc.1 scope. Merge readiness is still pending: the branch conflicts with current master, and CI preflight was cancelled, leaving the selected checks without a passing run. Public npm currently returns 404 for powercontext-dsh; the native manager check correctly reports artifact_unavailable, so public-registry installation remains unverified.
| const bundle = (await manager?.listBundles())?.find(bundle => bundle.name === PLUGIN_NAME) | ||
| if (!running || !manager || !bundle?.installed || !bundle.enabled || !bundle.updatable | ||
| || !bundle.source || bundle.version !== running.npm) return this.phase('manual') |
There was a problem hiding this comment.
Possible capability gap (non-blocking): DSH 0.2.2-rc.2 now returns update: 'registry' from listBundles() instead of updatable: true (upstream implementation). This condition therefore sends eligible npm installations on that release to the manual path before checking the target. The guide explicitly limits validation to rc.1, so this is outside the verified host scope; please track support for the newer capability shape, including the matching check in apply(), before extending that scope. Git installs (update: 'git') should retain their manual path.
Preserve the Dashboard entry and version controls in the merged DSH panel. Accept the DSH rc.2 registry capability when checking and applying an update, keep Git installs manual, and rebuild the plugin bundles.
Which issue or RFC does this PR close?
Closes #2613. Builds on the status panel from #2569.
Rationale for this change
DSH users should be able to see and update their PowerContext plugin version from the status panel. The plugin and Server share a release tag, but can be installed and upgraded independently.
What changes are included in this PR?
Are there any user-facing changes?
The PowerContext footer provides one version, release notes and a check/update control. Stable is the default channel; preview and version hold can be configured in the DSH patch. There is no public PowerContext Server API change.
How was this change tested?
make check,make docs-test, the plugin unit and package suites (530 unit tests), andmake dsh-runtime-test(19 tests). Fake-clock tests verify startup and hourly checks, manual rescheduling, disposal, and that the timer cannot install a package.0.2.2-rc.1Web Host passed the browser acceptance harness with automatic checking enabled. It verified the compact footer, the actual connected Server version in Technical details, release notes, and the linked install's manual upgrade path.0.2.2-rc.1window discovered an eligible update while the panel was closed. On opening it, the footer showed the blue Update button in one row; clicking it installed and activated1.5.1from1.5.0. This used a real PowerContext Server1.5.1, an isolated profile, and a loopback registry accepted only by the test builds. It does not establish public npm or mirror availability.AI usage statement
Implemented and tested with OpenAI Codex (GPT-6).