mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 19:52:02 +00:00
fix: Honor DEBUG and CLI_TITLE environment variables (#3560)
This commit is contained in:
parent
c0940a194e
commit
2ed1b378cb
2 changed files with 11 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue