-
Notifications
You must be signed in to change notification settings - Fork 85
RFD: session/list API for session discovery and management #211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RFD: session/list API for session discovery and management #211
Conversation
Proposes a new session/list endpoint to enable: - Discovery of existing sessions - Session history browsing - Multi-session management - Better UX for resuming conversations The endpoint supports: - Filtering by creation date, access date, and working directory - Pagination with limit/offset - Sorting by various criteria - Optional capability for agents with session persistence Includes detailed JSON-RPC request/response examples and addresses common questions about alternatives, interaction with session/load, and pagination strategies.
Replace metadata with _meta in docs/rfds/sessions-list-api.mdx Update JSON response example and response field list Keep prose references to “metadata” unchanged
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi thanks for putting in a lot of work on this! I think it's a great start.
I left some notes here, curious to get your feedback. Either way, I think we could bring this to Draft state soon and do some more work before bring it to Preview for final review
Major changes to sessions-list-api.mdx: - Switch from offset-based to cursor-based pagination using continuation tokens - Rename `lastAccessedAt` to `updatedAt` for consistency across the API - Remove `preview` field from SessionInfo (out of scope for this RFD) - Remove session orphaning from problem statement - Replace `sortBy`/`sortOrder` parameters with `search` parameter - Remove `total` count from response (incompatible with cursor pagination) - Update all request/response examples to reflect new pagination model - Clarify response includes `hasMore` and `nextContinuationToken` instead of `total`
| - `hasMore` (boolean) - Whether more results are available after this page | ||
| - `nextContinuationToken` (string, optional) - Pass this token in the next request's `continuationToken` to fetch the next page |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think of following MCP's pattern here?: https://modelcontextprotocol.io/specification/2025-06-18/server/utilities/pagination
They call it nextCursor and you use the presence of it for the same meaning as your hasMore boolean, which I think makes sense
|
I think this is already well on it's way to "Preview" stage. In the spirit of the process, I am going to go ahead and merge this as-is as a "draft" and we can keep iterating on it for getting it ready for "Preview" and then we can "Accept" and start working on it. Thanks so much for the work here! |
|
Draft published here: https://agentclientprotocol.com/rfds/session-list |
Proposes a new session/list endpoint to enable:
The endpoint supports:
Includes detailed JSON-RPC request/response examples and addresses common questions about alternatives, interaction with session/load, and pagination strategies.