fix: harden desktop monitoring recovery
Desktop Client Build / Resolve Build Metadata (push) Successful in 37s
Backend CI / Backend (push) Failing after 9m26s
Desktop Client Build / Build Desktop Client (push) Successful in 22m29s
Desktop Client Build / Publish Client Artifacts to NAS (push) Successful in 35s

This commit is contained in:
2026-06-23 23:12:25 +08:00
parent b4ebf34728
commit 04bd3e42e0
16 changed files with 1329 additions and 164 deletions
+14 -2
View File
@@ -249,19 +249,31 @@ const desktopBridge = {
ipcRenderer.invoke('desktop:set-window-mode', mode, request) as Promise<null>,
onRuntimeInvalidated: (
listener: (event: {
reason: 'account-health' | 'publish-task-lease' | 'publish-task-progress'
reason:
| 'account-health'
| 'publish-task-lease'
| 'publish-task-progress'
| 'playwright-cdp-recovery'
| 'playwright-cdp-fatal'
at: number
accountId?: string
taskId?: string
message?: string
}) => void,
) => {
const wrapped = (
_event: IpcRendererEvent,
payload: {
reason: 'account-health' | 'publish-task-lease' | 'publish-task-progress'
reason:
| 'account-health'
| 'publish-task-lease'
| 'publish-task-progress'
| 'playwright-cdp-recovery'
| 'playwright-cdp-fatal'
at: number
accountId?: string
taskId?: string
message?: string
},
) => {
listener(payload)