Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

Update new_context_window instructions (#29739)

Andrey Mishchenko3b4186986f5f
diff --git a/codex-rs/core/src/tools/handlers/new_context_window_spec.rs b/codex-rs/core/src/tools/handlers/new_context_window_spec.rs
index f58b66e589..d2bde1f137 100644
--- a/codex-rs/core/src/tools/handlers/new_context_window_spec.rs
+++ b/codex-rs/core/src/tools/handlers/new_context_window_spec.rs
@@ -8,7 +8,7 @@ pub(crate) const NEW_CONTEXT_WINDOW_TOOL_NAME: &str = "new_context";
pub fn create_new_context_window_tool() -> ToolSpec {
ToolSpec::Function(ResponsesApiTool {
name: NEW_CONTEXT_WINDOW_TOOL_NAME.to_string(),
- description: "Start a new context window.".to_string(),
+ description: "Start a new context window. Does not clear, reset, or otherwise affect environment state.".to_string(),
strict: false,
defer_loading: None,
parameters: JsonSchema::object(BTreeMap::new(), /*required*/ None, Some(false.into())),