Skip to content

armgit / mso

Public Imported from GitHub
0

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.

test(workflows): update details selection contract

Rahmand34d2f517722
diff --git a/frontend/slices/workflows/session-graph-ui.test.ts b/frontend/slices/workflows/session-graph-ui.test.ts
index 5e17a4e7..82bcbe0b 100644
--- a/frontend/slices/workflows/session-graph-ui.test.ts
+++ b/frontend/slices/workflows/session-graph-ui.test.ts
@@ -23,7 +23,9 @@ describe("Workflow session graph UI contract", () => {
it("keeps session graphs read-only and makes tool execution an explicit inspector action", () => {
expect(workflowApp).toContain('type LibraryMode = "automations" | "sessions"');
expect(workflowApp).toContain("readOnly/>");
- expect(workflowApp).toContain('const chooseSessionNode = (id: string | null) => { setSessionSelected(id); if (id && overlayPane) setDetailsOpen(true); };');
+ expect(workflowApp).toContain('const chooseSessionNode = (id: string | null) => {');
+ expect(workflowApp).toContain('if (overlayPane) setDetailsOpen(true);');
+ expect(workflowApp).toContain('else setShowDetails(true);');
expect(workflowApp).toContain('if (!sessionView) return; setDetailsOpen(false); openWindow("os-terminal"');
expect(workflowApp).toContain('const openSessionCode = (path: string) => { setDetailsOpen(false);');
expect(sessionDetails).toContain("Open terminal here");