feat: add web asset rebuilding to update command and consolidate post-restart messages

- Detect web/src/** changes and trigger frontend rebuild after updates
- Add buildWebAssets flag to RestartContext and needsWebBuild to UpdateCheckResult
- Consolidate post-restart progress into single editable message
- Delete progress message after completion, show only final result
This commit is contained in:
syntaxbullet
2026-01-16 16:37:11 +01:00
parent 3c1334b30e
commit afe82c449b
4 changed files with 158 additions and 6 deletions

View File

@@ -97,6 +97,7 @@ async function handleUpdate(interaction: any) {
timestamp: Date.now(),
runMigrations: requirements.needsMigrations,
installDependencies: requirements.needsRootInstall || requirements.needsWebInstall,
buildWebAssets: requirements.needsWebBuild,
previousCommit: previousCommit.substring(0, 7),
newCommit: updateInfo.latestCommit
});