fix: Honor DEBUG and CLI_TITLE environment variables (#3560)

This commit is contained in:
Marat Boshernitsan
2025-07-08 12:34:17 -07:00
committed by GitHub
parent c0940a194e
commit 2ed1b378cb
2 changed files with 11 additions and 2 deletions

View File

@@ -186,7 +186,11 @@ export async function loadCliConfig(
sessionId: string,
): Promise<Config> {
const argv = await parseArguments();
const debugMode = argv.debug || false;
const debugMode =
argv.debug ||
[process.env.DEBUG, process.env.DEBUG_MODE].some(
(v) => v === 'true' || v === '1',
);
const activeExtensions = filterActiveExtensions(
extensions,