From 5de42325db8456acd44be0744b551a5c0bab5108 Mon Sep 17 00:00:00 2001 From: teknium1 <127238744+teknium1@users.noreply.github.com> Date: Mon, 6 Jul 2026 12:10:21 -0700 Subject: [PATCH] test: expect model slug in autoraise notice dict (follow-up to gpt-5.4 extension) --- tests/run_agent/test_plugin_context_engine_init.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/run_agent/test_plugin_context_engine_init.py b/tests/run_agent/test_plugin_context_engine_init.py index f4b29ef0093..2c7e53e1349 100644 --- a/tests/run_agent/test_plugin_context_engine_init.py +++ b/tests/run_agent/test_plugin_context_engine_init.py @@ -204,7 +204,7 @@ def test_codex_gpt55_autoraise_still_applies_to_builtin_compressor(): agent = AIAgent(**_codex_agent_kwargs()) - assert agent._compression_threshold_autoraised == {"from": 0.50, "to": 0.85} + assert agent._compression_threshold_autoraised == {"model": "gpt-5.5", "from": 0.50, "to": 0.85} assert agent.context_compressor.threshold_percent == 0.85 # Gateway parity: the notice is stashed for replay on turn 1. assert agent._compression_warning and "85%" in agent._compression_warning @@ -235,5 +235,5 @@ def test_codex_gpt55_autoraise_applies_when_plugin_engine_missing(): agent = AIAgent(**_codex_agent_kwargs()) - assert agent._compression_threshold_autoraised == {"from": 0.50, "to": 0.85} + assert agent._compression_threshold_autoraised == {"model": "gpt-5.5", "from": 0.50, "to": 0.85} assert agent.context_compressor.threshold_percent == 0.85