From 01cc71060d6c57eff142cfc210685c651ccb6397 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Fri, 7 Aug 2026 04:25:47 -0700 Subject: [PATCH] test(tui): gate built CLI PTY cases (#120221) --- src/tui/tui-pty-local.e2e.test.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/tui/tui-pty-local.e2e.test.ts b/src/tui/tui-pty-local.e2e.test.ts index 6134d2f577ae..2f61d2488d19 100644 --- a/src/tui/tui-pty-local.e2e.test.ts +++ b/src/tui/tui-pty-local.e2e.test.ts @@ -63,6 +63,9 @@ type GatewayScenario = MockModelBehavior & { }; const SHARED_GATEWAY_AGENT_ID = "tui-pty-gateway"; +// These cases spawn openclaw.mjs outside the source TUI runner. CI opts in only +// after the exact head has a complete build, so source-mode PTY smoke must skip them. +const itWithBuiltCli = process.env.OPENCLAW_TUI_PTY_USE_BUILT_CLI === "1" ? it : it.skip; const GATEWAY_SCENARIOS = { validation: { @@ -1344,7 +1347,7 @@ describe("TUI PTY real backends", () => { LOCAL_TEST_TIMEOUT_MS, ); - it( + itWithBuiltCli( "repairs isolated config through the approved built CLI and resumes local chat", async ({ onTestFinished }) => { const fixture = await startLocalModeTui(onTestFinished, { @@ -1398,7 +1401,7 @@ describe("TUI PTY real backends", () => { LOCAL_TEST_TIMEOUT_MS, ); - it( + itWithBuiltCli( "authenticates a manifest-discovered provider and resumes the unchanged local model", async ({ onTestFinished }) => { const pluginId = "t05-local-auth-fixture";