Reinject previous-turn context for pre-sampling model-switch compaction

This commit is contained in:
Charles Cunningham
2026-02-18 01:17:13 -08:00
parent 2ede42d319
commit 223eda12d3
5 changed files with 20 additions and 10 deletions

View File

@@ -142,8 +142,8 @@ fn assert_pre_sampling_switch_compaction_requests(
"follow-up request after successful model-switch compaction should include model-switch update item"
);
assert!(
!body_contains_text(&follow_up_body, "<environment_context>"),
"follow-up request should not reinsert canonical environment context after pre-sampling compaction"
body_contains_text(&follow_up_body, "<environment_context>"),
"follow-up request should include canonical environment context from previous-turn context reinjection"
);
}