Skip to content

[RFC] Real-time Trace Streaming via WebSockets #1

Description

@PSR94

Background

Currently, the TraceViewer component relies on client-side polling to fetch updates for active agent runs. While functional, this introduces unnecessary latency and DB load as agent steps increase.

Proposal

Transition to FastAPI WebSockets or Server-Sent Events (SSE) to broadcast trace updates from the Orchestrator.

Proposed Changes

  • Backend: Update Orchestrator to emit events via Redis pub/sub.
  • Frontend: Implement a useTraceStream hook for real-time UI updates.

Success Criteria

  • Reduce time-to-first-trace-segment to <100ms.
  • Support up to 50 concurrent live-streaming windows.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions