Peek Session
Return the recent stream-tail entries for session_id.
Args: session_id: Bernstein session whose tail to read. request: FastAPI request - used to resolve the workdir and the tail query argument.
Returns: JSON envelope with session_id plus a tail list of {ts, surface, text} entries in chronological order. An empty list signals "buffer not initialised yet" rather than an error so the polling page renders a blank pane while it waits.
get/api/v1/sessions/{session_id}/peek
Request
- Base URL: http://127.0.0.1:8052
- URL: http://127.0.0.1:8052/api/v1/sessions/{session_id}/peek
- Auth: none declared
Path parameters
session_idstring required
Response
Successful Response
unknown required
Changes
No recorded changes to this operation across all 1 revision of this API.