Revert unrelated turn_start test change

This commit is contained in:
xli-oai
2026-05-15 13:12:42 -07:00
parent 688858845f
commit fdb5981c13

View File

@@ -330,16 +330,10 @@ async fn turn_start_emits_thread_scoped_warning_notification_for_trimmed_skills(
let warning: WarningNotification =
serde_json::from_value(params).expect("deserialize warning notification");
assert_eq!(warning.thread_id.as_deref(), Some(thread.id.as_str()));
let warning_prefix =
"Exceeded skills context budget of 2%. All skill descriptions were removed and ";
let warning_suffix = " additional skills were not included in the model-visible skills list.";
let omitted_skill_count = warning
.message
.strip_prefix(warning_prefix)
.and_then(|message| message.strip_suffix(warning_suffix))
.expect("warning should include omitted skill count")
.parse::<usize>()?;
assert!(omitted_skill_count > 0);
assert_eq!(
warning.message,
"Exceeded skills context budget of 2%. All skill descriptions were removed and 7 additional skills were not included in the model-visible skills list."
);
timeout(
DEFAULT_READ_TIMEOUT,