mirror of
https://github.com/openai/codex.git
synced 2026-05-03 12:52:11 +03:00
Reinject previous-turn context for pre-sampling model-switch compaction
This commit is contained in:
@@ -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"
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user