[PR #3578] [CLOSED] [GUI] Keep Recovered Update Interruptions In History #4695

Closed
opened 2026-11-07 15:38:24 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/3578
Author: @medking82
Created: 10/21/2026
Status: ❌ Closed

Base: main ← Head: codex/update-diagnostics-recovery-20261021


📝 Commits (5)

  • bd8a677 Show recovered update interruptions as history in Settings
  • b1cab16 Merge remote-tracking branch 'origin/main' into codex/update-diagnostics-recovery-20261021
  • a3b2e54 docs(updates): validate recovered history on App 0.2.2
  • 4532a84 [GUI] Reconcile recovered update history with App 0.2.3
  • e78ec73 [GUI] Reconcile recovered update history with App 0.2.6

📊 Changes

16 files changed (+1356 additions, -4 deletions)

View changed files

📝 apps/host/src/components/NativeOperations.tsx (+4 -2)
➕ apps/host/src/components/RecoveredUpdateHistory.tsx (+13 -0)
📝 apps/host/src/components/SettingsUpdates.tsx (+4 -2)
📝 apps/host/src/lib/native-job-diagnostics.ts (+7 -0)
➕ apps/host/tests/native-update-recovery.test.mjs (+71 -0)
➕ docs/media/recovered-update-history.png (+0 -0)
➕ docs/update-recovery/about-history-0.2.2.jpg (+0 -0)
➕ docs/update-recovery/engine-history-0.2.2.jpg (+0 -0)
➕ docs/update-recovery/validation-app-0.2.2.json (+79 -0)
➕ docs/update-recovery/validation-app-0.2.2.md (+57 -0)
➕ docs/update-recovery/validation-app-0.2.3.json (+81 -0)
➕ docs/update-recovery/validation-app-0.2.3.md (+61 -0)
➕ docs/update-recovery/validation-app-0.2.3.tap (+346 -0)
➕ docs/update-recovery/validation-app-0.2.6.json (+158 -0)
➕ docs/update-recovery/validation-app-0.2.6.md (+67 -0)
➕ docs/update-recovery/validation-app-0.2.6.tap (+408 -0)

📄 Description

Problem and result

After the Host restarts during an App update, a saved job becomes error with “The host restarted before completion…” even when a later App update completes successfully. Engine Diagnostics and About continue showing the old interruption as a current failure. This was first observed on Windows with App 0.2.1 / Engine 0.1.46.

The views now show a confirmed recovered interruption as expandable Recovered Update History, retaining the original job, error and details. Only the exact restart interruption followed by a strictly later done update of the same component qualifies. Running/cancelled retries, different components, ordinary failures, missing/invalid times and newer failures remain alerts. Job persistence, updater operations, logs and cached-check behavior stay intact; Settings adds no network request on open.

Approach

Share the recovered-job classification between Engine Diagnostics and About. Current main 011c9e600a93bbc9fd451c563501b5831c32bbca was merged normally in b1cab16e, including App 0.2.2 changes to SettingsUpdates, native data types and update cache. Current head a3b2e54e564ee4e4ce31c653dd5b4fcebb31a55c adds the new validation receipt and anonymous captures to that tested merge. Dependency versions did not change.

Validation

Windows x64, Node v24.12.0, merged App/Host 0.2.2 source. Detailed report and source/hash receipt. Commands from apps/host:

Passed:

  • node --test --test-isolation=none tests/native-update-recovery.test.mjs tests/update-cache.test.mjs tests/ui4-fixes.test.mjs — 29 passed, 0 failed, 0 skipped on the merged App 0.2.2 source. These render the real components, preserve input jobs and reject incorrect recovery cases.
  • npm run typecheck and npm run build passed. Vite's existing large-chunk advisory remains a warning.
  • Actual browser rendering of the new built UI: Engine and About show history instead of an active recovered alert; opening each exposes the original interruption. About shows Strata 0.2.2 / Engine 0.1.47. Synthetic jobs/hardware are served by an anonymous loopback fixture; every mutation returns HTTP 501 (also confirmed by direct POST). No Host/model/updater backend ran.
  • Source and capture hashes match the receipt; git diff --check origin/main...HEAD passed. The QA tab and fixture listener were closed, fixture exit code 0.

Failed:

  • No unresolved failure. Before the original fix, real NativeOperations and SettingsUpdates server rendering retained the obsolete alert (2 expected failures).
  • The earlier fixture's incorrect fonts envelope was corrected in test setup; no product workaround was added. Earlier 28-test/App 0.2.1 evidence remains historical and is superseded by the App 0.2.2 run above.

Not run:

A real installer/update restart, signed installation, native desktop shell, model download/load/inference or GPU workload. Synthetic records establish classification/rendering, not a successful installation. Unknown historical error strings and rollback failures retain existing alert behavior. CUDA/HIP/SYCL/Metal builds are not applicable because no GPU backend files change.

Anonymous UI Example

Unedited captures of the built App 0.2.2 fixture use synthetic job IDs/timestamps, no accounts, private paths, real logs or conversations. Version labels are fixture values.

Engine recovered history

About history and version capture


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/3578 **Author:** [@medking82](https://github.com/medking82) **Created:** 10/21/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `codex/update-diagnostics-recovery-20261021` --- ### 📝 Commits (5) - [`bd8a677`](https://github.com/Niko1221/Strata/commit/bd8a6770b0fe5ede2584753458fb711113597223) Show recovered update interruptions as history in Settings - [`b1cab16`](https://github.com/Niko1221/Strata/commit/b1cab16e396f6b2512bbd164d942a281e7f83152) Merge remote-tracking branch 'origin/main' into codex/update-diagnostics-recovery-20261021 - [`a3b2e54`](https://github.com/Niko1221/Strata/commit/a3b2e54e564ee4e4ce31c653dd5b4fcebb31a55c) docs(updates): validate recovered history on App 0.2.2 - [`4532a84`](https://github.com/Niko1221/Strata/commit/4532a840712cea4df29ac1d67e9f7f78608c3b8b) [GUI] Reconcile recovered update history with App 0.2.3 - [`e78ec73`](https://github.com/Niko1221/Strata/commit/e78ec73ae1c6ae146b3efb7d663ac0d0044dee2c) [GUI] Reconcile recovered update history with App 0.2.6 ### 📊 Changes **16 files changed** (+1356 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `apps/host/src/components/NativeOperations.tsx` (+4 -2) ➕ `apps/host/src/components/RecoveredUpdateHistory.tsx` (+13 -0) 📝 `apps/host/src/components/SettingsUpdates.tsx` (+4 -2) 📝 `apps/host/src/lib/native-job-diagnostics.ts` (+7 -0) ➕ `apps/host/tests/native-update-recovery.test.mjs` (+71 -0) ➕ `docs/media/recovered-update-history.png` (+0 -0) ➕ `docs/update-recovery/about-history-0.2.2.jpg` (+0 -0) ➕ `docs/update-recovery/engine-history-0.2.2.jpg` (+0 -0) ➕ `docs/update-recovery/validation-app-0.2.2.json` (+79 -0) ➕ `docs/update-recovery/validation-app-0.2.2.md` (+57 -0) ➕ `docs/update-recovery/validation-app-0.2.3.json` (+81 -0) ➕ `docs/update-recovery/validation-app-0.2.3.md` (+61 -0) ➕ `docs/update-recovery/validation-app-0.2.3.tap` (+346 -0) ➕ `docs/update-recovery/validation-app-0.2.6.json` (+158 -0) ➕ `docs/update-recovery/validation-app-0.2.6.md` (+67 -0) ➕ `docs/update-recovery/validation-app-0.2.6.tap` (+408 -0) </details> ### 📄 Description ## Problem and result After the Host restarts during an App update, a saved job becomes `error` with “The host restarted before completion…” even when a later App update completes successfully. Engine Diagnostics and About continue showing the old interruption as a current failure. This was first observed on Windows with App 0.2.1 / Engine 0.1.46. The views now show a confirmed recovered interruption as expandable **Recovered Update History**, retaining the original job, error and details. Only the exact restart interruption followed by a strictly later `done` update of the same component qualifies. Running/cancelled retries, different components, ordinary failures, missing/invalid times and newer failures remain alerts. Job persistence, updater operations, logs and cached-check behavior stay intact; Settings adds no network request on open. ## Approach Share the recovered-job classification between Engine Diagnostics and About. Current main `011c9e600a93bbc9fd451c563501b5831c32bbca` was merged normally in `b1cab16e`, including App 0.2.2 changes to SettingsUpdates, native data types and update cache. Current head `a3b2e54e564ee4e4ce31c653dd5b4fcebb31a55c` adds the new validation receipt and anonymous captures to that tested merge. Dependency versions did not change. ## Validation Windows x64, Node v24.12.0, merged App/Host 0.2.2 source. [Detailed report](https://github.com/medking82/Strata/blob/a3b2e54e564ee4e4ce31c653dd5b4fcebb31a55c/docs/update-recovery/validation-app-0.2.2.md) and [source/hash receipt](https://github.com/medking82/Strata/blob/a3b2e54e564ee4e4ce31c653dd5b4fcebb31a55c/docs/update-recovery/validation-app-0.2.2.json). Commands from `apps/host`: **Passed:** - `node --test --test-isolation=none tests/native-update-recovery.test.mjs tests/update-cache.test.mjs tests/ui4-fixes.test.mjs` — **29 passed, 0 failed, 0 skipped** on the merged App 0.2.2 source. These render the real components, preserve input jobs and reject incorrect recovery cases. - `npm run typecheck` and `npm run build` passed. Vite's existing large-chunk advisory remains a warning. - Actual browser rendering of the new built UI: Engine and About show history instead of an active recovered alert; opening each exposes the original interruption. About shows Strata 0.2.2 / Engine 0.1.47. Synthetic jobs/hardware are served by an anonymous loopback fixture; every mutation returns HTTP 501 (also confirmed by direct POST). No Host/model/updater backend ran. - Source and capture hashes match the receipt; `git diff --check origin/main...HEAD` passed. The QA tab and fixture listener were closed, fixture exit code 0. **Failed:** - No unresolved failure. Before the original fix, real NativeOperations and SettingsUpdates server rendering retained the obsolete alert (2 expected failures). - The earlier fixture's incorrect fonts envelope was corrected in test setup; no product workaround was added. Earlier 28-test/App 0.2.1 evidence remains historical and is superseded by the App 0.2.2 run above. **Not run:** A real installer/update restart, signed installation, native desktop shell, model download/load/inference or GPU workload. Synthetic records establish classification/rendering, not a successful installation. Unknown historical error strings and rollback failures retain existing alert behavior. CUDA/HIP/SYCL/Metal builds are not applicable because no GPU backend files change. ## Anonymous UI Example Unedited captures of the built App 0.2.2 fixture use synthetic job IDs/timestamps, no accounts, private paths, real logs or conversations. Version labels are fixture values. ![Engine recovered history](https://raw.githubusercontent.com/medking82/Strata/a3b2e54e564ee4e4ce31c653dd5b4fcebb31a55c/docs/update-recovery/engine-history-0.2.2.jpg) [About history and version capture](https://github.com/medking82/Strata/blob/a3b2e54e564ee4e4ce31c653dd5b4fcebb31a55c/docs/update-recovery/about-history-0.2.2.jpg) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:38:24 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#4695
No description provided.