Skip to content

Display tool timeout and runtime in dashboard tool output cards #442

Open

Description

@aebrer

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 (toolStatus in packages/dashboard/src/client/components/transcript.tsx) shows ● running with 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 though startedAt/endedAt are already recorded on the ToolEntry.
  • The agent-chosen timeout is never shown. The bash tool's timeout argument (seconds) is the only per-call timeout the agent chooses, and the TUI already displays it as (timeout 30s) in the bash card title (formatBashCall in packages/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 30s in 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 timeout argument), e.g. as timeout 30s in 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.ts formatBashCall) and a live ● working — <tool> (Ns) status line.

Technical Notes

  • ToolEntry (packages/dashboard/src/client/state/reducer.ts) already records startedAt (on tool_execution_start) and endedAt (on tool_execution_end), so the final runtime is endedAt - startedAt.
  • Card rendering lives in ToolCard (packages/dashboard/src/client/components/transcript.tsx); the status span uses toolStatus() which computes elapsed from a non-reactive Date.now() — a per-card ticking signal (or shared "now" ticker) is needed for live updates, similar to the status line's 1-second setInterval in packages/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

  1. added
    enhancement
    dashboard
    on Aug 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    dashboardenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions