Commit Graph
4 Commits
Author SHA1 Message Date
Kelin 281c1a1e14 feat(update): return explicit success summary 2026-03-20 23:14:06 +08:00
Kelin 9ab1ed038e fix: align update fallback with frontend release flow 2026-03-18 15:04:39 +08:00
0d4bcfee27 fix(updater): use explicit branch ref to avoid tracking config issues (#24)
* build(ui): rebuild frontend — remove server URL help text

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix(updater): use explicit branch ref to avoid tracking config issues

git pull --ff-only fails when local branch tracks a deleted remote
branch. Use git fetch origin main:main instead, which always updates
local main regardless of current branch or tracking configuration.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Kelin <kelin@KelindeMacBook-Air.local>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-17 14:39:00 +08:00
KelinandClaude Sonnet 4.6 d1918bfa77 feat: git-based update detection and one-click restart
Add GitUpdateProvider to detect and apply updates without GitHub API:
- scripts/shared/updater.py: check via `git ls-remote`, update via `git pull --ff-only`, restart via os.execv
- ui/app.py: replace frontend_update with three new endpoints:
  GET /api/system/check-update, POST /api/system/update, POST /api/system/restart
- ui/app.py: add POST /api/servers/test-connection for testing server connectivity

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-17 13:32:31 +08:00