mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
Problem: lastActivityAt was only updated when agent_state messages arrived (which only happens on agent lifecycle changes), not when the agent was actively streaming output. This meant the agent directory showed stale "last activity" times. Solution: Update agent.lastActivityAt whenever agent_stream events arrive, using the event's timestamp. Now lastActivityAt tracks real-time activity. Updates happen on: 1. agent_state message → lastActivityAt = updatedAt (from server) 2. agent_stream message → lastActivityAt = event.timestamp (real-time!) This ensures the agent directory always shows fresh activity times. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>