Document terminal perf toggle default behavior
Co-authored-by: Julius Marminge <[email protected]>
This commit is contained in:
1 parent
ce28d5b09d
commit
3c4eb3f158
1 file changed
+7
@@ -3,6 +3,13 @@ type PerfToggleEnv = {
|
||||
CI?: string | undefined;
|
||||
};
|
||||
|
||||
/**
|
||||
* Controls whether desktop perf automation should include terminal shortcuts.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
export function shouldRunTerminalPerfInteractions(env: PerfToggleEnv): boolean {
|
||||
const raw = env.T3CODE_DESKTOP_PERF_RUN_TERMINAL?.trim().toLowerCase();
|
||||
if (raw === "1" || raw === "true") return true;
|
||||
|
||||
Reference in new issue
Block a user