codex: hide local apply_patch MCP environment

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
starr-openai
2026-05-07 19:02:05 -07:00
parent 709bab3975
commit e216210a4b

View File

@@ -64,7 +64,9 @@ pub(crate) async fn handle_patch_approval_request(
if let Some(r) = &reason {
message_lines.push(r.clone());
}
let codex_environment_id = (!environment_id.is_empty()).then_some(environment_id);
let codex_environment_id = (!environment_id.is_empty()
&& environment_id != codex_exec_server::LOCAL_ENVIRONMENT_ID)
.then_some(environment_id);
let codex_cwd = cwd;
if let Some(environment_id) = codex_environment_id.as_deref() {
message_lines.push(format!("Environment: {environment_id}"));