diff --git a/ModeratorFrontEnd/AIForOrcas/AIForOrcas.Client.Web/Components/DetectionComponent.razor.cs b/ModeratorFrontEnd/AIForOrcas/AIForOrcas.Client.Web/Components/DetectionComponent.razor.cs index 2f43b389..86136248 100644 --- a/ModeratorFrontEnd/AIForOrcas/AIForOrcas.Client.Web/Components/DetectionComponent.razor.cs +++ b/ModeratorFrontEnd/AIForOrcas/AIForOrcas.Client.Web/Components/DetectionComponent.razor.cs @@ -154,6 +154,20 @@ protected override async Task OnParametersSetAsync() AddTag(b); } } + + // Handle model tag aliases / legacy tags. + // PODS-AI may include "resident"; OrcaHello uses "srkw" only when the moderator explicitly + // selects SRKW=yes, so strip "resident" during initialization to avoid an extra tag. + // If we later need to map other model labels (e.g., "transient" -> "biggs"), do it here. + // This does not block moderators from manually entering "resident" later. + if (Detection.TagList.Contains("resident", StringComparer.OrdinalIgnoreCase)) + { + RemoveTag("resident"); + + // Don't add srkw since that would make the SRKWFound + // button default to yes. Instead leave it unselected, + // like OrcaHello candidates do. + } } }