diff --git a/frontend/packages/dashboard/src/matrix-accounts.js b/frontend/packages/dashboard/src/matrix-accounts.js index a71a2dd9..e180b12d 100644 --- a/frontend/packages/dashboard/src/matrix-accounts.js +++ b/frontend/packages/dashboard/src/matrix-accounts.js @@ -31,7 +31,10 @@ async function loadState() { if (!resp.ok) return; const s = await resp.json(); renderServerWarnings(s.server_warnings); - agents = (s.agents || []) + // `/api/state` exposes the live roster under `containers` (each entry an + // object carrying `.name`); there is no top-level `agents` field, so the + // picker stays compatible with both string + object shapes defensively. + agents = (s.containers || []) .map((a) => (typeof a === 'string' ? a : a && a.name)) .filter(Boolean) .sort();