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(mcp): close terminal after session graph check

Rahmanad0eb734382f
diff --git a/scripts/e2e/mcp-sessions.mjs b/scripts/e2e/mcp-sessions.mjs
index 98684bdf..34f5b4af 100644
--- a/scripts/e2e/mcp-sessions.mjs
+++ b/scripts/e2e/mcp-sessions.mjs
@@ -66,5 +66,10 @@ export async function mcpSessionsJourney(page, fixture) {
expect(await page.locator('[data-slot="workflows-feature"]').innerText()).not.toMatch(/\b\d{8}_\d{6}_[a-f0-9]{8}\b/);
await terminalToolNode.click();
await expect(page.getByRole("tablist", { name: "Terminal sessions" }).last()).toBeVisible();
+ const terminalWindow = page.locator('[data-window="true"][data-app="os-terminal"]').last();
+ const closeWindow = terminalWindow.getByRole("button", { name: "Close window", exact: true });
+ await expect(closeWindow).toBeVisible();
+ await closeWindow.click();
+ await expect(terminalWindow).toHaveCount(0);
console.log("PASS session labels, Workflow graph handoff, terminal context, redaction, handover, keyboard and accessibility");
}