mirror of
https://github.com/openai/codex.git
synced 2026-11-25 07:23:22 +00:00
Soften skill description budget warnings (#20112)
Updates skill description budget messaging to be less alarming
This commit is contained in:
1 parent
e6db1a9442
commit
6f328d5e02
4 files changed
+53
-29
No files matched your search
@@ -191,7 +191,7 @@ async fn live_app_server_warning_notification_renders_message() {
|
||||
chat.handle_server_notification(
|
||||
ServerNotification::Warning(WarningNotification {
|
||||
thread_id: None,
|
||||
message: "Warning: Exceeded skills context budget of 2%. All skill descriptions were removed and 2 additional skills were not included in the model-visible skills list.".to_string(),
|
||||
message: "Exceeded skills context budget of 2%. All skill descriptions were removed and 2 additional skills were not included in the model-visible skills list.".to_string(),
|
||||
}),
|
||||
/*replay_kind*/ None,
|
||||
);
|
||||
@@ -201,7 +201,7 @@ async fn live_app_server_warning_notification_renders_message() {
|
||||
let rendered = lines_to_single_string(&cells[0]);
|
||||
let normalized = rendered.split_whitespace().collect::<Vec<_>>().join(" ");
|
||||
assert!(
|
||||
normalized.contains("Warning: Exceeded skills context budget of 2%."),
|
||||
normalized.contains("Exceeded skills context budget of 2%."),
|
||||
"expected warning notification message, got {rendered}"
|
||||
);
|
||||
assert!(
|
||||
|
||||
Reference in new issue
Block a user