claude-code - 💡(How to fix) Fix Add per-tool-call wall-clock timestamps on tool-use headers in the VSCode extension chat UI [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#55125Fetched 2026-05-01 05:45:36
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Participants
Timeline (top)
labeled ×4
RAW_BUFFERClick to expand / collapse

Request

Add a setting (e.g., showToolCallTimestamps) that renders the actual wall-clock execution time inline on each tool-call header in the VSCode extension chat UI. Distinct from existing message-level timestamp requests (#24349, #44763) — those address per-message annotations; this asks for per-tool-call granularity.

Use case

When debugging long-running sessions (orchestrators, CI watching, multi-step pipelines), it's hard to reconstruct timing from the chat alone. Knowing precisely when each tool fired is the cheapest signal for "how long did the LLM spend thinking before that Bash call?" / "did the user-approve gate add 30s or 5min here?" / "where did the cumulative latency go?".

What's already been tried (empirically, on extension version 2.1.123)

  1. PreToolUse hook emitting systemMessage with matcher * and a script that outputs {"systemMessage":"[HH:MM:SS UTC] <ToolName>"}. Hook fires reliably (confirmed via sidecar log file accumulating one entry per tool call), but the VSCode extension does not visibly render the systemMessage for pure pass-through hooks (no permissionDecision). May be related to the systemMessage rendering regressions tracked in #9090 and #50542.

  2. Settings keys showMessageTimestamps and showTurnDuration (both present in the local extension's claude-code-settings.schema.json but not in the official code.claude.com/docs/en/settings page). Set both to true, fully restarted the extension via a fresh VSCode window. Neither produces any visible rendering in the chat UI — no per-message timestamps, no "Cooked for Nm Ns" annotation. Schema documents them; extension does not implement them.

  3. Manual description-field prefix by the model — produces visible inline output but is model-estimated (no live clock available to the LLM), drifting by minutes during long sessions and even being timezone-confused if the model conflates user local time with UTC.

So, in 2.1.123, no user-side mechanism produces precise wall-clock timestamps on tool-call headers.

Suggested scope (in priority order)

  1. Primary ask — render wall-clock execution time on each tool-call header in the VSCode extension chat UI, gated on a new showToolCallTimestamps setting (or whatever spelling fits the schema).
  2. Secondary ask — implement the existing showMessageTimestamps and showTurnDuration keys in the VSCode extension UI, since they're documented in the bundled schema but currently inert.
  3. Tertiary ask — fix or document the PreToolUse systemMessage render path for pass-through hooks. Keeping that channel functional gives users an escape hatch for any timestamp / annotation use case the team doesn't ship natively.

Related

  • #24349, #44763 — message-level timestamp requests (related but message-level, not tool-call-level)
  • #9090, #50542 — systemMessage render regressions in other surfaces

Environment

  • VSCode extension version: 2.1.123 (win32-x64)
  • VS Code: 1.94+
  • Plan: Team (OAuth subscription)
  • Verified across multiple project workspaces; behavior is consistent.

extent analysis

TL;DR

To display wall-clock execution time on each tool-call header in the VSCode extension chat UI, a new setting like showToolCallTimestamps is needed, which is currently not available in version 2.1.123.

Guidance

  • The primary ask is to implement a new setting (showToolCallTimestamps) to render wall-clock execution time on each tool-call header.
  • Verify if the PreToolUse hook with systemMessage can be modified to work around the current limitation, despite the regressions tracked in #9090 and #50542.
  • Check the official documentation and schema for any updates on showMessageTimestamps and showTurnDuration settings, as they might be implemented in future versions.
  • Consider reaching out to the development team for clarification on the implementation status of the suggested settings and potential workarounds.

Notes

The current version (2.1.123) of the VSCode extension does not support rendering wall-clock execution time on tool-call headers, and the existing settings (showMessageTimestamps and showTurnDuration) are not implemented.

Recommendation

Apply a workaround by utilizing the PreToolUse hook with systemMessage until the showToolCallTimestamps setting is implemented, as it provides a potential escape hatch for custom timestamp annotations.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Add per-tool-call wall-clock timestamps on tool-use headers in the VSCode extension chat UI [1 participants]