codex: redact dependency env updates in session logs

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Michael Fan
2026-03-26 16:57:50 -04:00
co-authored by Codex
parent 3d5965dad5
commit b54bfc88d5
+14
View File
@@ -172,6 +172,20 @@ pub(crate) fn log_inbound_app_event(event: &AppEvent) {
});
LOGGER.write_json_line(value);
}
AppEvent::SetDependencyEnv {
thread_id, values, ..
} => {
let mut keys = values.keys().collect::<Vec<_>>();
keys.sort();
let value = json!({
"ts": now_ts(),
"dir": "to_tui",
"kind": "set_dependency_env",
"thread_id": thread_id.to_string(),
"keys": keys,
});
LOGGER.write_json_line(value);
}
// Noise or control flow – record variant only
other => {
let value = json!({