mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Make the update_plan tool opt-in (#41744)
## What changed - Default `tools.update_plan.enabled` to `false`; users can explicitly enable it to expose `update_plan`. - Remove bundled `update_plan` guidance from model, collaboration-mode, multi-agent, compaction, prewarm, and goal-continuation prompts when the tool is disabled. - Preserve custom base instructions, model catalog instructions, collaboration policies, and user goal text even when they mention planning or `update_plan`. ## Testing - Cover default and explicitly enabled tool registration, prompt consistency across request paths, and preservation of custom instructions. GitOrigin-RevId: a53964e6e72f98e2557dd3090fdb7caccb956527
This commit is contained in:
1 parent
b7cd519c76
commit
a9519cbcdd
31 files changed
+500
-71
No files matched your search
@@ -882,8 +882,11 @@ impl AgentControl {
|
||||
let multi_agent_v2_usage_hint_texts_to_filter: Vec<String> =
|
||||
if multi_agent_version == MultiAgentVersion::V2 {
|
||||
let parent_config = parent_thread.session.get_config().await;
|
||||
let parent_usage_hints =
|
||||
resolve_usage_hints(&parent_config.multi_agent_v2, /*catalog*/ None);
|
||||
let parent_usage_hints = resolve_usage_hints(
|
||||
&parent_config.multi_agent_v2,
|
||||
/*catalog*/ None,
|
||||
!parent_config.update_plan_enabled,
|
||||
);
|
||||
[parent_usage_hints.root, parent_usage_hints.subagent]
|
||||
.into_iter()
|
||||
.flatten()
|
||||
@@ -1041,7 +1044,12 @@ impl AgentControl {
|
||||
.as_ref()
|
||||
.map(|hints| hints.subagent.clone())
|
||||
.unwrap_or_else(|| {
|
||||
resolve_usage_hints(&config.multi_agent_v2, /*catalog*/ None).subagent
|
||||
resolve_usage_hints(
|
||||
&config.multi_agent_v2,
|
||||
/*catalog*/ None,
|
||||
!config.update_plan_enabled,
|
||||
)
|
||||
.subagent
|
||||
})
|
||||
{
|
||||
let subagent_usage_hint_message = ContextualUserFragment::into(subagent_usage_hint);
|
||||
|
||||
Reference in new issue
Block a user