From e0e3e3aeeb78a2d9d30633a91a5b57004aaafb5b Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 17 Feb 2026 07:20:33 +0000 Subject: [PATCH] Document perf toggle aliases and unknown CI fallback Co-authored-by: Julius Marminge --- apps/desktop/src/perfConfig.test.ts | 6 ++++++ apps/desktop/src/perfConfig.ts | 4 ++++ 2 files changed, 10 insertions(+) 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.