chore: clarify web_search deprecation notices and consolidate tests (#11224)

follow up to #10406, clarify default-enablement of web_search.

also consolidate pseudo-redundant tests

Tests pass
This commit is contained in:
sayan-oai
2026-02-17 10:20:24 -08:00
committed by GitHub
parent 76283e6b4e
commit a1b8e34938
2 changed files with 34 additions and 65 deletions

View File

@@ -356,7 +356,8 @@ fn legacy_usage_notice(alias: &str, feature: Feature) -> (String, Option<String>
}
_ => alias,
};
let summary = format!("`{label}` is deprecated. Use `web_search` instead.");
let summary =
format!("`{label}` is deprecated because web search is enabled by default.");
(summary, Some(web_search_details().to_string()))
}
_ => {
@@ -374,7 +375,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\"` at the top level (or under a profile) in config.toml."
"Set `web_search` to `\"live\"`, `\"cached\"`, or `\"disabled\"` at the top level (or under a profile) in config.toml if you want to override it."
}
/// Keys accepted in `[features]` tables.