Skip to content

feat: show timestamp and duration on tool execution blocks - #27763

Closed
kshptl wants to merge 4 commits into
anomalyco:devfrom
kshptl:feat/tool-timing
Closed

feat: show timestamp and duration on tool execution blocks#27763
kshptl wants to merge 4 commits into
anomalyco:devfrom
kshptl:feat/tool-timing

Conversation

@kshptl

@kshptl kshptl commented May 15, 2026

Copy link
Copy Markdown

Issue for this PR

Replaces #22145 after the original PR was closed by automated cleanup.

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Shows the start time and elapsed duration on tool execution blocks in the TUI and web UI. It also preserves the original tool start time when metadata updates arrive, and marks interrupted task tools so the UI can show an interrupted state.

How did you verify your code works?

  • bun typecheck in packages/opencode
  • bun typecheck in packages/ui
  • bun typecheck in packages/app
  • bun test src/components/tool-timing.test.ts in packages/ui
  • PLAYWRIGHT_BROWSERS_PATH=/tmp/opencode-playwright-browsers timeout 900s bun test:e2e:local in packages/app
  • pre-push bun turbo typecheck with Bun 1.3.13

Screenshots / recordings

Not captured. This is a small timing label update on existing tool headers.

Checklist

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

kshptl and others added 4 commits April 12, 2026 10:29
Display clock time and running duration on every tool execution block in both web UI and TUI. Interrupted tools show 'Interrupted' in red instead of a misleading duration.

Closes anomalyco#22144
# Conflicts:
#	packages/opencode/script/seed-e2e.ts
#	packages/opencode/src/cli/cmd/tui/routes/session/index.tsx
#	packages/opencode/src/session/prompt.ts
#	packages/ui/src/components/message-part.tsx
#	packages/ui/src/components/tool-error-card.tsx
@github-actions github-actions Bot added needs:compliance This means the issue will auto-close after 2 hours. and removed needs:compliance This means the issue will auto-close after 2 hours. labels May 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

@kshptl

kshptl commented May 15, 2026

Copy link
Copy Markdown
Author

Closing this replacement PR and keeping #22145 as the active PR thread.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant