chore: last round of touchups and bug fixes

This commit is contained in:
Ralph Khreish
2025-09-24 10:57:17 +02:00
parent 8f1497407f
commit c911608f60
5 changed files with 29 additions and 16 deletions

View File

@@ -463,6 +463,17 @@ export function findConfigPath(explicitPath = null, args = null, log = null) {
}
}
logger.warn?.(`No configuration file found in project: ${projectRoot}`);
// Only warn once per command execution to prevent spam during init
const warningKey = `config_warning_${projectRoot}`;
if (!global._tmConfigWarningsThisRun) {
global._tmConfigWarningsThisRun = new Set();
}
if (!global._tmConfigWarningsThisRun.has(warningKey)) {
global._tmConfigWarningsThisRun.add(warningKey);
logger.warn?.(`No configuration file found in project: ${projectRoot}`);
}
return null;
}