Skip to content

Commit 01cc710

Browse files
authored
test(tui): gate built CLI PTY cases (#120221)
1 parent 60fc2fe commit 01cc710

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎src/tui/tui-pty-local.e2e.test.ts‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ type GatewayScenario = MockModelBehavior & {
6363
};
6464

6565
const SHARED_GATEWAY_AGENT_ID = "tui-pty-gateway";
66+
// These cases spawn openclaw.mjs outside the source TUI runner. CI opts in only
67+
// after the exact head has a complete build, so source-mode PTY smoke must skip them.
68+
const itWithBuiltCli = process.env.OPENCLAW_TUI_PTY_USE_BUILT_CLI === "1" ? it : it.skip;
6669

6770
const GATEWAY_SCENARIOS = {
6871
validation: {
@@ -1344,7 +1347,7 @@ describe("TUI PTY real backends", () => {
13441347
LOCAL_TEST_TIMEOUT_MS,
13451348
);
13461349

1347-
it(
1350+
itWithBuiltCli(
13481351
"repairs isolated config through the approved built CLI and resumes local chat",
13491352
async ({ onTestFinished }) => {
13501353
const fixture = await startLocalModeTui(onTestFinished, {
@@ -1398,7 +1401,7 @@ describe("TUI PTY real backends", () => {
13981401
LOCAL_TEST_TIMEOUT_MS,
13991402
);
14001403

1401-
it(
1404+
itWithBuiltCli(
14021405
"authenticates a manifest-discovered provider and resumes the unchanged local model",
14031406
async ({ onTestFinished }) => {
14041407
const pluginId = "t05-local-auth-fixture";

0 commit comments

Comments
 (0)