Browser-based graphical shell and control plane for a Linux server you own — real terminal, file manager, live metrics and BYOK AI in one mobile-first workspace. Next.js 16 · React 19 · node-pty · Tailwind v4 · shadcn/ui. Public alpha, self-hosted.
TypeScript browser-shellcontrol-planefile-managerhomelabmobile-firstnextjsptyreactself-hostedserver-managementshadcn-uisysadmintailwindcssterminaltypescriptvpsweb-desktopweb-terminal
feat(settings): surface MSO updates in footer
Rahman52bee48ba4b5
diff --git a/AGENTS.md b/AGENTS.mdindex 50444444..2a9cc939 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -57,7 +57,7 @@ When a user asks an agent to "install MSO from this repo" or "update MSO", do nosetup flow. Read `README.md` + `docs/INSTALL.md` and use the repository-owned entry points:- fresh install or legacy install without `mso update`: run the official `scripts/install.sh` bootstrap;-- current install: prefer `mso update` or the equivalent Settings → Account → About action;+- current install: prefer `mso update` or the equivalent Settings → Update MSO action;- never create a second checkout when `mso.service` already owns one; preserve `.env.local`, `~/.mso`,and any dirty/diverged source rather than resetting it;- finish with `mso doctor` plus runtime health, and report only the remaining action the user must take;diff --git a/CLAUDE.md b/CLAUDE.mdindex 736d40b0..ff954650 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -202,7 +202,7 @@ to `resources/` (rr) and drive any project from one manifest:changelog, runs committed pre-push gates/out-of-tree build, pushes the exact SHA, then finalizesthe supported service replacement/chunk verification. Through MSO/MCP, finalization runs in`mso-self-update.service`; completion is proven only when the log ends `UPDATE OK`. Operator- update/recovery is Settings → Account → About or `mso update [--rebuild]`. Do not use a bare in-place+ update/recovery is Settings → Update MSO or `mso update [--rebuild]`. Do not use a bare in-placebuild merely to verify code.- **Service worker** is served from `app/api/sw/route.ts` with a `beforeFiles` rewrite`/sw.js`→`/api/sw`. It caches only icons+manifest, never chunks/HTML, and bakes `BUILD_ID` into@@ -294,7 +294,7 @@ the real runtime and working analogue before changing a tool or skill contract.## Install/update requests from an AI agentWhen a user points an agent at this repository and asks to install or update MSO, the agent must use`scripts/install.sh` / `mso update`, not hand-roll a competing setup. The installer is also the backward--compatible bridge for old installations that predate `mso update` and Settings → Account → About: it detects the+compatible bridge for old installations that predate `mso update` and Settings → Update MSO: it detects theactive service checkout, preserves `.env.local` + `~/.mso`, and updates in place. Never create a secondinstall beside an owned service or reset dirty/diverged source. End with `mso doctor` and health proof.Credential prompts remain hidden/STDIN; tell the user where to create/store a required key, never put itdiff --git a/app/install/page.test.ts b/app/install/page.test.tsindex 883a21f0..7b76fd02 100644--- a/app/install/page.test.ts+++ b/app/install/page.test.ts@@ -24,7 +24,7 @@ describe("public install guide", () => {it("gives AI agents one canonical install/update path including legacy upgrades", () => {expect(source).toContain("Install or update MSO from this repo");expect(source).toContain("mso update");- expect(source).toContain("Settings → Account → About");+ expect(source).toContain("Settings → Update MSO");expect(source).toContain("older build");expect(source).toContain("preserves existing configuration/state");});diff --git a/app/install/page.tsx b/app/install/page.tsxindex 851ee6b8..8501f9b5 100644--- a/app/install/page.tsx+++ b/app/install/page.tsx@@ -107,7 +107,7 @@ export default function InstallPage() {</p><Copy text={AGENT_PROMPT} /><p className="mt-3 text-sm leading-relaxed text-muted-foreground">- Already installed? Current MSO uses <code className="rounded bg-muted px-1 py-0.5 text-[0.85em]">mso update</code> or Settings → Account → About.+ Already installed? Current MSO uses <code className="rounded bg-muted px-1 py-0.5 text-[0.85em]">mso update</code> or Settings → Update MSO.For an older build where those do not exist, re-run the installer above; it upgrades the existing checkout in place and preserves existing configuration/state.</p></section>diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.mdindex 20556221..eaa7b210 100644--- a/docs/ARCHITECTURE.md+++ b/docs/ARCHITECTURE.md@@ -310,7 +310,7 @@ build/restart/final verification to the owner user manager when launched throughBefore push, the out-of-tree build runs required browser journeys against synthetic device/credential stores and a local provider fixture.A successful finalizer ends `~/.mso/self-update.log` with `UPDATE OK`.-For operator updates use Settings → Account → About or `mso update`; use `--rebuild` for the+For operator updates use Settings → Update MSO or `mso update`; use `--rebuild` for thesupported recovery rebuild. See `docs/INSTALL.md`, `docs/DEVELOPMENT.md` and`docs/TROUBLESHOOTING.md`.diff --git a/docs/INSTALL.md b/docs/INSTALL.mdindex 9c0f4973..8bd996e3 100644--- a/docs/INSTALL.md+++ b/docs/INSTALL.md@@ -102,7 +102,7 @@ avoid them unless you are deliberately changing those boundaries.### Upgrading an older MSO install-Modern installations update through **Settings → Account → About** or `mso update`. Releases from before those+Modern installations update through **Settings → Update MSO** or `mso update`. Releases from before thosesurfaces existed cannot invoke an updater they do not have. For those installations, re-run the currentone-line installer exactly as if installing fresh. Before choosing `$HOME/mso`, it reads the active`mso.service` WorkingDirectory and upgrades that checkout in place. Existing `.env.local` credentials and@@ -600,7 +600,7 @@ no API-key storage. Do not toggle demo mode in the production owner checkout.### Operator update-Use Settings → Account → About or:+Use Settings → Update MSO or:```bashmso update status # fetch + show incoming commits and labeled CLI/build identitydiff --git a/docs/MCP.md b/docs/MCP.mdindex 41be4d5e..787a5e8b 100644--- a/docs/MCP.md+++ b/docs/MCP.md@@ -52,7 +52,7 @@ For a public connector use a stable HTTPS origin, normally a named Cloudflare Turandom `*.trycloudflare.com` Quick Tunnel URL as `OS_PUBLIC_ORIGIN`.After changing deployment environment or `OS_MCP_MAX_SCOPE`, use the normal MSO update/rebuild path-(Settings → Account → About or `mso update --rebuild`), then repeat/refresh the OAuth consent flow in ChatGPT so+(Settings → Update MSO or `mso update --rebuild`), then repeat/refresh the OAuth consent flow in ChatGPT sothe connector receives the new scope ceiling. A Git push or editing `.env.local` does not change therunning service by itself, and existing tokens are not magically widened.diff --git a/docs/TROUBLESHOOTING.md b/docs/TROUBLESHOOTING.mdindex addd973a..46e900b7 100644--- a/docs/TROUBLESHOOTING.md+++ b/docs/TROUBLESHOOTING.md@@ -223,7 +223,7 @@ the expected release. If the deployment is correct but the build tree is inconsi### Update button says a newer version exists forever-Check Settings → Account → About and `~/.mso/self-update.log`. A successful self-update ends with+Check Settings → Update MSO and `~/.mso/self-update.log`. A successful self-update ends with`UPDATE OK`. Also verify only one production process is serving the public origin. If thebrowser cached an old service worker, unregister it once and hard reload after the server isconfirmed healthy.diff --git a/docs/reference/WORKSPACE-GUIDE.md b/docs/reference/WORKSPACE-GUIDE.mdindex 11614d13..e0fe618f 100644--- a/docs/reference/WORKSPACE-GUIDE.md+++ b/docs/reference/WORKSPACE-GUIDE.md@@ -50,7 +50,7 @@ CLI, and optional MCP interface use the same guarded host capabilities.- **Inspect system health** — view live CPU, memory, disk, network, process, and uptime signals.- **Operate services safely** — inventory system and user `systemd` units, read bounded journal output, and expose start/stop/restart only for exact owner-configured allowlist entries.- **See pending package updates** — read the package manager’s existing local cache without refreshing repositories or applying an upgrade.-- **Update itself** — A clean local main that is ahead of or diverged from origin/main is reported explicitly and refused until reconciled; unpushed work is not silently overwritten. Settings → Account → About shows what is on `origin/main`, lists the incoming commits, and runs the whole deploy (pull → verify the build out-of-tree → build → restart) from a button. The verification runs first on purpose: a commit that does not compile becomes a refusal, not an outage. The updater runs in the owner's systemd user manager and does not require passwordless sudo. Same thing from a shell: `mso update` (`mso update run` remains a compatibility alias). The CLI update path is Git-based and still works when the web runtime is down.+- **Update itself** — A clean local main that is ahead of or diverged from origin/main is reported explicitly and refused until reconciled; unpushed work is not silently overwritten. Settings → Update MSO shows what is on `origin/main`, lists the incoming commits, and runs the whole deploy (pull → verify the build out-of-tree → build → restart) from a button. The verification runs first on purpose: a commit that does not compile becomes a refusal, not an outage. The updater runs in the owner's systemd user manager and does not require passwordless sudo. Same thing from a shell: `mso update` (`mso update run` remains a compatibility alias). The CLI update path is Git-based and still works when the web runtime is down.- **Manage other apps on the box** — detect, start/stop/restart, health, version, logs, and state backups for separate applications you already run (Hermes, OpenClaw, 9Router), driven through their own systemd/Docker/CLI contracts. 9Router uses its configured application domain or split-origin host as the in-shell dashboard; its Docker port is loopback-only unless public exposure is explicitly enabled. See [docs/MANAGED-APPS.md](../MANAGED-APPS.md).**Work** — code/text editor, browser, and media tools in the same workspace.@@ -123,7 +123,7 @@ The repository carries the rest of the contract. The agent should use MSO's offipaths rather than reconstructing setup commands by hand, preserve an existing `.env.local` and`~/.mso`, update the checkout already owned by `mso.service` instead of creating a second clone, andfinish with `mso doctor`. For a current install it may use `mso update` (the same lifecycle exposed by-Settings → Account → About). If the installed build is old enough that `mso update` or the About updater does not+Settings → Update MSO). If the installed build is old enough that `mso update` or the About updater does notexist yet, the universal upgrade/recovery path is simply to re-run the current one-line installer below.Only credentials or choices that cannot be inferred should come back to the user; provider secrets muststay in hidden/STDIN onboarding prompts rather than command arguments or chat logs.@@ -186,7 +186,7 @@ curl -fsSL https://raw.githubusercontent.com/rahmanef63/mso/main/scripts/installAlready installed? Use the least surprising path:-- **Current MSO:** `mso update`, or Settings → Account → About → Update.+- **Current MSO:** `mso update`, or Settings → Update MSO.- **Older/legacy MSO where that updater is missing or broken:** re-run the same one-line installer.It discovers an existing `mso.service` WorkingDirectory before choosing a default directory, updatesthat checkout in place, preserves `.env.local` + `~/.mso`, and does not repeat onboarding unlessdiff --git a/frontend/slices/os-settings/components/about-overview.tsx b/frontend/slices/os-settings/components/about-overview.tsxindex 0a702473..7f657dd2 100644--- a/frontend/slices/os-settings/components/about-overview.tsx+++ b/frontend/slices/os-settings/components/about-overview.tsx@@ -75,7 +75,6 @@ export function AboutOverview({ onOpenPage }: { onOpenPage: (page: AboutPage) =>>{rows.map(([key, value]) => <SettingsValueRow key={key} label={key} value={value} />)}<SettingsActionRow label="Version" trailing={<ChevronRight className="size-4" aria-hidden />} onClick={() => onOpenPage("version")} />- <SettingsActionRow label="Check software updates" icon={<Info />} trailing={<ChevronRight className="size-4" aria-hidden />} onClick={() => onOpenPage("updates")} /></SettingsSection><SettingsSection icon={<Info />} title="Also in About" footnote="Release notes and maintenance open from here.">diff --git a/frontend/slices/os-settings/components/about-section.tsx b/frontend/slices/os-settings/components/about-section.tsxindex e972d47c..bacec9c1 100644--- a/frontend/slices/os-settings/components/about-section.tsx+++ b/frontend/slices/os-settings/components/about-section.tsx@@ -21,7 +21,7 @@ export function AboutSection({ onOpen }: { onOpen?: (id: SectionId) => void }) {onAbout: () => setPage("overview"),})}>{page === "overview" ? <AboutOverview onOpenPage={setPage} /> : null}- {page === "version" ? <VersionSection onCheckUpdates={() => setPage("updates")} /> : null}+ {page === "version" ? <VersionSection /> : null}{page === "updates" ? <AboutUpdates /> : null}{page === "whats-new" ? <WhatsNew /> : null}{page === "maintenance" ? <AboutMaintenance /> : null}diff --git a/frontend/slices/os-settings/components/android-settings.tsx b/frontend/slices/os-settings/components/android-settings.tsxindex f7e5bce4..3a1ac148 100644--- a/frontend/slices/os-settings/components/android-settings.tsx+++ b/frontend/slices/os-settings/components/android-settings.tsx@@ -4,6 +4,7 @@ import { useMemo, useState } from "react";import { ChevronRight, Search } from "lucide-react";import { cn } from "@/lib/utils";import { filterSettingsSections, groupSettingsSections, type SectionId } from "../lib/sections";+import { UpdateNavBadge } from "./update-nav-badge";export function AndroidSettingsIndex({ onSelect }: { onSelect: (id: SectionId) => void }) {const [query, setQuery] = useState("");@@ -49,6 +50,7 @@ export function AndroidSettingsIndex({ onSelect }: { onSelect: (id: SectionId) =<span className="block truncate text-[16px] font-medium text-foreground">{section.label}</span><span className="mt-0.5 block truncate text-[12px] text-muted-foreground">{section.blurb}</span></span>+ {section.id === "updates" ? <UpdateNavBadge /> : null}<ChevronRight className="size-5 shrink-0 text-muted-foreground" aria-hidden /></button>);diff --git a/frontend/slices/os-settings/components/ios-settings.tsx b/frontend/slices/os-settings/components/ios-settings.tsxindex 16370d87..7fccd728 100644--- a/frontend/slices/os-settings/components/ios-settings.tsx+++ b/frontend/slices/os-settings/components/ios-settings.tsx@@ -5,6 +5,7 @@ import { ChevronRight, Search } from "lucide-react";import { useMemo, useState } from "react";import { filterSettingsSections, groupSettingsSections, settingsSection, type SectionId } from "../lib/sections";import { SettingsSectionBody } from "./sections";+import { UpdateNavBadge } from "./update-nav-badge";// iOS System Settings owns only its CONTENT renderer. The mobile shell owns the// single navigation bar: < Home | Settings | AI at root, then the published@@ -68,6 +69,7 @@ function IosSettingsIndex({ onSelect }: { onSelect: (id: SectionId) => void }) {<Icon className="size-[18px] text-primary-foreground" aria-hidden /></span><span className="min-w-0 flex-1 truncate text-[17px] font-normal leading-tight text-foreground">{section.label}</span>+ {section.id === "updates" ? <UpdateNavBadge /> : null}<ChevronRight className="size-[17px] shrink-0 text-muted-foreground/55" aria-hidden /></button>);diff --git a/frontend/slices/os-settings/components/nav.tsx b/frontend/slices/os-settings/components/nav.tsxindex dec393c3..90f458f1 100644--- a/frontend/slices/os-settings/components/nav.tsx+++ b/frontend/slices/os-settings/components/nav.tsx@@ -5,7 +5,8 @@ import { Input } from "@/components/ui/input";import { cn } from "@/lib/utils";import { Monitor, Search } from "lucide-react";import { useState } from "react";-import { filterSettingsSections, groupSettingsSections, SECTIONS, settingsNavActive, type SectionId } from "../lib/sections";+import { filterSettingsSections, groupSettingsSections, SECTIONS, settingsNavActive, type SectionId, type SettingsSectionMeta } from "../lib/sections";+import { UpdateNavBadge } from "./update-nav-badge";export type { SectionId } from "../lib/sections";@@ -20,6 +21,7 @@ export function SettingsTabs({ active, onSelect }: { active: SectionId; onSelect><Icon className="size-4 shrink-0" /><span>{label}</span>+ {id === "updates" ? <UpdateNavBadge /> : null}</button>);})}@@ -29,7 +31,9 @@ export function SettingsTabs({ active, onSelect }: { active: SectionId; onSelectexport function SettingsSidebar({ active, onSelect, windows = false }: { active: SectionId; onSelect: (id: SectionId) => void; windows?: boolean }) {const [query, setQuery] = useState("");- const groups = groupSettingsSections(filterSettingsSections(query));+ const filtered = filterSettingsSections(query);+ const updateSection = filtered.find((section) => section.id === "updates");+ const groups = groupSettingsSections(filtered.filter((section) => section.id !== "updates"));return (<div className="flex h-full min-h-0 flex-col"><div className={cn("space-y-4 px-3 pb-3 pt-5", windows && "px-4")}>@@ -42,23 +46,59 @@ export function SettingsSidebar({ active, onSelect, windows = false }: { active:<Input aria-label="Find a setting" placeholder={windows ? "Find a setting" : "Search"} value={query} onChange={(e) => setQuery(e.target.value)} className={cn("h-9 bg-background/70 pl-8 text-xs", windows ? "rounded-md border-b-2" : "rounded-lg")} /></div></div>- <nav aria-label="Settings sections" data-slot={windows ? "settings-windows-sidebar" : "settings-macos-sidebar"} className="min-h-0 flex-1 space-y-3 overflow-y-auto px-2 pb-4">+ <nav aria-label="Settings sections" data-slot={windows ? "settings-windows-sidebar" : "settings-macos-sidebar"} className="min-h-0 flex-1 space-y-3 overflow-y-auto px-2 pb-2">{groups.map((group) => <div key={group[0].group} className="space-y-0.5"><p className="px-2 pb-1 text-[11px] font-medium text-muted-foreground">{({ personalization: "Personalization", services: "Apps & connections", system: "System" })[group[0].group]}</p>- {group.map(({ id, label, icon: Icon, color, blurb }) => {- const on = settingsNavActive(id, active);- return <Button key={id} variant="ghost" aria-current={on ? "page" : undefined} title={blurb} onClick={() => onSelect(id)}- className={cn("relative h-auto min-h-11 w-full justify-start gap-2.5 rounded-md px-2 py-1.5 text-left text-[13px] font-normal", on ? windows ? "bg-accent text-accent-foreground hover:bg-accent" : "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground" : "text-foreground hover:bg-accent")}>- {windows && on && <span className="absolute left-0 h-4 w-[3px] rounded-full bg-primary" />}- <span className={cn("grid shrink-0 place-items-center", windows ? "size-7" : "size-[25px] rounded-md shadow-sm")} style={windows ? undefined : { background: color }}>- <Icon className={cn("size-4", !windows && "text-primary-foreground")} />- </span>- <span className="min-w-0 flex-1 truncate">{label}</span>- </Button>;- })}+ {group.map((section) => <SettingsSidebarRow key={section.id} section={section} active={active} windows={windows} onSelect={onSelect} />)}</div>)}- {!groups.length && <p role="status" className="px-2 py-4 text-xs text-muted-foreground">No settings found.</p>}+ {!groups.length && !updateSection && <p role="status" className="px-2 py-4 text-xs text-muted-foreground">No settings found.</p>}</nav>+ {updateSection ? (+ <div data-slot="settings-update-footer" className="shrink-0 border-t border-border/60 p-2">+ <SettingsSidebarRow section={updateSection} active={active} windows={windows} onSelect={onSelect} />+ </div>+ ) : null}</div>);}++function SettingsSidebarRow({+ section,+ active,+ windows,+ onSelect,+}: {+ section: SettingsSectionMeta;+ active: SectionId;+ windows: boolean;+ onSelect: (id: SectionId) => void;+}) {+ const { id, label, icon: Icon, color, blurb } = section;+ const on = settingsNavActive(id, active);+ return (+ <Button+ variant="ghost"+ aria-current={on ? "page" : undefined}+ title={blurb}+ onClick={() => onSelect(id)}+ className={cn(+ "relative h-auto min-h-11 w-full justify-start gap-2.5 rounded-md px-2 py-1.5 text-left text-[13px] font-normal",+ on+ ? windows+ ? "bg-accent text-accent-foreground hover:bg-accent"+ : "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground"+ : "text-foreground hover:bg-accent",+ )}+ >+ {windows && on && <span className="absolute left-0 h-4 w-[3px] rounded-full bg-primary" />}+ <span+ className={cn("grid shrink-0 place-items-center", windows ? "size-7" : "size-[25px] rounded-md shadow-sm")}+ style={windows ? undefined : { background: color }}+ >+ <Icon className={cn("size-4", !windows && "text-primary-foreground")} />+ </span>+ <span className="min-w-0 flex-1 truncate">{label}</span>+ {id === "updates" ? <UpdateNavBadge /> : null}+ </Button>+ );+}diff --git a/frontend/slices/os-settings/components/sections.tsx b/frontend/slices/os-settings/components/sections.tsxindex 1db2e3ce..3920bcd8 100644--- a/frontend/slices/os-settings/components/sections.tsx+++ b/frontend/slices/os-settings/components/sections.tsx@@ -28,6 +28,7 @@ const MemorySection = dynamic(() => import("./memory-section").then((module) =>const QuicklinksSection = dynamic(() => import("./quicklinks-section").then((module) => module.QuicklinksSection), { loading: loadingSection });const ServerSection = dynamic(() => import("./server-section").then((module) => module.ServerSection), { loading: loadingSection });const ThemeSection = dynamic(() => import("./theme-section").then((module) => module.ThemeSection), { loading: loadingSection });+const UpdateSection = dynamic(() => import("./update-section").then((module) => module.UpdateSection), { loading: loadingSection });// The section content — one functional panel per SectionId, shared verbatim by// every shell's Settings layout (the per-shell seam only swaps the navigation@@ -42,11 +43,12 @@ const OWNER_ONLY = new Set<SectionId>(["devices","cleanup","backup",+ "updates",]);export function SettingsSectionBody({ id, onOpen }: { id: SectionId; onOpen?: (id: SectionId) => void }) {const { status, role } = useSession();- const privateSection = ["a2a", "devices", "cleanup", "ai"].includes(id);+ const privateSection = ["a2a", "devices", "cleanup", "ai", "updates"].includes(id);if (privateSection && status !== "in") return <SettingsSection icon={<Lock />} title="Sign in to manage this section"><p className="mb-3 text-sm text-muted-foreground">These controls require an Owner device on this server.</p>{status === "loading" ? <p role="status">Checking access…</p> : <Button asChild className="min-h-11"><Link prefetch={false} href="/login?returnTo=%2Fsettings">Sign in</Link></Button>}@@ -107,6 +109,8 @@ export function SettingsSectionBody({ id, onOpen }: { id: SectionId; onOpen?: (ireturn <CleanupSection />;case "backup":return <BackupSection />;+ case "updates":+ return <UpdateSection />;case "about":return <AboutSection onOpen={onOpen} />;}diff --git a/frontend/slices/os-settings/components/update-nav-badge.tsx b/frontend/slices/os-settings/components/update-nav-badge.tsxnew file mode 100644index 00000000..50ac4719--- /dev/null+++ b/frontend/slices/os-settings/components/update-nav-badge.tsx@@ -0,0 +1,39 @@+"use client";++import { useEffect, useState } from "react";+import { Badge } from "@/components/ui/badge";+import { useSession } from "@/features/auth";+import { IS_DEMO } from "@/lib/demo";+import { hasAvailableUpdate, readStatus } from "./update-status-client";++export function UpdateNavBadge() {+ const { status, role } = useSession();+ const [available, setAvailable] = useState(false);++ useEffect(() => {+ if (IS_DEMO || status !== "in" || role !== "owner") return;+ let alive = true;+ readStatus(true)+ .then((next) => {+ if (alive) setAvailable(hasAvailableUpdate(next));+ })+ .catch(() => {+ if (alive) setAvailable(false);+ });+ return () => {+ alive = false;+ };+ }, [status, role]);++ if (IS_DEMO || status !== "in" || role !== "owner" || !available) return null;+ return (+ <Badge+ data-slot="settings-update-badge"+ variant="secondary"+ className="ml-auto h-5 shrink-0 px-1.5 text-[9px] uppercase tracking-wide"+ aria-label="New MSO version available"+ >+ New+ </Badge>+ );+}diff --git a/frontend/slices/os-settings/components/update-status-client.test.ts b/frontend/slices/os-settings/components/update-status-client.test.tsnew file mode 100644index 00000000..81f0ac85--- /dev/null+++ b/frontend/slices/os-settings/components/update-status-client.test.ts@@ -0,0 +1,14 @@+import { describe, expect, it } from "vitest";+import { hasAvailableUpdate } from "./update-status-client";++describe("software update navigation status", () => {+ it("shows the badge for a verified remote update or a checked-out build waiting to run", () => {+ expect(hasAvailableUpdate({ behind: 2, pendingBuild: false, remoteChecked: true })).toBe(true);+ expect(hasAvailableUpdate({ behind: 0, pendingBuild: true, remoteChecked: false })).toBe(true);+ });++ it("stays quiet when current or when remote freshness is unknown", () => {+ expect(hasAvailableUpdate({ behind: 0, pendingBuild: false, remoteChecked: true })).toBe(false);+ expect(hasAvailableUpdate({ behind: 2, pendingBuild: false, remoteChecked: false })).toBe(false);+ });+});diff --git a/frontend/slices/os-settings/components/update-status-client.ts b/frontend/slices/os-settings/components/update-status-client.tsindex f05754ca..f4286e68 100644--- a/frontend/slices/os-settings/components/update-status-client.ts+++ b/frontend/slices/os-settings/components/update-status-client.ts@@ -11,3 +11,7 @@ export async function readStatus(check: boolean): Promise<UpdateStatus> {return (await res.json()) as UpdateStatus;}+export function hasAvailableUpdate(status: Pick<UpdateStatus, "behind" | "pendingBuild" | "remoteChecked">): boolean {+ return status.pendingBuild === true || (status.remoteChecked === true && status.behind > 0);+}+diff --git a/frontend/slices/os-settings/components/version-section.tsx b/frontend/slices/os-settings/components/version-section.tsxindex e428915c..51728421 100644--- a/frontend/slices/os-settings/components/version-section.tsx+++ b/frontend/slices/os-settings/components/version-section.tsx@@ -3,7 +3,7 @@import { useEffect, useState } from "react";import { Info } from "lucide-react";import { Skeleton } from "@/components/ui/skeleton";-import { SettingsActionRow, SettingsBlock, SettingsSection, SettingsValueRow } from "@/features/shell-settings";+import { SettingsBlock, SettingsSection, SettingsValueRow } from "@/features/shell-settings";import pkg from "../../../../package.json";type HealthIdentity = {@@ -20,7 +20,7 @@ const fallback = (): HealthIdentity => ({buildSha: process.env.NEXT_PUBLIC_COMMIT_SHA || null,});-export function VersionSection({ onCheckUpdates }: { onCheckUpdates: () => void }) {+export function VersionSection() {const [health, setHealth] = useState<HealthIdentity | null>(null);const [live, setLive] = useState(true);@@ -70,7 +70,6 @@ export function VersionSection({ onCheckUpdates }: { onCheckUpdates: () => void<SettingsValueRow label="App version" value={health.version || pkg.version || "0.0.0"} /><SettingsValueRow label="Build ID" value={health.buildId || "dev"} /><SettingsValueRow label="Build SHA" value={buildSha} />- <SettingsActionRow label="Check software updates" icon={<Info />} onClick={onCheckUpdates} /></SettingsSection>);}diff --git a/frontend/slices/os-settings/lib/sections.test.ts b/frontend/slices/os-settings/lib/sections.test.tsindex 80083866..44882311 100644--- a/frontend/slices/os-settings/lib/sections.test.ts+++ b/frontend/slices/os-settings/lib/sections.test.ts@@ -7,18 +7,19 @@ describe("settings section model", () => {expect(filterSettingsSections("wallpaper").map((x) => x.id)).toEqual(["appearance"]);expect(filterSettingsSections("devices").map((x) => x.id)).toEqual(["account"]);expect(filterSettingsSections("system info").map((x) => x.id)).toEqual(["account"]);- expect(filterSettingsSections("version").map((x) => x.id)).toEqual(["account"]);- expect(filterSettingsSections("updates").map((x) => x.id)).toEqual(["account"]);+ expect(filterSettingsSections("version").map((x) => x.id)).toEqual(["updates"]);+ expect(filterSettingsSections("updates").map((x) => x.id)).toEqual(["updates"]);});- it("groups Account with personalization and keeps Devices and About nested", () => {+ it("groups Account with personalization, keeps Devices/About nested, and places Update MSO last", () => {expect(SECTIONS.map((section) => section.id)).not.toContain("devices");expect(SECTIONS.map((section) => section.id)).not.toContain("about");expect(groupSettingsSections().map((group) => group.map((x) => x.id))).toEqual([["account", "appearance", "theme"],["ai", "quicklinks", "mcp", "a2a"],- ["server", "cleanup", "backup"],+ ["server", "cleanup", "backup", "updates"],]);+ expect(SECTIONS.at(-1)?.id).toBe("updates");});it("opens Devices and About from Account, including old deep links", () => {diff --git a/frontend/slices/os-settings/lib/sections.ts b/frontend/slices/os-settings/lib/sections.tsindex ae25dae1..80388150 100644--- a/frontend/slices/os-settings/lib/sections.ts+++ b/frontend/slices/os-settings/lib/sections.ts@@ -1,4 +1,5 @@import {+ ArrowDownToLine,DatabaseBackup,Info,Link2,@@ -26,6 +27,7 @@ export type SectionId =| "server"| "cleanup"| "backup"+ | "updates"| "about";export type SettingsGroup = "personalization" | "services" | "system";@@ -118,6 +120,13 @@ const CATALOG: Record<SectionId, SectionFields> = {color: "var(--primary)",group: "system",},+ updates: {+ label: "Update MSO",+ blurb: "New version, release status, and rebuild",+ icon: ArrowDownToLine,+ color: "var(--primary)",+ group: "system",+ },about: {label: "About",blurb: "System info and reset",@@ -138,10 +147,12 @@ const NAV_ORDER: readonly SectionId[] = ["server","cleanup","backup",+ "updates",];const SEARCH_EXTRA: Partial<Record<SectionId, string>> = {- account: "devices approved browsers sessions about system info reset rename password icon version updates software build",+ account: "devices approved browsers sessions about system info reset rename password icon",+ updates: "version versions update updates software release new build latest",};function meta(id: SectionId): SettingsSectionMeta {diff --git a/lib/contracts/audit.ts b/lib/contracts/audit.tsindex 123aa7c6..52fda5e1 100644--- a/lib/contracts/audit.ts+++ b/lib/contracts/audit.ts@@ -16,7 +16,7 @@ export type AuditAction =| "sys.cleanup"| "sys.memory-backup"| "sys.service"- /** The cockpit replacing its own code (Settings → Account → About, or `mso update run`). */+ /** The cockpit replacing its own code (Settings → Update MSO, or `mso update run`). */| "sys.update"| "managed-app.action"| "infra.write"diff --git a/lib/install-docs-contract.test.ts b/lib/install-docs-contract.test.tsindex 504df706..8b7a8e68 100644--- a/lib/install-docs-contract.test.ts+++ b/lib/install-docs-contract.test.ts@@ -73,7 +73,7 @@ describe("installer documentation contract", () => {it("prints modern update surfaces plus a legacy fallback after installation", () => {expect(core).toContain("Update: mso update");- expect(core).toContain("Settings → Account → About");+ expect(core).toContain("Settings → Update MSO");expect(core).toContain("Legacy: re-run the official one-line installer");expect(core).toContain('ok "mso updated at $DIR"');const pairing = core.indexOf("Pair your first device after the API is running");diff --git a/scripts/cli/commands-admin.sh b/scripts/cli/commands-admin.shindex 7873ca09..182e2b75 100755--- a/scripts/cli/commands-admin.sh+++ b/scripts/cli/commands-admin.sh@@ -83,7 +83,7 @@ case "$cmd" in# checkout-wide quiesce/build/restart/restore lifecycle as service self-update.build) (cd "$ROOT" && bash scripts/verify-build.sh) ;;deploy) deploy_safe ;;- # The same self-update Settings → Account → About drives, so both surfaces get the same+ # The same self-update Settings → Update MSO drives, so both surfaces get the same# preflight and the same transient-unit handoff (a build spawned from the service# would be killed by the restart it performs).update) local_url="$(gateway_local_url)"; MSO_UPDATE_ROOT="$ROOT" MSO_UPDATE_LOCAL_URL="$local_url" "$ROOT/scripts/mso-update" "$@" ;;diff --git a/scripts/e2e/preview.mjs b/scripts/e2e/preview.mjsindex 6b8a635d..12bc1335 100644--- a/scripts/e2e/preview.mjs+++ b/scripts/e2e/preview.mjs@@ -201,20 +201,14 @@ const run = async () => {await open("report.docx");check(/No browser can render this format/i.test(await scope(page, "report.docx").innerText()), "DOCX says why, and offers the download");- // Settings → Account → About → Updates: the update panel is the other thing that can only be wrong live.+ // Settings → Update MSO: top-level and last by design; the update panel can only be right when exercised live.await page.goto(`${BASE}/settings`, { waitUntil: "domcontentloaded" });await page.waitForTimeout(2500);- const account = page.getByRole("button", { name: "Account", exact: true }).first();- if (await account.count()) await account.click().catch(() => {});- await page.waitForTimeout(800);- const about = page.getByRole("button", { name: "About", exact: true }).first();- if (await about.count()) await about.click().catch(() => {});- await page.waitForTimeout(800);- const updates = page.getByRole("button", { name: "Check software updates", exact: true }).first();+ const updates = page.getByRole("button", { name: /Update MSO/ }).first();if (await updates.count()) await updates.click().catch(() => {});await page.waitForTimeout(3500);const settings = await (MOBILE ? page.locator("#main-content") : page.locator("[data-window]").last()).innerText();- check(/Software update/i.test(settings), "Settings → About → Updates shows the update panel");+ check(/Software update/i.test(settings), "Settings → Update MSO shows the update panel");check(/Up to date|available|build is pending/i.test(settings), "Update panel reported a state");const update = await page.evaluate(async () => (await fetch("/api/v1/sys/update?check=0")).json());if (update.supported === false) {diff --git a/scripts/install/finalize.sh b/scripts/install/finalize.shindex 8b73ec9a..4011d276 100755--- a/scripts/install/finalize.sh+++ b/scripts/install/finalize.sh@@ -101,7 +101,7 @@ cat <<EOFOnboard: mso onboardPublic: mso gateway domain set https://mso.example.com (replace with your stable HTTPS hostname)then use a named Cloudflare Tunnel; Quick Tunnel is preview-only and never OS_PUBLIC_ORIGIN- Update: mso update (or Settings → Account → About in the web UI)+ Update: mso update (or Settings → Update MSO in the web UI)Legacy: re-run the official one-line installer to upgrade/recover an older installUninstall: re-run the installer with --uninstallListen: $BIND:$PORT (change with --bind / MSO_BIND)diff --git a/scripts/mso-about-update-visibility.test.ts b/scripts/mso-about-update-visibility.test.tsindex 8b150bae..1413e7c4 100644--- a/scripts/mso-about-update-visibility.test.ts+++ b/scripts/mso-about-update-visibility.test.ts@@ -1,12 +1,19 @@import { readFileSync } from "node:fs";import { describe, expect, it } from "vitest";const read = (name: string) => readFileSync(`frontend/slices/os-settings/components/${name}.tsx`, "utf8");-describe("About update visibility contract", () => {- it("offers a software update action from Overview", () => {- expect(read("about-overview")).toContain('label="Check software updates"');+describe("software update visibility contract", () => {+ it("promotes software update to the final top-level Settings section", () => {+ const sections = readFileSync("frontend/slices/os-settings/lib/sections.ts", "utf8");+ const body = read("sections");+ expect(sections).toContain('label: "Update MSO"');+ expect(sections).toMatch(/"backup",\s*"updates",\s*\];/);+ expect(body).toContain('case "updates"');+ expect(body).toContain("return <UpdateSection />");+ expect(read("about-overview")).not.toContain('label="Check software updates"');+ expect(read("version-section")).not.toContain('label="Check software updates"');expect(read("about-section")).toContain('page === "updates"');- expect(read("version-section")).toContain('"/api/health"');- expect(read("version-section")).toContain('label="Build SHA"');+ expect(read("update-nav-badge")).toContain('aria-label="New MSO version available"');+ expect(read("nav")).toContain('data-slot="settings-update-footer"');});it("does not disappear on authentication/network failure", () => {const source = read("update-section");