Skip to content

Feature: Implement WebSockets or SSE for Real-Time UI Updates #9

Description

@hypnoastic

Description

The monitoring dashboard currently relies on short-polling (fetching /api/state every few seconds) to keep the frontend updated. This can cause unnecessary network overhead and minor stuttering/lag during active executions.

Proposal

Implement WebSockets or Server-Sent Events (SSE) to push state updates directly from the backend to the frontend exactly when changes occur.

Acceptance Criteria

  • Refactor the backend to support WS/SSE connections.
  • Update the frontend Javascript to listen for pushed events rather than polling.
  • Ensure UI components (Runs, Agents, Playground) update seamlessly without losing DOM state (e.g., expanded accordions).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions