Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion apps/registry-portal/src/pages/Radar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,18 @@ function formatAgentName(agentId: string | null | undefined): string {
return knownAgents[hostname];
}

// For JWKS URLs like api.openbotauth.org/jwks/username.json, extract username
// For user JWKS URLs like /jwks/username.json, extract username
const jwksMatch = url.pathname.match(/\/jwks\/([^.]+)\.json$/);
if (jwksMatch) {
return jwksMatch[1];
}

// For agent JWKS URLs like /agent-jwks/{uuid}, extract agent ID
const agentJwksMatch = url.pathname.match(/\/agent-jwks\/([^/]+)$/);
if (agentJwksMatch) {
return agentJwksMatch[1].slice(0, 8) + '…';
}

// Return hostname for other URLs
return hostname;
} catch {
Expand Down