Skip to content

feat: trigger hub upgrade check from settings - #3

Merged
william0wang merged 1 commit into
mainfrom
feat/hub-upgrade-trigger
Aug 23, 2026
Merged

feat: trigger hub upgrade check from settings#3
william0wang merged 1 commit into
mainfrom
feat/hub-upgrade-trigger

Conversation

@william0wang

Copy link
Copy Markdown
Owner

Summary

  • Settings panel (Server section): a "check hub update" button that TRIGGERS
    the hub's self-decided staleness check (bridge 0.11.7 POST /api/upgrade) —
    the restart decision is entirely the hub's own.
  • HubClient.upgrade() + HubUpgradeResult type; store upgradeHub action
    rides out the respawn: polls /api/health (≤30s) once restarting is true,
    then refreshes discovery with ?probe=1.
  • Button states: busy spinner while checking/restarting, result note
    (up-to-date version / restarted-onto version / error) auto-clears after 5s.
  • i18n: en + zh-CN.

Pairs with william0wang/zcode-acp#73.

@william0wang
william0wang merged commit 363e9ad into main Aug 23, 2026
@william0wang
william0wang deleted the feat/hub-upgrade-trigger branch August 23, 2026 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant