Skip to content

feat(dsh): check for PowerContext updates in the status panel - #2614

Merged
hidb4ai merged 3 commits into
masterfrom
codex/dsh-panel-updates
Nov 13, 2026
Merged

hidb4ai merged 3 commits into
masterfrom
codex/dsh-panel-updates

Conversation

@knqiufan

@knqiufan knqiufan commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

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?

  • Add a single-line footer with release notes on the left, and a check control and the running plugin version on the right. The control becomes Update when an eligible target is available. Status and restart guidance are available through the control's tooltip and accessible status text. The running Server version and its upgrade guide are in Technical details.
  • The authenticated local DSH owner surface checks releases shortly after Host startup and hourly thereafter, even if the panel is closed. A manual check resets the hourly interval. Checks never install an update.
  • Match Python and npm releases across version spellings. Verify the exact plugin package through DSH's native manager and confirm the Server wheel against the published release digest before advertising it.
  • After the owner clicks Update, revalidate the active profile's installation source, matching Server version and active turns. DSH installs the selected plugin version in the background and the panel shows the running version after activation. Linked checkouts, archives, custom sources and unsupported hosts keep their manual path. Server updates remain operator-managed.
  • Update the English and Chinese guides and regenerate the shipped DSH bundles.

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), and make dsh-runtime-test (19 tests). Fake-clock tests verify startup and hourly checks, manual rescheduling, disposal, and that the timer cannot install a package.
  • The packaged DSH 0.2.2-rc.1 Web 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.
  • The real macOS Desktop 0.2.2-rc.1 window 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 activated 1.5.1 from 1.5.0. This used a real PowerContext Server 1.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).

@hidb4ai hidb4ai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment on lines +198 to +200
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')

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@hidb4ai hidb4ai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hidb4ai
hidb4ai merged commit e1b0374 into master Nov 13, 2026
40 checks passed
@hidb4ai hidb4ai added the 1.5.2 v1.5.2 release tracking label Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.5.2 v1.5.2 release tracking

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(dsh): check for PowerContext updates from the status panel

3 participants