Display per-response elapsed time during and after generation
Problem
When Copilot CLI is generating a response, there's no indication of how long it's been running. For short responses this isn't a problem, but for long-running operations (especially in autopilot mode where the agent may work autonomously for minutes at a time), I'd like to know:
- How long has the current response been going?
- How long did the previous response take?
Today, the only signal that "something is happening" is the spinner/animation, which doesn't tell me whether I'm at 5 seconds or 5 minutes.
Proposed solution
- During generation: display a running elapsed-time counter alongside the spinner.
- After completion: print a short summary line with the total elapsed time for that response.
Example flow:
> Refactor the authentication module to use OAuth.
⠋ Working... 0:23
Then on completion:
✓ Done in 1m 47s.
Why this matters
- Autopilot mode especially benefits: when the agent is running unattended for a while, the elapsed counter helps me decide whether to keep waiting or intervene.
- Performance awareness: knowing typical response times makes it easy to notice when something is unusually slow (network issue, stuck tool call, etc.).
- Productivity: lets me estimate when to context-switch back to a long-running session.
Reference
Claude Code does this well: during generation it shows a running counter (e.g., ✻ Sautéed for 25s...), and on completion prints the final elapsed time. Low-visual-noise, useful at a glance.
Related
#1784 (collapsible real-time session stats panel) covers a broader vision of per-session metrics including duration. This issue is narrower: just the per-response elapsed time, always visible without needing to expand a panel.
+1 — this is the one Copilot CLI feature I miss most coming from Claude Code.
The two pieces from this issue are exactly right:
- Live elapsed counter next to the spinner while generating, and
- A "Done in Xm Ys" line when the response completes.
The live counter matters most in autopilot/long-running turns: with only a spinner I can't tell if the agent is 5 seconds or 5 minutes in, so I can't decide whether to keep waiting or intervene. The post-completion total is also great for spotting when something is unusually slow (network/tool stall) versus normal.
Claude Code nails this with very low visual noise (a single running counter + final time), so it never feels cluttered — would love to see the same here. Happy to test a preview build on Windows ARM64 if useful.
For maintainers triaging this: there are currently four overlapping requests for "show how long things took," which is probably why the signal looks small when split apart. Consolidating them here since this issue is the most general per-response framing:
- #3278 (this one) — per-response elapsed time: live counter during generation + "Done in Xm Ys" on completion.
- #3111 — "Add a timer" for agent thinking time (same
area:terminal-rendering). - #3055 — execution timer for the
shelltool specifically (area:tools). - #1784 — broader collapsible session-stats panel that includes duration among many metrics.
#3111 and #3278 are essentially the same feature (a live elapsed counter in the terminal render path); #3055 is the per-tool flavor of it; #1784 is the superset dashboard. A single elapsed-time primitive in the render layer would satisfy #3278 + #3111 and provide the building block for #3055 and #1784.
Would be great to treat this as the umbrella and dedupe the rest into it.