@@ -3,7 +3,6 @@ use codex_protocol::openai_models::ApplyPatchToolType;
33use codex_protocol:: openai_models:: ConfigShellToolType ;
44use codex_protocol:: openai_models:: ModelInfo ;
55use codex_protocol:: openai_models:: ReasoningEffort ;
6- use codex_protocol:: openai_models:: ReasoningSummaryFormat ;
76
87use crate :: config:: Config ;
98use crate :: truncate:: TruncationPolicy ;
@@ -48,9 +47,6 @@ pub struct ModelFamily {
4847 // The reasoning effort to use for this model family when none is explicitly chosen.
4948 pub default_reasoning_effort : Option < ReasoningEffort > ,
5049
51- // Define if we need a special handling of reasoning summary
52- pub reasoning_summary_format : ReasoningSummaryFormat ,
53-
5450 /// Whether this model supports parallel tool calls when using the
5551 /// Responses API.
5652 pub supports_parallel_tool_calls : bool ,
@@ -88,9 +84,6 @@ impl ModelFamily {
8884 if let Some ( supports_reasoning_summaries) = config. model_supports_reasoning_summaries {
8985 self . supports_reasoning_summaries = supports_reasoning_summaries;
9086 }
91- if let Some ( reasoning_summary_format) = config. model_reasoning_summary_format . as_ref ( ) {
92- self . reasoning_summary_format = reasoning_summary_format. clone ( ) ;
93- }
9487 if let Some ( context_window) = config. model_context_window {
9588 self . context_window = Some ( context_window) ;
9689 }
@@ -128,7 +121,6 @@ impl ModelFamily {
128121 truncation_policy,
129122 supports_parallel_tool_calls,
130123 context_window,
131- reasoning_summary_format,
132124 experimental_supported_tools,
133125 } = model;
134126
@@ -144,7 +136,6 @@ impl ModelFamily {
144136 self . truncation_policy = truncation_policy. into ( ) ;
145137 self . supports_parallel_tool_calls = supports_parallel_tool_calls;
146138 self . context_window = context_window;
147- self . reasoning_summary_format = reasoning_summary_format;
148139 self . experimental_supported_tools = experimental_supported_tools;
149140 }
150141
@@ -175,7 +166,6 @@ macro_rules! model_family {
175166 context_window: Some ( CONTEXT_WINDOW_272K ) ,
176167 auto_compact_token_limit: None ,
177168 supports_reasoning_summaries: false ,
178- reasoning_summary_format: ReasoningSummaryFormat :: None ,
179169 supports_parallel_tool_calls: false ,
180170 apply_patch_tool_type: None ,
181171 base_instructions: BASE_INSTRUCTIONS . to_string( ) ,
@@ -250,7 +240,6 @@ pub(super) fn find_family_for_model(slug: &str) -> ModelFamily {
250240 model_family ! (
251241 slug, slug,
252242 supports_reasoning_summaries: true ,
253- reasoning_summary_format: ReasoningSummaryFormat :: Experimental ,
254243 base_instructions: GPT_5_CODEX_INSTRUCTIONS . to_string( ) ,
255244 experimental_supported_tools: vec![
256245 "grep_files" . to_string( ) ,
@@ -270,7 +259,6 @@ pub(super) fn find_family_for_model(slug: &str) -> ModelFamily {
270259 model_family ! (
271260 slug, slug,
272261 supports_reasoning_summaries: true ,
273- reasoning_summary_format: ReasoningSummaryFormat :: Experimental ,
274262 base_instructions: GPT_5_2_CODEX_INSTRUCTIONS . to_string( ) ,
275263 apply_patch_tool_type: Some ( ApplyPatchToolType :: Freeform ) ,
276264 shell_type: ConfigShellToolType :: ShellCommand ,
@@ -299,7 +287,6 @@ pub(super) fn find_family_for_model(slug: &str) -> ModelFamily {
299287 model_family ! (
300288 slug, slug,
301289 supports_reasoning_summaries: true ,
302- reasoning_summary_format: ReasoningSummaryFormat :: Experimental ,
303290 base_instructions: GPT_5_2_CODEX_INSTRUCTIONS . to_string( ) ,
304291 apply_patch_tool_type: Some ( ApplyPatchToolType :: Freeform ) ,
305292 shell_type: ConfigShellToolType :: ShellCommand ,
@@ -312,7 +299,6 @@ pub(super) fn find_family_for_model(slug: &str) -> ModelFamily {
312299 model_family ! (
313300 slug, slug,
314301 supports_reasoning_summaries: true ,
315- reasoning_summary_format: ReasoningSummaryFormat :: Experimental ,
316302 base_instructions: GPT_5_2_CODEX_INSTRUCTIONS . to_string( ) ,
317303 apply_patch_tool_type: Some ( ApplyPatchToolType :: Freeform ) ,
318304 shell_type: ConfigShellToolType :: ShellCommand ,
@@ -325,7 +311,6 @@ pub(super) fn find_family_for_model(slug: &str) -> ModelFamily {
325311 model_family ! (
326312 slug, slug,
327313 supports_reasoning_summaries: true ,
328- reasoning_summary_format: ReasoningSummaryFormat :: Experimental ,
329314 base_instructions: GPT_5_1_CODEX_MAX_INSTRUCTIONS . to_string( ) ,
330315 apply_patch_tool_type: Some ( ApplyPatchToolType :: Freeform ) ,
331316 shell_type: ConfigShellToolType :: ShellCommand ,
@@ -341,7 +326,6 @@ pub(super) fn find_family_for_model(slug: &str) -> ModelFamily {
341326 model_family ! (
342327 slug, slug,
343328 supports_reasoning_summaries: true ,
344- reasoning_summary_format: ReasoningSummaryFormat :: Experimental ,
345329 base_instructions: GPT_5_CODEX_INSTRUCTIONS . to_string( ) ,
346330 apply_patch_tool_type: Some ( ApplyPatchToolType :: Freeform ) ,
347331 shell_type: ConfigShellToolType :: ShellCommand ,
@@ -416,7 +400,6 @@ fn derive_default_model_family(model: &str) -> ModelFamily {
416400 context_window : None ,
417401 auto_compact_token_limit : None ,
418402 supports_reasoning_summaries : false ,
419- reasoning_summary_format : ReasoningSummaryFormat :: None ,
420403 supports_parallel_tool_calls : false ,
421404 apply_patch_tool_type : None ,
422405 base_instructions : BASE_INSTRUCTIONS . to_string ( ) ,
@@ -460,7 +443,6 @@ mod tests {
460443 truncation_policy : TruncationPolicyConfig :: bytes ( 10_000 ) ,
461444 supports_parallel_tool_calls : false ,
462445 context_window : None ,
463- reasoning_summary_format : ReasoningSummaryFormat :: None ,
464446 experimental_supported_tools : Vec :: new ( ) ,
465447 }
466448 }
@@ -524,7 +506,6 @@ mod tests {
524506 experimental_supported_tools: vec![ "local" . to_string( ) ] ,
525507 truncation_policy: TruncationPolicy :: Bytes ( 10_000 ) ,
526508 context_window: Some ( 100 ) ,
527- reasoning_summary_format: ReasoningSummaryFormat :: None ,
528509 ) ;
529510
530511 let updated = family. with_remote_overrides ( vec ! [ ModelInfo {
@@ -549,7 +530,6 @@ mod tests {
549530 truncation_policy: TruncationPolicyConfig :: tokens( 2_000 ) ,
550531 supports_parallel_tool_calls: true ,
551532 context_window: Some ( 400_000 ) ,
552- reasoning_summary_format: ReasoningSummaryFormat :: Experimental ,
553533 experimental_supported_tools: vec![ "alpha" . to_string( ) , "beta" . to_string( ) ] ,
554534 } ] ) ;
555535
@@ -568,10 +548,6 @@ mod tests {
568548 assert_eq ! ( updated. truncation_policy, TruncationPolicy :: Tokens ( 2_000 ) ) ;
569549 assert ! ( updated. supports_parallel_tool_calls) ;
570550 assert_eq ! ( updated. context_window, Some ( 400_000 ) ) ;
571- assert_eq ! (
572- updated. reasoning_summary_format,
573- ReasoningSummaryFormat :: Experimental
574- ) ;
575551 assert_eq ! (
576552 updated. experimental_supported_tools,
577553 vec![ "alpha" . to_string( ) , "beta" . to_string( ) ]
0 commit comments