From 72c959528ee4ca74abdb8575fbbc4e36960a8c47 Mon Sep 17 00:00:00 2001 From: Won Park Date: Wed, 7 Oct 2026 21:16:57 +0000 Subject: [PATCH] Enable code mode interruption by default (#51835) ## What changed Mark `code_mode_interrupt` as stable and enable it by default, so interrupting a turn terminates active code mode cells and nested tool calls. ## Testing Update the existing interruption test to use the feature default instead of explicitly enabling `CodeModeInterrupt`. It verifies that active cells and nested tools are aborted while stored session values remain available. GitOrigin-RevId: 17be94f208713bc232e2292feb48261938254db3 --- codex-rs/core/tests/suite/code_mode.rs | 1 - codex-rs/features/src/lib.rs | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/codex-rs/core/tests/suite/code_mode.rs b/codex-rs/core/tests/suite/code_mode.rs index 2b82def2b021..9b0a4a89a5ea 100644 --- a/codex-rs/core/tests/suite/code_mode.rs +++ b/codex-rs/core/tests/suite/code_mode.rs @@ -6015,7 +6015,6 @@ async fn code_mode_interrupt_terminates_active_cells_and_nested_tools() -> Resul .with_extensions(Arc::new(extensions.build())) .with_config(|config| { let _ = config.features.enable(Feature::CodeMode); - let _ = config.features.enable(Feature::CodeModeInterrupt); let _ = config.features.enable(Feature::ExecutedToolCallMetadata); }); let test = builder.build_with_auto_env(&server).await?; diff --git a/codex-rs/features/src/lib.rs b/codex-rs/features/src/lib.rs index 6589458490d0..f9147628f0cc 100644 --- a/codex-rs/features/src/lib.rs +++ b/codex-rs/features/src/lib.rs @@ -1154,8 +1154,8 @@ pub const FEATURES: &[FeatureSpec] = &[ FeatureSpec { id: Feature::CodeModeInterrupt, key: "code_mode_interrupt", - stage: Stage::UnderDevelopment, - default_enabled: false, + stage: Stage::Stable, + default_enabled: true, }, FeatureSpec { id: Feature::CodeModeToolDescriptionFirst,