A local-first multi-agent app development platform, built on PenguinHarness
feat(web): the machines page goes live (#577)
Myriad-Dreamin9eebc91c0917
diff --git a/changelog/unreleased/2026-09-01-machines-page-on.md b/changelog/unreleased/2026-09-01-machines-page-on.mdnew file mode 100644index 00000000..d7316a96--- /dev/null+++ b/changelog/unreleased/2026-09-01-machines-page-on.md@@ -0,0 +1,17 @@+# The Machines page goes live++- **Date:** 2026-09-01+- **Type:** feature+- **Scope:** `web`+- **PR:** [#577](https://github.com/Prism-Shadow/penguin-harness/pull/577)++[中文版](2026-09-01-machines-page-on.zh.md)++Two changes, and the feature the stack before it built becomes reachable:++- The Machines page's entry in the web manifest is marked released, so the sidebar shows the row to admins — the gate the manifest already held for exactly this. Its route was mounted all along; only the way in was withheld.+- The sidebar's **new workspace** picker offers the machine row, so a workspace can be created on a machine rather than only here.++Everything either one shows was already built and tested; what was missing was the way in. Kept as a change of its own so that turning the feature on is a decision with a date, separate from the code that makes it possible — and so that turning it back off is a revert of a few lines rather than of a feature.++Both surfaces are admin-only in effect: the list they read answers `403` to everyone else, and a non-admin who types the URL gets the page's own refusal.diff --git a/changelog/unreleased/2026-09-01-machines-page-on.zh.md b/changelog/unreleased/2026-09-01-machines-page-on.zh.mdnew file mode 100644index 00000000..052df5dc--- /dev/null+++ b/changelog/unreleased/2026-09-01-machines-page-on.zh.md@@ -0,0 +1,17 @@+# Machines 页面正式放开++- **Date:** 2026-09-01+- **Type:** feature+- **Scope:** `web`+- **PR:** [#577](https://github.com/Prism-Shadow/penguin-harness/pull/577)++[English](2026-09-01-machines-page-on.md)++两处改动,让前面整条栈建起来的功能变得可达:++- Machines 页面在 web 清单里的条目标为已发布,侧边栏对管理员显示这一行——清单早就为此留着这道闸。它的路由一直挂着,此前缺的只是入口。+- 侧边栏的**新建工作区**选择器给出机器那一行,于是工作区可以建在某台机器上,而不只是本机。++这两处所展示的东西此前都已经写好也测过,缺的只是入口。把它单独留成一个改动,是为了让「放开这个功能」成为一个有日期的决定,与让它成为可能的代码分开——也为了万一要收回去,那是回退几行,而不是回退一个功能。++两处入口实际上都只对管理员生效:它们读的那个列表对其他人一律 `403`,而非管理员直接敲 URL 进来,会拿到页面自己的拒绝。diff --git a/packages/web/src/components/layout/sidebar.tsx b/packages/web/src/components/layout/sidebar.tsxindex 3c9b5f2d..9d6586bb 100644--- a/packages/web/src/components/layout/sidebar.tsx+++ b/packages/web/src/components/layout/sidebar.tsx@@ -2228,6 +2228,10 @@ export function Sidebar({projectId={currentProjectId ?? ""}workspace=""onChange={addWorkspace}+ // The sidebar's + is where a workspace is CREATED, so it is where the+ // machine is chosen; the draft and settings pickers edit a workspace that+ // already has one.+ chooseMachinetrigger={(open, toggle) => (<buttontype="button"diff --git a/packages/web/src/module.json b/packages/web/src/module.jsonindex 2d54b9aa..0159d2a1 100644--- a/packages/web/src/module.json+++ b/packages/web/src/module.json@@ -77,7 +77,7 @@"path": "/machines","nav": "main","admin": true,- "released": false,+ "released": true,"renderer": {"builtin": "MachinesPage"}diff --git a/packages/web/test/nav-group-collapse.test.ts b/packages/web/test/nav-group-collapse.test.tsindex a5b1ecbe..2eb3ee14 100644--- a/packages/web/test/nav-group-collapse.test.ts+++ b/packages/web/test/nav-group-collapse.test.ts@@ -73,10 +73,10 @@ describe("navKeysFor", () => {// /api/machines is admin-gated server-side (it spawns ssh with the server account's// keys), so offering a member the row would only ever produce a 403.expect([...navKeysFor(false)]).toEqual(["agents", "plugins", "models", "usage", "benchmark"]);- // An admin sees the manifest minus what is built but not yet offered — `machines` today,- // which is why neither answer contains it and the two are equal for now. The Plugins page- // carries the built-in library and the deployment's registry both, under one key.- expect([...navKeysFor(true)]).toEqual(["agents", "plugins", "models", "usage", "benchmark"]);+ // An admin sees the whole manifest, machines included — the row it hides from a member.+ // The Plugins page carries the built-in library and the deployment's registry both,+ // under one key.+ expect([...navKeysFor(true)]).toEqual([...NAV_GROUP_KEYS]);expect(NAV_GROUP_KEYS as readonly string[]).toContain("machines");});});diff --git a/packages/web/test/pages.test.ts b/packages/web/test/pages.test.tsindex 919678ec..61dd8d80 100644--- a/packages/web/test/pages.test.ts+++ b/packages/web/test/pages.test.ts@@ -28,7 +28,8 @@ describe("the page manifest", () => {it("the nav a member sees drops admin-only and unreleased pages", () => {const admin = navPagesFor(true).map((p) => p.key);const member = navPagesFor(false).map((p) => p.key);- expect(admin).not.toContain("machines"); // unreleased for everyone+ expect(admin).toContain("machines"); // released, and admin-only+ expect(member).not.toContain("machines");expect(member.every((key) => admin.includes(key))).toBe(true);for (const page of PAGES.filter((p) => p.nav === "main" && p.admin))expect(member).not.toContain(page.key);