fix(webui): keep version checks on the gateway event loop (#6376)

* fix(webui): keep version checks on the gateway event loop

* fix(webui): keep update channel failures factual

Note: CI failed, but it’s not related to this PR.
This commit is contained in:
chengyongru authored and GitHub committed 2026-10-21 23:08:35 +08:00
1 parent 29d1600837
commit 4dc695ca76
15 files changed
+118 -51

No files matched your search

+1 -1
View File
@@ -54,7 +54,7 @@ describe("Installation-owned release channels", () => {
expect(selector).toBeVisible();
expect(screen.queryByText("Saving…")).toBeNull();
expect(screen.queryByText("Update preference saved")).toBeNull();
expect(screen.getByText(/Could not verify/)).toBeVisible();
expect(screen.getByText("Could not check this update channel.")).toBeVisible();
expect(screen.queryByText("You're up to date")).toBeNull();
expect(screen.getByLabelText("Draft")).toHaveValue("Keep writing");
expect(fetcher).toHaveBeenCalledWith("/api/settings/version-check?channel_status=1", expect.any(Object));