Skip to main content

Module sse

Module sse 

Source
Expand description

Server-Sent Events: replay an agent’s history from the store, then tail the live event bus — joined on the monotonic seq with no gap or dup.

The stream closes right after the agent’s terminal AgentFinished event, so prospero follow behaves like tail of a finite run and the dashboard shows the finished run then closes cleanly (rather than hanging forever).

Functions§

agent_stream
GET /api/agents/{id}/stream — replay-then-tail SSE of FleetEvents.