The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(gateway): use portable replay timestamp
Yuan Lifca432d126b8
diff --git a/tests/gateway/test_message_timestamps.py b/tests/gateway/test_message_timestamps.pyindex 746a19615b9..fce97a71a29 100644--- a/tests/gateway/test_message_timestamps.py+++ b/tests/gateway/test_message_timestamps.py@@ -220,7 +220,7 @@ def test_compaction_summary_replays_without_timestamp():def test_regular_user_message_still_replays_with_timestamp():from gateway.run import _build_gateway_agent_history- message = {"role": "user", "content": "what is next?", "timestamp": 1.0}+ message = {"role": "user", "content": "what is next?", "timestamp": 1_000_000_000.0}history, _ = _build_gateway_agent_history([message], inject_timestamps=True)assert history[0]["content"].endswith(message["content"])assert history[0]["content"] != message["content"]