List sessions / get session messages
No session_id
Returns all summaries in reverse-time order:
Known limitation:/api/historydoes not paginate yet — for users with long history this may return thousands of records. Client guidance:
- On a list page, show only the most recent N (e.g. 30) by
timestampdescending.- Cache locally with
last_timestampto do incremental fetch.- Pagination will be added in a future version with backward-compatible shape.
With session_id
Returns the chat messages for the session:
role is user or assistant. content_dict carries the tool-call step list captured during streaming.
By-person view (family scenario)
Delete a session
ok even for nonexistent IDs.