fix(logging): redact CLI argv in lifecycle start logs

Squash merge PR #1297 into dev.
This commit is contained in:
Kai (Tam Nhu) Tran authored and GitHub committed 2026-05-19 07:57:43 -04:00
1 parent be4ee810c1
commit 100308a3cf
2 files changed
+153 -1

No files matched your search

+2 -1
View File
@@ -6,6 +6,7 @@ import { fail } from './utils/ui';
import { handleError, runCleanup } from './errors';
import { createLogger, runWithRequestId } from './services/logging';
import { redactArgv } from './services/logging/log-redaction';
// Import target adapter system
import { registerTarget, ClaudeAdapter, DroidAdapter, CodexAdapter } from './targets';
@@ -143,7 +144,7 @@ const cliEntryStartedAt = Date.now();
const cliEntryLogger = createLogger('cli:entry');
runWithRequestId(() => {
cliEntryLogger.stage('intake', 'cli.command.start', 'CLI invocation started', {
argv: process.argv.slice(2),
argv: redactArgv(process.argv.slice(2)),
});
return main()
.then(() => {