Skip to content

feat(ui): show elapsed time on agent status lines - #139

Open
xz-dev wants to merge 1 commit into
tintinweb:masterfrom
xz-dev:feat/agent-status-elapsed
Open

feat(ui): show elapsed time on agent status lines#139
xz-dev wants to merge 1 commit into
tintinweb:masterfrom
xz-dev:feat/agent-status-elapsed

Conversation

@xz-dev

@xz-dev xz-dev commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add per-current-status elapsed time to running agent status/activity lines
  • reset the per-status timer when the visible activity text changes
  • share the timer state across the widget, foreground Agent result, and conversation viewer

Examples

Before, the activity line only showed the current status, which could look stuck during long phases:

● Agents
├─ ⠴ worker  Run rpiv act · ↻16 · 9 tool uses · 292.6k token (15%) · 1317.5s
│    ⎿  running command…
├─ ⠴ worker  Run plannotator act · ↻47 · 27 tool uses · 1.4M token (29%) · 1317.5s
│    ⎿  thinking…
└─ ⠴ worker  Run hindsight act · ↻59 · 49 tool uses · 1.9M token (27%) · 1317.5s
     ⎿  reading…

After, each current activity/status line shows how long that visible status has been active:

● Agents
├─ ⠴ worker  Run rpiv act · ↻16 · 9 tool uses · 292.6k token (15%) · 1317.5s
│    ⎿  running command… · 13.5s
├─ ⠴ worker  Run plannotator act · ↻47 · 27 tool uses · 1.4M token (29%) · 1317.5s
│    ⎿  thinking… · 4.2s
└─ ⠴ worker  Run hindsight act · ↻59 · 49 tool uses · 1.9M token (27%) · 1317.5s
     ⎿  reading… · 28.0s

When the visible activity changes, its timer resets:

⎿  thinking… · 13.5s
⎿  running command… · 0.0s
⎿  running command… · 2.5s

The same elapsed suffix is used in the above-editor Agents widget, foreground Agent tool result, and conversation viewer streaming indicator.

Testing

  • npm run lint
  • npm run typecheck
  • npm run test

@xz-dev
xz-dev force-pushed the feat/agent-status-elapsed branch 4 times, most recently from 3e4cb3a to 2fb958a Compare July 23, 2026 08:24
xz-dev added a commit to xz-dev/pi-subagents-tintinweb that referenced this pull request Jul 23, 2026
# Conflicts:
#	src/ui/conversation-viewer.ts
#	test/agent-widget.test.ts
xz-dev added a commit to xz-dev/pi-subagents-tintinweb that referenced this pull request Jul 23, 2026
@xz-dev
xz-dev force-pushed the feat/agent-status-elapsed branch from 2fb958a to 9be380c Compare July 27, 2026 00:15
xz-dev added a commit to xz-dev/pi-subagents-tintinweb that referenced this pull request Jul 27, 2026
xz-dev added a commit to xz-dev/pi-subagents-tintinweb that referenced this pull request Jul 27, 2026
xz-dev added a commit to xz-dev/pi-subagents-tintinweb that referenced this pull request Jul 29, 2026
@xz-dev
xz-dev force-pushed the feat/agent-status-elapsed branch from 9be380c to 3d1387e Compare July 31, 2026 04:34
xz-dev added a commit to xz-dev/pi-subagents-tintinweb that referenced this pull request Jul 31, 2026
xz-dev added a commit to xz-dev/pi-subagents-tintinweb that referenced this pull request Jul 31, 2026
@xz-dev
xz-dev force-pushed the feat/agent-status-elapsed branch from 3d1387e to e1fff3c Compare August 2, 2026 16:22
xz-dev added a commit to xz-dev/pi-subagents-tintinweb that referenced this pull request Aug 2, 2026
xz-dev added a commit to xz-dev/pi-subagents-tintinweb that referenced this pull request Aug 4, 2026
xz-dev added a commit to xz-dev/pi-subagents-tintinweb that referenced this pull request Aug 4, 2026
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