feat(ultracode): Phase 4 — click an agent card to open its live transcript

Each workflow agent card with an agentId is now clickable and opens that agent's
live transcript in a popup, reusing the existing GET /api/subagents/:agentId/
transcript route. The workflow agent's agentId is byte-identical to the
agent-<id>.jsonl stem that subagent-watcher already tracks (via w16's
watchWorkflowDirs), so this is a pure client-side join — ZERO subagent-watcher
edits.

Graceful degradation: 'start' (queued) agents have no agentId yet and stay
non-clickable; an aged-out/untracked agent (subagent-watcher's 4h startup window,
or tracking disabled) returns an empty transcript and shows a friendly note
instead of an empty popup.

Verified on a live isolated server: the subagent transcript route serves a
workflow agent's transcript (150 entries) and the runId's agents[] carries the
matching agentId; Playwright confirmed clicking a card opens the transcript popup
with no console errors. frontend-syntax / public-assets / CSS-parse clean.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Codeman maintainer
2026-06-15 10:49:22 +02:00
parent c15c19fab7
commit 6ab6bbbbd4
2 changed files with 49 additions and 1 deletions
+7
View File
@@ -8486,6 +8486,13 @@ kbd {
padding: 0.4rem 0.5rem;
margin-bottom: 0.35rem;
}
.ultracode-agent-card--clickable {
cursor: pointer;
transition: background 0.15s;
}
.ultracode-agent-card--clickable:hover {
background: var(--bg-card);
}
.ultracode-agent-top {
display: flex;
align-items: center;