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
fix(shell): place server status in native chrome
Rahman8feab5be0861
diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.mdindex ca2637a2..afbdfe48 100644--- a/docs/CHANGELOG.md+++ b/docs/CHANGELOG.md@@ -13,6 +13,7 @@ this is the *what*, and it is what Settings → About shows as “What's new”.**Fixed**+- `shell` place server status in native chrome- `integrations` use contrast-safe action tokens- `integrations` inherit shell design tokens- `integrations` align layout with Settings sidebardiff --git a/docs/PROGRESS.md b/docs/PROGRESS.mdindex 483d0f30..b63f8a67 100644--- a/docs/PROGRESS.md+++ b/docs/PROGRESS.md@@ -1,3 +1,9 @@+## 2026-09-15 — Shell-native server status + CI security fixes++The global floating `Live server · owner` badge is gone. MSO now contributes one `systemStatus` feature into AppShell and each shell places that shared status in native chrome: macOS menu bar, Windows taskbar, iOS/Android top status area, and the Dashboard header. Auth/session logic remains single-source in the consumer feature; generic AppShell owns only the slot placement.++Security CI root causes were fixed rather than suppressed: the SI-Coder migration shell bridge no longer triggers ShellCheck SC2066, and SI-Coder package discovery now opens `package.json` once with `O_NOFOLLOW`, validates the opened descriptor, and reads through that same descriptor, removing CodeQL alert #126 (`js/file-system-race`).+## 2026-09-15 — Integrations removes its final local layout constantThe compact master/detail threshold is no longer written directly in Integrations styles. Generated `@container` rules now interpolate `SETTINGS_COMPACT_MAX` from the shared presentation responsive contract. This keeps the unavoidable query value in one reviewed SSOT while provider content, setup and Transfer source files contain no local color, length, typography, radius, spacing or breakpoint constants. The style contract tests both generated CSS and the feature source files to prevent regression.diff --git a/frontend/slices/appshell/components/menu-bar-status.tsx b/frontend/slices/appshell/components/menu-bar-status.tsxindex d9a046b0..edd2df75 100644--- a/frontend/slices/appshell/components/menu-bar-status.tsx+++ b/frontend/slices/appshell/components/menu-bar-status.tsx@@ -17,6 +17,9 @@ export function StatusCluster() {return (<div className="ml-auto flex items-center gap-0.5 text-muted-foreground">+ <span data-slot="system-status-host" data-status-placement="menu-bar" className="flex items-center">+ <Slot region="systemStatus" />+ </span>{cpu != null && (<span className="flex items-center gap-1 rounded-md px-2 py-0.5 tabular-nums"><Activity className="size-3.5" />diff --git a/frontend/slices/appshell/components/mobile-shell.tsx b/frontend/slices/appshell/components/mobile-shell.tsxindex 0e10b271..a9230368 100644--- a/frontend/slices/appshell/components/mobile-shell.tsx+++ b/frontend/slices/appshell/components/mobile-shell.tsx@@ -154,6 +154,14 @@ export function MobileShell() {[data-shell="ios"] rule in globals.css — one source of truth for bothtouch shells, inherited by every iOS surface (home, nav, spotlight). */}<div className="absolute inset-0 z-[10] flex flex-col">+ <div+ data-slot="system-status-host"+ data-status-placement="ios-status-bar"+ className="pointer-events-none absolute inset-x-0 top-0 z-[40] flex items-center justify-end px-2"+ style={{ height: "var(--sai-top)" }}+ >+ <div className="pointer-events-auto"><Slot region="systemStatus" /></div>+ </div>{/* Home is inert while an app covers it (a11y: its grid, pager pages andhome-indicator otherwise stay in tab/AT order under the opaque applayer). It stays visually mounted behind the app transition. */}diff --git a/frontend/slices/appshell/components/shells/android/android-shell.tsx b/frontend/slices/appshell/components/shells/android/android-shell.tsxindex 843baa9e..f47f8740 100644--- a/frontend/slices/appshell/components/shells/android/android-shell.tsx+++ b/frontend/slices/appshell/components/shells/android/android-shell.tsx@@ -138,6 +138,14 @@ function AndroidShell() {className="absolute inset-0 z-[10] flex flex-col overflow-hidden text-foreground"style={{ "--android-nav": showSystemNav ? "48px" : "0px" } as CSSProperties}>+ <div+ data-slot="system-status-host"+ data-status-placement="android-status-bar"+ className="pointer-events-none absolute inset-x-0 top-0 z-[40] flex items-center justify-end px-2"+ style={{ height: "var(--sai-top)" }}+ >+ <div className="pointer-events-auto"><Slot region="systemStatus" /></div>+ </div>{/* HOME (always mounted; app overlays it — inert while covered so itsgrid + NavBar drop out of tab/AT order under the z-20 app layer).Pull down → Control Center; clock+date live on the wallpaper. */}diff --git a/frontend/slices/appshell/components/shells/dashboard/dashboard-shell.tsx b/frontend/slices/appshell/components/shells/dashboard/dashboard-shell.tsxindex 68a426a0..61b5f62f 100644--- a/frontend/slices/appshell/components/shells/dashboard/dashboard-shell.tsx+++ b/frontend/slices/appshell/components/shells/dashboard/dashboard-shell.tsx@@ -18,6 +18,7 @@ import { WindowContent } from "../../window-content";import { ShellContextMenu, useShellContextMenu } from "../context-menu";import { useInspectorInfo } from "../../../lib/inspector";import { ResponsiveToolbar } from "../../../primitives/responsive-toolbar";+import { Slot } from "../../../registry/feature-registry";import { ControlCenterDesktop } from "../../../features/control-center/components/control-center-desktop";import type { AppDescriptor } from "../../../lib/types";import { DashboardHome, NavItem, SidebarLabel } from "./dashboard-parts";@@ -152,13 +153,16 @@ function DashboardShell() {<span className="font-medium">{pane.title}</span></>)}- {pane && paneActions.length > 0 && (- <div className="ml-auto">+ <div className="ml-auto flex items-center gap-2">+ <span data-slot="system-status-host" data-status-placement="dashboard-header" className="flex items-center">+ <Slot region="systemStatus" />+ </span>+ {pane && paneActions.length > 0 && (<ResponsiveToolbaritems={paneActions.map((a) => ({ id: a.id, label: a.label, onClick: () => void a.run() }))}/>- </div>- )}+ )}+ </div></header>{/* container context is REQUIRED: app @container styles never match without it.Right-click the Home view opens the (registry-driven) dashboard menu;diff --git a/frontend/slices/appshell/components/shells/windows/taskbar.tsx b/frontend/slices/appshell/components/shells/windows/taskbar.tsxindex a964bba0..d8b72e2f 100644--- a/frontend/slices/appshell/components/shells/windows/taskbar.tsx+++ b/frontend/slices/appshell/components/shells/windows/taskbar.tsx@@ -23,6 +23,7 @@ import { WindowPreview } from "../../window-preview";import { ContextMenu, useContextMenu, type MenuItem } from "../context-menu";import { ControlCenterDesktop } from "../../../features/control-center/components/control-center-desktop";import { StartMenu } from "./start-menu";+import { Slot } from "../../../registry/feature-registry";export const TASKBAR_H = 48;@@ -80,6 +81,9 @@ export function Taskbar({ onTaskView }: { onTaskView?: () => void }) {))}</div><div className="ml-auto flex items-center gap-0.5">+ <span data-slot="system-status-host" data-status-placement="taskbar" className="flex items-center">+ <Slot region="systemStatus" />+ </span><ControlCenterDesktop size={40} /><Clock /></div>diff --git a/frontend/slices/appshell/registry/types.ts b/frontend/slices/appshell/registry/types.tsindex 64992a0b..aa438a83 100644--- a/frontend/slices/appshell/registry/types.ts+++ b/frontend/slices/appshell/registry/types.ts@@ -13,6 +13,7 @@ export type SlotRegion =| "topPill" // mobile top-center status pill (e.g. dynamic island)| "controlCenter" // mobile pull-down control center| "menuBarStatus" // desktop menu-bar trailing cluster (e.g. control center)+ | "systemStatus" // shell-native server/session status: menu bar, taskbar, mobile status area| "today" // mobile widgets / today page| "desktopWidgets"; // desktop wallpaper-layer widget stack (behind windows)diff --git a/frontend/slices/auth/components/auth-gate.tsx b/frontend/slices/auth/components/auth-gate.tsxindex 3ae8bf6f..9439e398 100644--- a/frontend/slices/auth/components/auth-gate.tsx+++ b/frontend/slices/auth/components/auth-gate.tsx@@ -5,7 +5,6 @@ import { useEffect, useState, type ReactNode } from "react";import { Loader2 } from "lucide-react";import { useAppearance } from "@/lib/appearance";import { IS_DEMO } from "@/lib/demo";-import { SessionModeBanner } from "./session-mode-banner";import { useSession } from "../lib/use-session";// The shell is PUBLIC: anyone can open it and browse on mock data — no sign-in@@ -13,7 +12,7 @@ import { useSession } from "../lib/use-session";// monitor); every /api host route enforces the session server-side, so a// signed-out visitor is confined to mock (see lib/os-api). Sign-in is available directly at /login and// inside Settings → Server. This gate resolves the session before showing the-// shell and keeps its actual mock/live mode visible.+// shell while the shell-native system status keeps its actual mock/live mode visible.export function AuthGate({ children }: { children: ReactNode }) {if (IS_DEMO) {return (@@ -57,7 +56,6 @@ function GatedOS({ children }: { children: ReactNode }) {return (<>{children}- <SessionModeBanner />{status === "in" && <FirstLoginOnboarding />}</>); // signed-in AND signed-out → the shell (mock when out)diff --git a/frontend/slices/auth/components/session-mode-banner.tsx b/frontend/slices/auth/components/session-mode-banner.tsxdeleted file mode 100644index b2aeca22..00000000--- a/frontend/slices/auth/components/session-mode-banner.tsx+++ /dev/null@@ -1,27 +0,0 @@-"use client";--import Link from "next/link";--import { useAppearance } from "@/lib/appearance";-import { useSession } from "../lib/use-session";--// Always visible, including after navigation; never imply mock metrics are live.-export function SessionModeBanner() {- const { status, role } = useSession();- const { tweaks } = useAppearance();- const live = status === "in" && tweaks.server.mode === "live";- return (- <aside- aria-label="Server connection mode"- className="fixed left-1/2 top-0 w-max -translate-x-1/2 z-[60] flex max-w-[calc(100vw-1rem)] items-center gap-3 whitespace-nowrap rounded-lg border border-border bg-popover px-3 py-1 text-xs text-popover-foreground shadow-sm md:top-9 md:py-2"- data-connection-mode={live ? "live" : "mock"}- >- <span>{live ? `Live server · ${role}` : "Demo · Mock data only"}</span>- {status === "out" && (- <Link prefetch={false} href="/login" className="rounded px-2 py-1 font-semibold text-primary underline underline-offset-4 focus-visible:outline-2 focus-visible:outline-ring">- Sign in- </Link>- )}- </aside>- );-}diff --git a/frontend/slices/os-shell/server-connection-status.test.ts b/frontend/slices/os-shell/server-connection-status.test.tsnew file mode 100644index 00000000..9983a2fb--- /dev/null+++ b/frontend/slices/os-shell/server-connection-status.test.ts@@ -0,0 +1,32 @@+import fs from "node:fs";+import path from "node:path";+import { describe, expect, it } from "vitest";++const root = process.cwd();+const read = (file: string) => fs.readFileSync(path.join(root, file), "utf8");++describe("shell-native server status", () => {+ it("is a manifest feature rather than a global fixed banner", () => {+ const auth = read("frontend/slices/auth/components/auth-gate.tsx");+ const manifest = read("frontend/slices/os-shell/shell.manifest.ts");+ expect(auth).not.toContain("SessionModeBanner");+ expect(auth).not.toContain('aria-label="Server connection mode"');+ expect(manifest).toContain("serverConnectionStatusFeature");+ expect(fs.existsSync(path.join(root, "frontend/slices/auth/components/session-mode-banner.tsx"))).toBe(false);+ });++ it("exposes one native host in every shell family", () => {+ const hosts = [+ ["frontend/slices/appshell/components/menu-bar-status.tsx", 'data-status-placement="menu-bar"'],+ ["frontend/slices/appshell/components/shells/windows/taskbar.tsx", 'data-status-placement="taskbar"'],+ ["frontend/slices/appshell/components/mobile-shell.tsx", 'data-status-placement="ios-status-bar"'],+ ["frontend/slices/appshell/components/shells/android/android-shell.tsx", 'data-status-placement="android-status-bar"'],+ ["frontend/slices/appshell/components/shells/dashboard/dashboard-shell.tsx", 'data-status-placement="dashboard-header"'],+ ] as const;+ for (const [file, marker] of hosts) {+ const source = read(file);+ expect(source).toContain(marker);+ expect(source).toContain('region="systemStatus"');+ }+ });+});diff --git a/frontend/slices/os-shell/server-connection-status.tsx b/frontend/slices/os-shell/server-connection-status.tsxnew file mode 100644index 00000000..7bc007bc--- /dev/null+++ b/frontend/slices/os-shell/server-connection-status.tsx@@ -0,0 +1,62 @@+"use client";++import Link from "next/link";+import { defineFeature, useActiveShell } from "@/features/appshell";+import { useSession } from "@/features/auth";+import { useAppearance } from "@/lib/appearance";+import { IS_DEMO } from "@/lib/demo";+import { cn } from "@/lib/utils";++/**+ * One status source, many native placements. AppShell exposes `systemStatus`+ * slots in each shell's own chrome; the MSO consumer supplies the live/mock+ * session state here so generic AppShell never imports auth or server prefs.+ */+function ServerConnectionStatus() {+ const { status, role } = useSession();+ const { tweaks } = useAppearance();+ const shell = useActiveShell();+ if (IS_DEMO) return null; // The dedicated guided-demo banner owns demo-build disclosure.++ const live = status === "in" && tweaks.server.mode === "live";+ const mobile = shell.surface === "mobile";+ const label = live+ ? `${mobile ? "Live" : "Live server"} · ${role ?? "viewer"}`+ : mobile ? "Demo" : "Demo · Mock data only";++ return (+ <div+ aria-label="Server connection mode"+ data-connection-mode={live ? "live" : "mock"}+ data-shell-status={shell.id}+ className={cn(+ "flex max-w-full items-center gap-1.5 whitespace-nowrap text-muted-foreground",+ mobile+ ? "rounded-full border border-border/70 bg-card/80 px-2 py-0.5 text-[10px] font-medium shadow-sm backdrop-blur"+ : shell.id === "windows"+ ? "h-8 rounded-md px-2 text-[11px] hover:bg-muted"+ : "rounded-md px-1.5 py-0.5 text-[11px]",+ )}+ >+ <span+ aria-hidden+ className={cn("size-1.5 shrink-0 rounded-full", live ? "bg-success" : "bg-warning")}+ />+ <span className="truncate">{label}</span>+ {status === "out" && !mobile && (+ <Link+ prefetch={false}+ href="/login"+ className="font-semibold text-info underline underline-offset-2 focus-visible:outline-2 focus-visible:outline-ring"+ >+ Sign in+ </Link>+ )}+ </div>+ );+}++export const serverConnectionStatusFeature = defineFeature({+ id: "server-connection-status",+ slots: { systemStatus: ServerConnectionStatus },+});diff --git a/frontend/slices/os-shell/shell.manifest.ts b/frontend/slices/os-shell/shell.manifest.tsindex 2a86b43d..2a16d6b5 100644--- a/frontend/slices/os-shell/shell.manifest.ts+++ b/frontend/slices/os-shell/shell.manifest.ts@@ -23,6 +23,7 @@ import { docsApp } from "@/features/docs";import { integrationsApp } from "@/features/integrations";import { cloudflareApp, dokployApp } from "@/features/infrastructure";import { themeQuickPickerFeature } from "./theme-quick-picker";+import { serverConnectionStatusFeature } from "./server-connection-status";import { APP_MARKS } from "./brand-marks";export const TOPSIDE_BRAND: Brand = {@@ -82,4 +83,4 @@ export const BUILTIN_APPS: AppDescriptor[] = [// controlCenter/today), so a feature absent from the array just doesn't render.// Settings stays the `os-settings` app (its own slice). mso adds one consumer// feature: a compact theme-preset switcher in the menu-bar status cluster.-export const TOPSIDE_FEATURES: FeatureDescriptor[] = [...DEFAULT_FEATURES, themeQuickPickerFeature];+export const TOPSIDE_FEATURES: FeatureDescriptor[] = [...DEFAULT_FEATURES, serverConnectionStatusFeature, themeQuickPickerFeature];diff --git a/lib/host/sc-installation.mjs b/lib/host/sc-installation.mjsindex 04126f25..2c4f9681 100644--- a/lib/host/sc-installation.mjs+++ b/lib/host/sc-installation.mjs@@ -1,7 +1,25 @@-import { promises as fs } from "node:fs";+import { constants as fsConstants, promises as fs } from "node:fs";import path from "node:path";import { fileURLToPath } from "node:url";+async function readTrustedPackage(packagePath) {+ let handle;+ try {+ handle = await fs.open(packagePath, fsConstants.O_RDONLY | fsConstants.O_NOFOLLOW);+ } catch (error) {+ if (error?.code === "ENOENT") return null;+ if (error?.code === "ELOOP") throw new Error("unsafe_sc_package");+ throw error;+ }+ try {+ const stat = await handle.stat();+ if (!stat.isFile() || stat.size > 65536 || (stat.mode & 0o022)) throw new Error("unsafe_sc_package");+ return JSON.parse(await handle.readFile("utf8"));+ } finally {+ await handle.close();+ }+}+/** Inspect the declared package/bin identity without executing an unrelated `sc` program. */export async function inspectScInstallation(candidate) {const bin = await fs.realpath(candidate);@@ -10,10 +28,8 @@ export async function inspectScInstallation(candidate) {let directory = path.dirname(bin);for (let depth = 0; depth < 6; depth++) {const packagePath = path.join(directory, "package.json");- const stat = await fs.lstat(packagePath).catch(() => null);- if (stat) {- if (!stat.isFile() || stat.isSymbolicLink() || stat.size > 65536 || (stat.mode & 0o022)) throw new Error("unsafe_sc_package");- const pkg = JSON.parse(await fs.readFile(packagePath, "utf8"));+ const pkg = await readTrustedPackage(packagePath);+ if (pkg) {if (pkg.name !== "si-coder-agent" || typeof pkg.version !== "string" || typeof pkg.bin?.sc !== "string") throw new Error("not_si_coder");const declared = await fs.realpath(path.resolve(directory, pkg.bin.sc));if (declared !== bin || !bin.startsWith(directory + path.sep)) throw new Error("sc_bin_identity_mismatch");diff --git a/lib/host/sc-installation.test.ts b/lib/host/sc-installation.test.tsindex b943752e..63ada42e 100644--- a/lib/host/sc-installation.test.ts+++ b/lib/host/sc-installation.test.ts@@ -25,4 +25,11 @@ describe("SC package identity", () => {const f = await fixture(); await fs.chmod(f.bin, 0o777);await expect(inspectScInstallation(f.bin)).rejects.toThrow("unsafe_sc_binary");});+ it("rejects symlinked package metadata instead of checking then reopening it", async () => {+ const f = await fixture();+ const real = path.join(f.root, "package.real.json");+ await fs.rename(path.join(f.root, "package.json"), real);+ await fs.symlink(real, path.join(f.root, "package.json"));+ await expect(inspectScInstallation(f.bin)).rejects.toThrow("unsafe_sc_package");+ });});diff --git a/package.json b/package.jsonindex 9c722f44..75a68642 100644--- a/package.json+++ b/package.json@@ -1,6 +1,6 @@{"name": "mso",- "version": "0.2.15",+ "version": "0.2.16","private": true,"engines": {"node": ">=20.9",diff --git a/scripts/e2e/release.mjs b/scripts/e2e/release.mjsindex 6e54a704..aebe930a 100644--- a/scripts/e2e/release.mjs+++ b/scripts/e2e/release.mjs@@ -35,7 +35,7 @@ try {await expect(login.getByRole("heading", { name: "Sign in to your server" })).toBeVisible();await login.close();await page.goto(fixture.base);- await expect(page.getByLabel("Server connection mode")).toContainText("Mock data only");+ await expect(page.getByLabel("Server connection mode")).toHaveAttribute("data-connection-mode", "mock");// Real launcher click, not only deep-link route mounting.const settingsName = /^(System )?Settings(?: \(running\))?$/;const settings = viewport.width >= 768@@ -45,7 +45,7 @@ try {await settings.hover(); // Let dock magnification move its hit target before pressing.await settings.click();await expect(page).toHaveURL(/\/settings/);- await expect(page.getByLabel("Server connection mode")).toContainText("Mock data only");+ await expect(page.getByLabel("Server connection mode")).toHaveAttribute("data-connection-mode", "mock");expect(await page.evaluate(() => document.documentElement.scrollWidth <= innerWidth + 1)).toBe(true);if (viewport.width < 768) {const title = page.locator('[data-slot="mobile-feature-header"]').getByText("Settings", { exact: true });diff --git a/scripts/e2e/shell-status.mjs b/scripts/e2e/shell-status.mjsnew file mode 100755index 00000000..db1e7ad7--- /dev/null+++ b/scripts/e2e/shell-status.mjs@@ -0,0 +1,44 @@+#!/usr/bin/env node+// Public synthetic proof that connection mode lives in each shell's native chrome.+import assert from "node:assert/strict";+import { chromium, expect } from "@playwright/test";+import { releaseFixture } from "./release-fixture.mjs";++const fixture = await releaseFixture();+let browser;+try {+ browser = await chromium.launch({ headless: true });+ const cases = [+ { id: "macos", surface: "desktop", viewport: { width: 1363, height: 936 }, placement: "menu-bar" },+ { id: "windows", surface: "desktop", viewport: { width: 1363, height: 936 }, placement: "taskbar" },+ { id: "dashboard", surface: "desktop", viewport: { width: 1363, height: 936 }, placement: "dashboard-header" },+ { id: "ios", surface: "mobile", viewport: { width: 390, height: 844 }, placement: "ios-status-bar" },+ { id: "android", surface: "mobile", viewport: { width: 390, height: 844 }, placement: "android-status-bar" },+ ];+ for (const test of cases) {+ const context = await browser.newContext({ viewport: test.viewport });+ await context.addInitScript(({ id, surface }) => {+ localStorage.setItem("sv:shell", JSON.stringify({+ desktop: surface === "desktop" ? id : "macos",+ mobile: surface === "mobile" ? id : "ios",+ }));+ localStorage.setItem("mso:onboarding:v1", "done");+ }, { id: test.id, surface: test.surface });+ const page = await context.newPage();+ const errors = [];+ page.on("pageerror", (error) => errors.push(error.message));+ await page.goto(fixture.base, { waitUntil: "domcontentloaded", timeout: 30_000 });+ await page.waitForSelector(`#main-content[data-shell="${test.id}"]`);+ const host = page.locator(`[data-slot="system-status-host"][data-status-placement="${test.placement}"]`);+ const status = host.getByLabel("Server connection mode");+ await expect(host).toBeVisible();+ await expect(status).toHaveAttribute("data-connection-mode", "mock");+ assert.equal(await status.evaluate((node) => getComputedStyle(node).position), "static");+ assert.deepEqual(errors, [], `${test.id} browser errors`);+ await context.close();+ console.log(`PASS ${test.id}: server status in ${test.placement}`);+ }+} finally {+ await browser?.close();+ await fixture.close();+}diff --git a/scripts/mso-cli-integrations-sc.sh b/scripts/mso-cli-integrations-sc.shindex b185497e..a6524eca 100755--- a/scripts/mso-cli-integrations-sc.sh+++ b/scripts/mso-cli-integrations-sc.sh@@ -4,12 +4,10 @@# auto-detected; direct credential values require the existing encrypted/manual transfer.integration_sc_binary(){local c detected- for c in "${MSO_SC_BIN:-$HOME/.local/bin/sc}"; do- [ -n "$c" ] && [ -x "$c" ] || continue- detected=$(node "$ROOT/lib/host/sc-installation.mjs" "$c" 2>/dev/null) || continue- printf '%s' "$detected"; return 0- done- return 1+ c="${MSO_SC_BIN:-$HOME/.local/bin/sc}"+ [ -n "$c" ] && [ -x "$c" ] || return 1+ detected=$(node "$ROOT/lib/host/sc-installation.mjs" "$c" 2>/dev/null) || return 1+ printf '%s' "$detected"}integration_sc_bundle(){diff --git a/scripts/verify-build.sh b/scripts/verify-build.shindex aaa5c959..332803a7 100755--- a/scripts/verify-build.sh+++ b/scripts/verify-build.sh@@ -65,6 +65,12 @@ if ! node scripts/e2e/integrations-shell.mjs; thenexit 43fi+echo "== verify shell-native server status"+if ! node scripts/e2e/shell-status.mjs; then+ echo "verification failed during shell-native server status E2E" >&2+ exit 43+fi+# Optional deeper media/native acceptance, using the same isolated built tree.if [ "${1:-}" = "--extended" ]; thenecho "== verify extended: desktop native acceptance"diff --git a/scripts/worktree-gates.test.ts b/scripts/worktree-gates.test.tsindex a81266f3..a0e0c6a3 100644--- a/scripts/worktree-gates.test.ts+++ b/scripts/worktree-gates.test.ts@@ -49,6 +49,10 @@ function fixture(script: string) {path.join(repo, "scripts/e2e/integrations-shell.mjs"),"import fs from 'node:fs'; if (!fs.existsSync('.build-verified') || fs.existsSync('.env.local')) throw Error('unsafe shell fixture'); console.log('isolated shell fixture passed');",);+ writeFileSync(+ path.join(repo, "scripts/e2e/shell-status.mjs"),+ "import fs from 'node:fs'; if (!fs.existsSync('.build-verified') || fs.existsSync('.env.local')) throw Error('unsafe status fixture'); console.log('isolated shell status fixture passed');",+ );git("init", "-q");git("add", "scripts");git(@@ -118,6 +122,7 @@ describe("isolated worktree release guards", () => {expect(run.stdout).toContain("Playwright Chromium ready");expect(run.stdout).toContain("isolated E2E fixture passed");expect(run.stdout).toContain("isolated shell fixture passed");+ expect(run.stdout).toContain("isolated shell status fixture passed");expect(readFileSync(path.join(repo, ".next/keep"), "utf8")).toBe("live marker",);