Lightweight coding agent that runs in your terminal
Rust
Enable retained-image budgeting by default (#40994)
pakrym-oai528fd7ace5ec
diff --git a/codex-rs/core/tests/suite/compact_remote.rs b/codex-rs/core/tests/suite/compact_remote.rsindex c19f60ea91..661caf62b4 100644--- a/codex-rs/core/tests/suite/compact_remote.rs+++ b/codex-rs/core/tests/suite/compact_remote.rs@@ -1332,7 +1332,7 @@ async fn remote_manual_compact_chatgpt_auth_reuses_service_tier_and_prompt_cacheOk(())}-#[test_case(None; "default_preserves_images")]+#[test_case(None; "default_trims_images")]#[test_case(Some(false); "disabled_preserves_images")]#[test_case(Some(true); "enabled_trims_images")]#[tokio::test(flavor = "multi_thread", worker_threads = 2)]@@ -1437,7 +1437,7 @@ async fn remote_compact_v2_charges_retained_images_to_token_budget(follow_up.inputs_of_type("compaction")[0]["encrypted_content"],"IMAGE_BUDGET_SUMMARY");- let dropped = if image_budget_enabled == Some(true) {+ let dropped = if image_budget_enabled.unwrap_or(true) {cycle} else {0diff --git a/codex-rs/features/src/lib.rs b/codex-rs/features/src/lib.rsindex 3a520f0198..a4d275cac8 100644--- a/codex-rs/features/src/lib.rs+++ b/codex-rs/features/src/lib.rs@@ -1616,8 +1616,8 @@ pub const FEATURES: &[FeatureSpec] = &[FeatureSpec {id: Feature::CompactionImageBudget,key: "compaction_image_budget",- stage: Stage::UnderDevelopment,- default_enabled: false,+ stage: Stage::Stable,+ default_enabled: true,},FeatureSpec {id: Feature::RetainClientDeveloperMessages,