The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(agent): isolate steer persistence regression
fangliquanbee33c7ce19f
diff --git a/tests/agent/test_steer_compaction_persistence.py b/tests/agent/test_steer_compaction_persistence.pyindex c710fbc3d96..c97c5e24e1e 100644--- a/tests/agent/test_steer_compaction_persistence.py+++ b/tests/agent/test_steer_compaction_persistence.py@@ -10,7 +10,10 @@ from run_agent import AIAgentdef test_flushed_steer_keeps_one_display_identity_across_compactions(tmp_path):db = SessionDB(tmp_path / "state.db")session_id = "steer-compaction"- with patch.dict("os.environ", {"OPENROUTER_API_KEY": "test-key"}):+ with (+ patch.dict("os.environ", {"OPENROUTER_API_KEY": "test-key"}),+ patch("agent.model_metadata.fetch_model_metadata", return_value={}),+ ):agent = AIAgent(api_key="test-key",base_url="https://openrouter.ai/api/v1",