Skip to main content

Replay a session's live feed from a sequence

GET 

/session/feed

Returns the session's sequenced live frames with a sequence greater than cursor, oldest first. The feed merges three kinds of frame: root protocol events, child agent run steps (agent.run.*), and notices (notice.created). Each item has the same type, data, and sequence its live WebSocket frame carried, and id is the stored record's ID, so a client that reconnects passes the last sequence it applied as cursor and continues without a gap or a duplicate.

Continue with nextCursor while hasMore is true. A cursor at or past the head returns an empty page with nextCursor equal to the cursor sent. message.completed and message.failed never appear here, because they are unsequenced acknowledgements of one request.

Returns 404 SESSION_NOT_FOUND when the session does not exist, and 400 for a malformed X-Session-ID, a negative cursor, or a limit outside 1 to 200.

Request​

Responses​

Page of feed frames, oldest first.

Response Headers
    X-Session-ID

    The session this response belongs to. For session-scoped requests it echoes the X-Session-ID request header; for POST /sessions/open and POST /sessions/system it is the session that was opened or created.

    X-Request-ID

    The request's correlation ID. When the request carried an X-Request-ID header holding a UUID, Peen echoes it; otherwise Peen generates a new UUID. The controller log records the same value for this request.