Skip to content

feat(monitor): stream session detail updates while viewing - #83

Merged
kalinon merged 3 commits into
mainfrom
feat/monitor-live-session-stream
Apr 15, 2026
Merged

feat(monitor): stream session detail updates while viewing#83
kalinon merged 3 commits into
mainfrom
feat/monitor-live-session-stream

Conversation

@moltar-bot

Copy link
Copy Markdown
Contributor

Summary

Adds near real-time streaming behavior to the Agent Monitor detail panel while a session is open.

When you click into a session on the Monitor page, the panel now auto-refreshes in place:

  • Regular sessions: every 2s
  • Cron sessions: every 5s

This gives a live, "streaming" feel without requiring a new backend SSE/WebSocket endpoint.

What changed

  • Updated SessionDetailPanel to support silent background refreshes while open
  • Added refresh timers + in-flight request guard to prevent overlapping fetches
  • Kept initial load behavior the same (loading spinner on first open)
  • Silent polls update messages only when fingerprint changes (reduces unnecessary re-renders)
  • Cron panels also refresh latest run details and messages while open

Validation

  • npm run -w ./web lint

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds near real-time polling to the Monitor session detail drawer so that an open session view stays up-to-date without requiring SSE/WebSockets.

Changes:

  • Introduces periodic background refresh while the detail panel is open (2s for regular sessions, 5s for cron sessions).
  • Adds an in-flight request guard and “silent refresh” mode to avoid showing the loading spinner on every poll.
  • Avoids unnecessary re-renders by only updating messages when a simple fingerprint changes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread web/src/components/SessionDetailPanel.jsx Outdated
Comment thread web/src/components/SessionDetailPanel.jsx
Comment thread web/src/components/SessionDetailPanel.jsx Outdated
@kalinon
kalinon merged commit 000dc57 into main Apr 15, 2026
9 checks passed
@kalinon
kalinon deleted the feat/monitor-live-session-stream branch April 15, 2026 14:14
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.

3 participants