Repository navigation
Conversation
snimu
marked this pull request as ready for review
July 21, 2026 20:42
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 23cdaec. Configure here.
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.

What changes
Adds live elapsed timers to running tool calls and subagents, then freezes the final duration when work settles.
State ownership
Tools
The existing agent-core tool lifecycle owns timing:
AgentState.pendingToolCallsandAgentState.runningToolStartedAtare updated together by the existing tool start/end reducer.finishRun()andreset()boundaries clear IDs and timestamps atomically, including abnormal/aborted runs.AgentSessiononly serializes this canonical state into connection snapshots.0s.Subagents
The parent
AgentSessionowns subagent timing:startedAtand terminaldurationMs;Terminal timing is intentionally in-memory only. Older daemon-restored completed children without timing remain compatible and omit the timer rather than receiving a guessed duration.
Presentation
s,m,h).Consolidation
The branch is one commit on current
mainand follows the test-consolidation approach from #498–#500:0sbehavior lives in the existing transcript reconstruction regression;The consolidated diff is 441 additions / 187 deletions across 26 files, down from 424 additions / 73 deletions and ten accumulated commits.
Validation
npm run checkNote
Low Risk
Additive optional fields and UI timing; daemon schema revision bump is backward-compatible for clients that tolerate unknown snapshot fields.
Overview
Adds live elapsed-time display for in-flight tool calls and RLM subagents, with frozen final durations when work completes.
Agent core:
tool_execution_startnow carries optionalstartedAt;Agent.stateexposesrunningToolStartedAtalongsidependingToolCalls, cleared on tool end, run finish, and reset.Coding-agent UI: Tool panels and subagent summary/detail use shared
formatLiveDuration/formatDurationhelpers. Daemon and connection snapshots includerunningToolStartedAtso timers survive attach/resync; daemon schema revision bumps to 3. Subagent runs trackstartedAtand terminaldurationMs, retained with finished child sessions; parent timing feeds daemon child seeds instead of guessing from idle streaming state.Reviewed by Cursor Bugbot for commit 2769737. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Add live elapsed-time timers for running tool calls and subagents
tool_execution_startevents now carry astartedAttimestamp;Agenttracks per-tool start times inrunningToolStartedAtand clears them on completion, reset, or abort.ToolExecutionComponentshows a liveM:SStimer while a tool runs and freezes the final duration on completion using newformatLiveDurationandformatDurationhelpers inworking-icon.ts.runningToolStartedAt; resync restores tool timers from canonical start times so reconnecting clients show accurate elapsed time.startedAtanddurationMs;AgentSessiontracks and exposes this timing viagetRlmChildRunState, persisting it through retention and failure paths.runningToolStartedAtin attach payloads.Macroscope summarized 2769737.