fix(ai): pass correct identifiers to Docker container discovery (#1315)

Use host.agentId and container.name for DiscoveryTab props to match
backend storage keys. Previously host.id (derived ID) and container.id
(Docker hash) were used, causing discovery lookups to always miss.
This commit is contained in:
rcourtman 2026-03-04 23:52:07 +00:00
parent 72be883f4e
commit 3a263bc4f0

View file

@ -1683,8 +1683,8 @@ const DockerContainerRow: Component<{
<Show when={activeTab() === 'discovery'}>
<DiscoveryTab
resourceType="docker"
hostId={host.id}
resourceId={container.id}
hostId={host.agentId || host.id}
resourceId={container.name || container.id}
hostname={container.name}
guestId={container.id}
customUrl={props.guestMetadata?.[container.id]?.customUrl}
@ -2164,8 +2164,8 @@ const DockerServiceRow: Component<{
<Show when={activeTab() === 'discovery'}>
<DiscoveryTab
resourceType="docker"
hostId={host.id}
resourceId={service.id || service.name || ''}
hostId={host.agentId || host.id}
resourceId={service.name || service.id || ''}
hostname={service.name || service.id || 'Service'}
guestId={resourceId()}
customUrl={props.guestMetadata?.[resourceId()]?.customUrl}