mirror of
https://github.com/openai/codex.git
synced 2026-05-28 15:00:16 +00:00
codex: hide local apply_patch MCP environment
Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
@@ -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}"));
|
||||
|
||||
Reference in New Issue
Block a user