Skip to content

feat(tui): show per-part timestamps for thinking and tool blocks - #42499

Closed
ImBIOS wants to merge 1 commit into
anomalyco:devfrom
ImBIOS:part-timestamps
Closed

ImBIOS wants to merge 1 commit into
anomalyco:devfrom
ImBIOS:part-timestamps

Conversation

@ImBIOS

@ImBIOS ImBIOS commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Issue for this PR

Closes #42498

Type of change

  • New feature

What does this PR do?

When the existing /timestamps toggle (session.toggle.timestamps) is enabled, each message part now renders its own start timestamp alongside the message-level timestamp:

  • Thinking header: Thought: plan migration · 2.3s · 3:41 PM
  • Inline tool row (e.g. $ npm run build, reads, greps): appends · 3:41 PM next to the tool label, in both pending and completed states
  • Tool block header (shell output, tool output blocks): # Running in packages/tui · 3:41 PM

Parts already carry time.start in the protocol, so this is a pure TUI rendering change. The time uses the existing Locale.todayTimeOrDateTime helper (matches the message-level format: time for today, date+time otherwise).

How did you verify your code works?

  • bun typecheck in packages/tui (plus full monorepo turbo typecheck via pre-push hook)
  • bun test in packages/tui: 193 pass, 1 skip, 0 fail (incl. the 17 inline-tool-wrap-snapshot tests that render InlineToolRow standalone — the new time prop is optional and theme-free)

Screenshots / recordings

N/A

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions

Copy link
Copy Markdown
Contributor

Automated PR Cleanup

Thank you for contributing to opencode.

Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions.

This PR was closed because it matched the following cleanup criteria:

  • The PR was created more than 1 month ago
  • The PR had fewer than 2 positive reactions
  • Positive reactions are counted as thumbs-up, heart, celebration, or rocket reactions on the PR

PRs created within the last month are not affected by this cleanup.

If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate.

Thanks again for taking the time to contribute.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]: Show per-part timestamps for thinking, tool calls, and tool output in the TUI

1 participant