Redact credentials on the way into a stored chat

A stored transcript is replayed into a later prompt when reopened, so a key typed while
changing a setting would be handed back to the model on every subsequent turn.
This commit is contained in:
Gmer4Lfe
2026-08-09 19:07:34 -04:00
parent 67eabdc17c
commit 500f9d92c8
4 changed files with 117 additions and 2 deletions
+1 -1
View File
@@ -162,7 +162,7 @@ if ($profile === 'chat') {
if ($to !== '' && $to !== $profile) {
$profile = $to;
$escalated = true;
wlog('handoff chat -> ' . $to . ': ' . mb_substr($question, 0, 80));
wlog('handoff chat -> ' . $to . ': ' . mb_substr(vv_ai_redact($question), 0, 80));
}
}