mirror of
https://github.com/openai/codex.git
synced 2026-09-05 15:18:41 +00:00
codex: preserve environment context file identity (#29249)
This commit is contained in:
@@ -205,7 +205,7 @@ fn push_text_element(rendered: &mut String, name: &str, value: &str) {
|
||||
rendered.push_str(&format!("</{name}>"));
|
||||
}
|
||||
|
||||
pub(super) fn push_xml_escaped_text(rendered: &mut String, value: &str) {
|
||||
pub(crate) fn push_xml_escaped_text(rendered: &mut String, value: &str) {
|
||||
for ch in value.chars() {
|
||||
match ch {
|
||||
'&' => rendered.push_str("&"),
|
||||
@@ -7,6 +7,7 @@ mod available_skills_instructions;
|
||||
mod collaboration_mode_instructions;
|
||||
mod contextual_user_message;
|
||||
mod current_time_reminder;
|
||||
mod environment_context;
|
||||
mod guardian_followup_review_reminder;
|
||||
mod hook_additional_context;
|
||||
mod image_generation_instructions;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
use super::WorldStateSection;
|
||||
use super::environment_support::FileSystemContext;
|
||||
use super::environment_support::NetworkContext;
|
||||
use super::environment_support::push_xml_escaped_text;
|
||||
use crate::context::ContextualUserFragment;
|
||||
use crate::context::environment_context::FileSystemContext;
|
||||
use crate::context::environment_context::NetworkContext;
|
||||
use crate::context::environment_context::push_xml_escaped_text;
|
||||
use crate::session::turn_context::TurnContext;
|
||||
use codex_exec_server::LOCAL_ENVIRONMENT_ID;
|
||||
use codex_protocol::models::ResponseItem;
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
mod environment;
|
||||
mod environment_support;
|
||||
|
||||
use codex_protocol::models::ResponseItem;
|
||||
use indexmap::IndexMap;
|
||||
|
||||
Reference in New Issue
Block a user