@@ -3,7 +3,7 @@ import { readFile, writeFile } from "node:fs/promises";
33import path from "node:path" ;
44import { pathToFileURL } from "node:url" ;
55import { TUI_PTY_GAP_HISTORY_FIXTURE_SCRIPT } from "./tui-pty-gap-fixture-test-support.js" ;
6- import { TUI_PTY_RESET_FIXTURE_SCRIPT } from "./tui-pty-reset-fixture-test-support.js" ;
6+ import { TUI_PTY_RESET_FIXTURE } from "./tui-pty-reset-fixture-test-support.js" ;
77import { TUI_PTY_SESSION_SUBSCRIPTION_FIXTURE_SCRIPT } from "./tui-pty-subscription-fixture-test-support.js" ;
88import { sleep , type PtyRun } from "./tui-pty-test-support.js" ;
99
@@ -33,10 +33,6 @@ export async function writeTuiPtyFixtureScript(dir: string) {
3333 const actionLogPath = process.env.OPENCLAW_TUI_PTY_LOG_PATH;
3434 const gatewayStatus = process.env.OPENCLAW_TUI_PTY_GATEWAY_STATUS ?? "fixture gateway ok";
3535 const startupDelayMs = Number(process.env.OPENCLAW_TUI_PTY_STARTUP_DELAY_MS ?? 0);
36- const submitBurstWindowMs = Number(
37- process.env.OPENCLAW_TUI_PTY_SUBMIT_BURST_WINDOW_MS ?? 0,
38- );
39- const ctrlCExitWindowMs = Number(process.env.OPENCLAW_TUI_PTY_CTRL_C_EXIT_WINDOW_MS ?? 0);
4036 const footerModel = process.env.OPENCLAW_TUI_PTY_MODEL;
4137 const footerThinkingLevel = process.env.OPENCLAW_TUI_PTY_THINKING_LEVEL;
4238 let verboseLevel = process.env.OPENCLAW_TUI_PTY_VERBOSE_LEVEL;
@@ -500,7 +496,7 @@ export async function writeTuiPtyFixtureScript(dir: string) {
500496 return { ok: true, key, entry: { ...sessionEntry(key), sessionId: "created-session" } };
501497 }
502498
503- ${ TUI_PTY_RESET_FIXTURE_SCRIPT }
499+ ${ TUI_PTY_RESET_FIXTURE . methods }
504500
505501 async getGatewayStatus() {
506502 record("getGatewayStatus");
@@ -586,9 +582,7 @@ export async function writeTuiPtyFixtureScript(dir: string) {
586582 message: initialMessage,
587583 historyLimit: 5,
588584 title: "openclaw tui pty fixture",
589- submitBurstWindowMs: submitBurstWindowMs > 0 ? submitBurstWindowMs : undefined,
590- ctrlCExitWindowMs: ctrlCExitWindowMs > 0 ? ctrlCExitWindowMs : undefined,
591- onSubmitBurstCaptured: (value) => record("submitBurstCaptured", { value }),
585+ ${ TUI_PTY_RESET_FIXTURE . options }
592586 });
593587 }
594588
0 commit comments