Repository navigation
Open
Labels
Description
Original Request
CREATE Tool outputs should display the timeout the agent chose, as well as the current runtime (when streaming) and the final runtime (when finished).
In the dashboard I mean
Summary
Dashboard tool output cards currently show only a static "running"/"done" marker with no timing information. They should display the timeout the agent chose for the tool (e.g. the bash timeout argument), a live-updating runtime while the tool is streaming, and the total runtime once it finishes — mirroring what the TUI already shows.
Current Behavior
- The tool card status span (
toolStatusinpackages/dashboard/src/client/components/transcript.tsx) shows● runningwith an elapsed-seconds count that is computed once at render time and does not tick live (it only appears after 2s, and only updates when the card happens to re-render for another reason, e.g. streaming output arriving). - When a tool completes, the card shows only
done(or✕ error) — no total runtime, even thoughstartedAt/endedAtare already recorded on theToolEntry. - The agent-chosen timeout is never shown. The bash tool's
timeoutargument (seconds) is the only per-call timeout the agent chooses, and the TUI already displays it as(timeout 30s)in the bash card title (formatBashCallinpackages/coding-agent/src/core/tools/bash.ts) — the dashboard does not.
Proposed Behavior
- Tool output cards show the agent-chosen timeout when present (e.g. bash:
timeout 30sin the card header). - While a tool is running, the card's runtime ticks up live every second (e.g.
● running 12s). - When a tool finishes, the card shows the final total runtime derived from
endedAt - startedAt(e.g.done · 12.4s), for both success and error outcomes.
Acceptance Criteria
- Tool output cards display the agent-chosen timeout for tools that accept one (the bash
timeoutargument), e.g. astimeout 30sin the card header; nothing is shown when no timeout was chosen. - While a tool is running, the card shows an elapsed runtime that updates every second (live tick), not just a one-time render.
- When a tool finishes, the card shows the final runtime computed from the recorded
startedAt/endedAt, regardless of success or error status.
Context
- Dashboard transcript components are shared by the session screen and the subagent/fleet screens.
- The TUI already implements both displays: bash timeout suffix (
packages/coding-agent/src/core/tools/bash.tsformatBashCall) and a live● working — <tool> (Ns)status line.
Technical Notes
ToolEntry(packages/dashboard/src/client/state/reducer.ts) already recordsstartedAt(ontool_execution_start) andendedAt(ontool_execution_end), so the final runtime isendedAt - startedAt.- Card rendering lives in
ToolCard(packages/dashboard/src/client/components/transcript.tsx); the status span usestoolStatus()which computes elapsed from a non-reactiveDate.now()— a per-card ticking signal (or shared "now" ticker) is needed for live updates, similar to the status line's 1-secondsetIntervalinpackages/dashboard/src/client/screens/session.tsx(~line 1306). - The agent-chosen timeout is
args.timeout(seconds) on the bash tool entry; other tools do not take an agent-chosen per-call timeout, so the display applies to bash (and any future tool with a timeout arg).
Activity