mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Suppress warnings when skill descriptions are shortened (#46070)
## What changed Stop emitting a warning when skill descriptions are shortened to fit the skills context budget. Continue warning when skills are omitted from the model-visible list. Update the app-server warning test to set `skills.max_context_tokens` to `1_000` and expect the omitted-skills warning. Remove assertions and tests for the description-shortening warning. GitOrigin-RevId: feac10b3d159d73648a786120d477b7fe4e082d7
This commit is contained in:
1 parent
172f8a2901
commit
36b84c81ec
4 files changed
+17
-83
No files matched your search
@@ -3754,9 +3754,7 @@ async fn production_turn_fairly_shortens_extension_catalog_descriptions() -> Res
|
||||
.collect(),
|
||||
warnings: Vec::new(),
|
||||
};
|
||||
let (event_tx, event_rx) = std::sync::mpsc::channel();
|
||||
let mut extensions =
|
||||
ExtensionRegistryBuilder::<Config>::with_event_sink(Arc::new(ChannelEventSink(event_tx)));
|
||||
let mut extensions = ExtensionRegistryBuilder::<Config>::new();
|
||||
install_with_providers(
|
||||
&mut extensions,
|
||||
SkillProviders::new().with_provider(SkillProviderSource::new(
|
||||
@@ -3812,11 +3810,6 @@ async fn production_turn_fairly_shortens_extension_catalog_descriptions() -> Res
|
||||
.all(|length| *length > 0 && *length < 1_024)
|
||||
);
|
||||
assert!(!catalog_text.contains("additional skills omitted"));
|
||||
let warning = event_rx.try_recv()?.into_warning();
|
||||
assert_eq!(
|
||||
warning.message,
|
||||
"Skill descriptions were shortened to fit the skills context budget. Codex can still see every skill, but some descriptions are shorter. Disable unused skills or plugins to leave more room for the rest."
|
||||
);
|
||||
|
||||
Ok(())
|
||||
}
|
||||
Reference in new issue
Block a user