Skip to content

feat: add real-time activity indicators to session cards#45

Merged
robinojw merged 11 commits intomainfrom
feat/session-card-activity
Mar 18, 2026
Merged

feat: add real-time activity indicators to session cards#45
robinojw merged 11 commits intomainfrom
feat/session-card-activity

Conversation

@robinojw
Copy link
Copy Markdown
Owner

Summary

  • Session cards now show what each CLI session is doing in real-time, replacing the static status word (idle/active/completed/error) with descriptive activity text from protocol events
  • Activity mapping: "Thinking..." during reasoning, streaming text snippets during agent responses, "Running: " during exec requests, "Applying patch..." during patch applications
  • Activity clears on message/task completion, falling back to the existing status display

Changes

  • state/thread.go: Added Activity field with SetActivity()/ClearActivity() methods
  • state/store.go: Added thread-safe UpdateActivity() method
  • tui/card.go: Card renders activity in place of status when present
  • tui/bridge.go: Added agent_reasoning_delta event decoding
  • tui/app_proto.go: All event handlers now set/clear activity
  • tui/app.go: Added AgentReasoningDeltaMsg case to Update switch

Test plan

  • All existing tests pass (go test ./... -v -race)
  • New tests for SetActivity/ClearActivity on ThreadState
  • New tests for UpdateActivity on ThreadStore
  • New tests for card rendering with activity (shows activity, falls back to status, truncates long activity)
  • New test for agent_reasoning_delta bridge decoding
  • golangci-lint run passes with 0 issues
  • go build succeeds

robinojw added 11 commits March 18, 2026 12:36
Header shortcuts bar, n-key session spawning, and full-height
centered card layout.
9 tasks covering header bar, n-key session spawning, and
full-height centered card layout with TDD steps.
Resolves merge conflicts between header bar, n-key session,
and full-height layout branches.
Cards now show what each CLI session is doing instead of just a status
word. Activity updates in real-time from protocol events: "Thinking..."
during reasoning, streaming text snippets during responses, "Running:
<command>" during exec, and "Applying patch..." during patches.
@robinojw robinojw merged commit 375f02d into main Mar 18, 2026
1 check passed
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