From 2546b101719bfd268cbd3bc1daeabd07008597d9 Mon Sep 17 00:00:00 2001 From: LiusCraft Date: Mon, 11 May 2026 01:20:50 +0800 Subject: [PATCH] fix(test): read back history after SetHistory in steering test for CreatedAt normalization --- pkg/agent/steering_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/agent/steering_test.go b/pkg/agent/steering_test.go index 25e06d7a2..0d8648f1b 100644 --- a/pkg/agent/steering_test.go +++ b/pkg/agent/steering_test.go @@ -1306,6 +1306,8 @@ func TestAgentLoop_InterruptHard_RestoresSession(t *testing.T) { } defaultAgent.Sessions.SetHistory(sessionKey, originalHistory) + originalHistory = defaultAgent.Sessions.GetHistory(sessionKey) + runtimeCh, closeRuntimeEvents := subscribeRuntimeEventsForTest( t, al,