force redaction mode to bypass logging config

This commit is contained in:
Pengfei Ni
2026-04-11 12:09:15 +00:00
committed by Vincent Koc
parent 4935bc9e82
commit e93c13b3a7

View File

@@ -10,7 +10,7 @@ function formatCodePointEscape(char: string): string {
export function sanitizeExecApprovalDisplayText(commandText: string): string {
const escaped = commandText.replace(EXEC_APPROVAL_INVISIBLE_CHAR_REGEX, formatCodePointEscape);
return redactSensitiveText(escaped);
return redactSensitiveText(escaped, { mode: "tools" });
}
function normalizePreview(commandText: string, commandPreview?: string | null): string | null {