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,