From 7a05a7cdcc212c54142b0a633041ce3644250901 Mon Sep 17 00:00:00 2001 From: cat Date: Sun, 19 Jul 2026 14:42:01 +0800 Subject: [PATCH] =?UTF-8?q?test(openai):=20=E6=A3=80=E6=9F=A5=20Agent=20Id?= =?UTF-8?q?entity=20=E6=B5=8B=E8=AF=95=E7=B1=BB=E5=9E=8B=E6=96=AD=E8=A8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../handler/admin/account_codex_agent_identity_import_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/internal/handler/admin/account_codex_agent_identity_import_test.go b/backend/internal/handler/admin/account_codex_agent_identity_import_test.go index 2407fe3f9..7290ab54b 100644 --- a/backend/internal/handler/admin/account_codex_agent_identity_import_test.go +++ b/backend/internal/handler/admin/account_codex_agent_identity_import_test.go @@ -94,7 +94,8 @@ func TestImportCodexSessionsKeepsAgentIdentityTeamsSeparate(t *testing.T) { func TestImportCodexSessionsMergesAgentIdentityRuntimesForSameTeam(t *testing.T) { first := buildAgentIdentityImportValue(t, "runtime-a", "team-a", "same-user", "task-a") second := buildAgentIdentityImportValue(t, "runtime-b", "team-a", "same-user", "task-b") - firstIdentity := first["agent_identity"].(map[string]any) + firstIdentity, ok := first["agent_identity"].(map[string]any) + require.True(t, ok) existing := service.Account{ ID: 41, Platform: service.PlatformOpenAI,