Lightweight coding agent that runs in your terminal
Rust
fix: clarify deprecation message for features.web_search (#10406)
sayan-oai59707da8572b
diff --git a/codex-rs/core/src/features.rs b/codex-rs/core/src/features.rsindex 954b3465b6..12789f2c43 100644--- a/codex-rs/core/src/features.rs+++ b/codex-rs/core/src/features.rs@@ -358,7 +358,7 @@ fn legacy_usage_notice(alias: &str, feature: Feature) -> (String, Option<String>}fn web_search_details() -> &'static str {- "Set `web_search` to `\"live\"`, `\"cached\"`, or `\"disabled\"` in config.toml."+ "Set `web_search` to `\"live\"`, `\"cached\"`, or `\"disabled\"` at the top level (or under a profile) in config.toml."}/// Keys accepted in `[features]` tables.diff --git a/codex-rs/core/tests/suite/deprecation_notice.rs b/codex-rs/core/tests/suite/deprecation_notice.rsindex 06795cc51b..a8323fcd71 100644--- a/codex-rs/core/tests/suite/deprecation_notice.rs+++ b/codex-rs/core/tests/suite/deprecation_notice.rs@@ -141,7 +141,9 @@ async fn emits_deprecation_notice_for_web_search_feature_flags() -> anyhow::Resu);assert_eq!(details.as_deref(),- Some("Set `web_search` to `\"live\"`, `\"cached\"`, or `\"disabled\"` in config.toml."),+ Some(+ "Set `web_search` to `\"live\"`, `\"cached\"`, or `\"disabled\"` at the top level (or under a profile) in config.toml."+ ),);Ok(())@@ -176,7 +178,9 @@ async fn emits_deprecation_notice_for_disabled_web_search_feature_flag() -> anyh);assert_eq!(details.as_deref(),- Some("Set `web_search` to `\"live\"`, `\"cached\"`, or `\"disabled\"` in config.toml."),+ Some(+ "Set `web_search` to `\"live\"`, `\"cached\"`, or `\"disabled\"` at the top level (or under a profile) in config.toml."+ ),);Ok(())