feat(update): integrate managed installs and recoverable in-app updates (#6168)

Add owner-aware Stable and Preview updates with explicit consent, verified release plans, protected process handoff and bounded service recovery. Keep configuration and conversations separate from program rollback.

Include the compact About controls, Windows long-path support, native package recovery checks and optional macOS Dock lifecycle integration. Preserve documented guidance for installations owned by other managers.

This code integration does not publish packages, enable signing or advance the public update channel.

Co-authored-by: chengyongru <61816729+chengyongru@users.noreply.github.com>
This commit is contained in:
Xubin Renandchengyongru authored and GitHub committed 2026-10-21 19:16:56 +08:00
1 parent 76da55994b
commit fbb61a373f
216 files changed
+27948 -1084

No files matched your search

+10 -2
View File
@@ -402,6 +402,9 @@ describe("App layout", () => {
}] },
});
render(<App />);
// Await the lazy module itself; cold Vite transformation is not the task
// capability contract exercised by the timed DOM assertions below.
await act(async () => { await import("@/components/thread/ThreadShell"); });
await screen.findByRole("textbox", {}, { timeout: 5_000 });
if (supported) await screen.findByRole("button", { name: /Config check Running/ });
else expect(screen.queryByText("Config check")).not.toBeInTheDocument();
@@ -3122,11 +3125,15 @@ describe("App layout", () => {
});
it("opens the settings view from the sidebar footer", async () => {
mockFetchRoutes({ "/api/settings": baseSettingsPayload() });
mockFetchRoutes({
"/api/settings": baseSettingsPayload(),
"/api/settings/version-check": { updateAvailable: null },
});
render(<App />);
await waitFor(() => expect(connectSpy).toHaveBeenCalled());
fireEvent.click(within(screen.getByRole("navigation", { name: "Sidebar navigation" }))
.getByRole("button", { name: "Settings" }));
await act(async () => { await import("@/components/settings/SettingsView"); });
const nav = await screen.findByRole("navigation", { name: "Settings sections" });
for (const name of ["Overview", "Appearance", "Models", "Capabilities", "System", "Advanced", "About"]) {
expect(within(nav).getByRole("button", { name })).toBeInTheDocument();
@@ -3138,7 +3145,8 @@ describe("App layout", () => {
fireEvent.click(within(nav).getByRole("button", { name: "Capabilities" }));
expect(screen.getByRole("switch", { name: "Image generation" })).toBeInTheDocument();
fireEvent.click(within(nav).getByRole("button", { name: "About" }));
expect(await screen.findByRole("button", { name: "Check for updates" })).toBeInTheDocument();
expect(await screen.findByText("You're up to date")).toBeInTheDocument();
expect(screen.getByRole("button", { name: "Check again" })).toBeInTheDocument();
});
it("restores the settings section from the URL hash after a page reload", async () => {