Repository navigation
docs(unstable-v2): say which order session/list returns and that cwd stays the same - #2882
Merged
Merged
Conversation
…stays the same The session list page did not say in what order `session/list` returns sessions, so a Client could not show recent sessions from the first page. The rule that a Client keeps the same `cwd` while it follows `nextCursor` was only in the unstable archive section of the draft page. - Say that Agents SHOULD return the sessions with the most recent activity first. - Say in the Pagination section that Clients keep the same `cwd` when following `nextCursor`. - State both in the schema descriptions of `ListSessionsResponse` and `ListSessionsRequest`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two rules for
session/listwere missing from the v2 session list page.cwdwhile it followsnextCursorwas only in the unstable archive section of the draft page.Changes
sessionsresponse field, in the stable page and itsdraft/copy.cwdwhen followingnextCursor, in both copies. The draft's archive section keeps its sentence, which also coversarchived.ListSessionsResponse.sessionsandListSessionsRequest.cwdstate the same rules. This regeneratesschema/v2/schema.json,schema/v2/schema.unstable.jsonand bothschema.mdxpages. Only description text changes.Notes
updatedAt.claude-agent-acporders by the last user prompt when it knows it, and falls back toupdatedAt.claude-agent-acpalready returns the most recent sessions first.codex-acplists threads by Codex'srecency_atkey. The sort direction of that key was not confirmed. Checked on 2026-11-19 against the default branch of each repository.archived.Checks
cargo clippyin the three configurations fromnpm run check,cargo test --all-features, and rustdoc with-D warningspass.cargo fmt, the spellcheck script, and the link check pass.