Skip to content

[FEATURE]: Show per-tool elapsed time and turn duration in TUI and web UI #38666

Closed

Description

@feng653

Verified

  • I have verified this feature hasn't been suggested before.

Description

Problem: Currently neither the TUI nor the web/desktop UI show how long each tool call takes or how much time the current conversation turn has consumed. When debugging slow tools or tracking productivity, users have no visibility into timing.

Data is already available: The backend already stores ime.start / ime.end on every tool part state and ime.created / ime.completed on every message. No server/protocol changes needed - this is purely a frontend rendering change.

Proposed scope (4 files, ~100 lines):

  • TUI (packages/tui): show duration text next to each tool row in InlineTool, plus a live elapsed timer in the prompt input area while a turn is running
  • Session-UI (packages/session-ui): show duration in BasicTool component (covers most tools), pass timing through to all registered tool renderers, and surface turn duration in the assistant text part footer

The i18n keys (ui.message.duration.seconds / minutesSeconds) already exist in all supported languages.

Benefits: Users can identify slow tools at a glance, estimate remaining wait time, and benchmark prompts across models - all without changing workflow. The change is additive (no existing UI removed or restructured).

Activity

  1. github-actions commented on Jul 24, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

  2. feng653 commented on Jul 24, 2026

    @feng653
    Author

    pic1(app):not finish

    Image

    pic2(app): finished
    Image
    pic3(TUI):finished
    Image
    pic4(TUI):not finished
    Image

  3. feng653 commented on Jul 24, 2026

    @feng653
    Author

    Not a duplicate of #36099 - that issue is scoped to subagent rows in the TUI. This one covers per-tool duration for all tools in both TUI and web UI, plus turn-level elapsed time. Implementation is up at #38675 with running code, not just a proposal.

  4. Trollgeir commented on Aug 14, 2026

    @Trollgeir

    Was about to create an issue on this too. I would love to have this feature.

  5. feng653 commented on Aug 17, 2026

    @feng653
    Author

    dsh is much better

  6. Nowaker commented on Oct 8, 2026

    @Nowaker

    For anyone who still wants this on the v1 TUI, I built it for my own use:

    v1 is maintenance-only, so they're there for anyone who wants them; a v2 version will follow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions