feat: show timestamp and duration on tool execution blocks - #27763
Closed
kshptl wants to merge 4 commits into
Closed
feat: show timestamp and duration on tool execution blocks#27763kshptl wants to merge 4 commits into
kshptl wants to merge 4 commits into
Conversation
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
Contributor
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
Author
|
Closing this replacement PR and keeping #22145 as the active PR thread. |
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue for this PR
Replaces #22145 after the original PR was closed by automated cleanup.
Type of change
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 typecheckinpackages/opencodebun typecheckinpackages/uibun typecheckinpackages/appbun test src/components/tool-timing.test.tsinpackages/uiPLAYWRIGHT_BROWSERS_PATH=/tmp/opencode-playwright-browsers timeout 900s bun test:e2e:localinpackages/appbun turbo typecheckwith Bun 1.3.13Screenshots / recordings
Not captured. This is a small timing label update on existing tool headers.
Checklist