Repository navigation
fix(webui): correct activity timer duration - #4649
Merged
Merged
Conversation
chengyongru
marked this pull request as ready for review
July 15, 2026 08:45
okwillbe
pushed a commit
to okwillbe/nanobot
that referenced
this pull request
Aug 15, 2026
StefanoParadisi
pushed a commit
to StefanoHernandez/nanobot
that referenced
this pull request
Oct 16, 2026
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.
Summary
Fix the WebUI activity timer so live
Working for ...duration is measured from the user turn start instead of the first activity row.Root cause
The activity cluster only received reasoning/tool trace messages, so live duration started at the first trace
createdAt. Transcript replay also regenerated message timestamps from the refresh time, which could reset activity timing after a reload.Changes
latencyMsreplay behavior.created_at_msin WebUI transcript rows and replay it as UIcreatedAt.Validation
npm run test -- src/tests/thread-messages.test.tsx src/tests/agent-activity-cluster.test.tsxuv run --extra dev pytest tests\utils\test_webui_transcript.py tests\channels\test_websocket_channel.py::test_webui_message_envelope_marks_inbound_metadata tests\channels\test_websocket_channel.py::test_webui_message_envelope_appends_user_transcript -qnpm run builduv run ruff check nanobot\webui\transcript.py tests\utils\test_webui_transcript.py tests\channels\test_websocket_channel.pyWorking for 3m 50s, notWorking for 10s.