mirror of
https://github.com/openai/codex.git
synced 2026-11-06 20:20:34 +00:00
codex: redact dependency env updates in session logs
Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
@@ -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!({
|
||||
|
||||
Reference in New Issue
Block a user