From e1027ec5d796853cd2683ddd843c0f5e4200095e Mon Sep 17 00:00:00 2001 From: ekko <152005280+EKKOLearnAI@users.noreply.github.com> Date: Sun, 31 May 2026 19:47:04 +0800 Subject: [PATCH] Fix nonblocking preview actions (#1188) --- packages/client/src/api/hermes/system.ts | 8 + .../hermes/settings/GithubPreviewSettings.vue | 83 +++- packages/client/src/i18n/locales/de.ts | 2 +- packages/client/src/i18n/locales/en.ts | 2 +- packages/client/src/i18n/locales/es.ts | 2 +- packages/client/src/i18n/locales/fr.ts | 2 +- packages/client/src/i18n/locales/ja.ts | 2 +- packages/client/src/i18n/locales/ko.ts | 2 +- packages/client/src/i18n/locales/pt.ts | 2 +- packages/client/src/i18n/locales/zh-TW.ts | 2 +- packages/client/src/i18n/locales/zh.ts | 2 +- packages/server/src/controllers/update.ts | 454 ++++++++++++------ tests/server/update-controller.test.ts | 124 ++++- 13 files changed, 522 insertions(+), 165 deletions(-) diff --git a/packages/client/src/api/hermes/system.ts b/packages/client/src/api/hermes/system.ts index b2a9837..a106c8a 100644 --- a/packages/client/src/api/hermes/system.ts +++ b/packages/client/src/api/hermes/system.ts @@ -28,12 +28,20 @@ export interface PreviewStatus { webui_home: string action_log_path: string dev_log_path: string + active_action: string | null + active_action_started_at: string | null + last_action: string | null + last_action_completed_at: string | null + last_action_success: boolean | null + last_action_message: string + last_action_code: string action_log: string dev_log: string } export interface PreviewActionResponse extends PreviewStatus { success: boolean + accepted?: boolean message?: string code?: string } diff --git a/packages/client/src/components/hermes/settings/GithubPreviewSettings.vue b/packages/client/src/components/hermes/settings/GithubPreviewSettings.vue index dfbeb8f..dc1d75f 100644 --- a/packages/client/src/components/hermes/settings/GithubPreviewSettings.vue +++ b/packages/client/src/components/hermes/settings/GithubPreviewSettings.vue @@ -1,5 +1,5 @@