diff --git a/apps/desktop/src/perfConfig.test.ts b/apps/desktop/src/perfConfig.test.ts index 6079754c46..9f473bdb22 100644 --- a/apps/desktop/src/perfConfig.test.ts +++ b/apps/desktop/src/perfConfig.test.ts @@ -122,5 +122,11 @@ describe("shouldRunTerminalPerfInteractions", () => { CI: "false", }), ).toBe(true); + expect( + shouldRunTerminalPerfInteractions({ + T3CODE_DESKTOP_PERF_RUN_TERMINAL: "unknown", + CI: "maybe", + }), + ).toBe(true); }); }); diff --git a/apps/desktop/src/perfConfig.ts b/apps/desktop/src/perfConfig.ts index f66f8a3ac9..868dabfb46 100644 --- a/apps/desktop/src/perfConfig.ts +++ b/apps/desktop/src/perfConfig.ts @@ -21,6 +21,10 @@ function isCiEnvironment(value: string | undefined): boolean { /** * Controls whether desktop perf automation should include terminal shortcuts. * + * Accepted explicit env values: + * - truthy: "1", "true", "yes", "on" + * - falsy: "0", "false", "no", "off" + * * Defaults to "on" for local/dev runs, but "off" in CI unless explicitly enabled. * This keeps CI perf checks focused on renderer responsiveness while avoiding * flaky PTY-dependent interactions in ephemeral Linux runners.