showcase/integrations/langroid/qa/subagents.md
/demos/subagents on the dashboard host/api/health); OPENAI_API_KEY is set on Railway; the FastAPI agent server exposes POST /subagents (see src/agent_server.py)/demos/subagents; verify the page renders within 3s with the delegation log on the left and the CopilotChat pane on the rightdata-testid="delegation-log" is visible with header "Sub-agent delegations"data-testid="delegation-count" shows 0 callsdata-testid="supervisor-running" ("Supervisor running" pill) appears in the log headerdata-testid="delegation-entry" appears with the Research badge (🔎 Research) and running status; the result body should show "Sub-agent running…"completed status and a bulleted list of facts is rendered in the result bodydata-testid="delegation-entry" appears with the Writing badge (✍️ Writing), goes through running -> completed, and renders a 1-paragraph draftdata-testid="delegation-entry" appears with the Critique badge (🧐 Critique) and renders 2-3 critiquesdata-testid="delegation-count" updates to 3 calls (or more if the supervisor delegates again)data-testid="supervisor-running" is no longer rendered and the chat receives a brief final summarytask)Task: line references the user's topic and (for Writing/Critique) cites the prior stepdata-testid="delegation-count" shows 0 calls0 calls) or delegates only once and finishes — no infinite loopfailed delegation entry is rendered with red status and a brief error message in the result body — the supervisor still produces a final user-facing messagerunning to completed (or failed) within ~30s