Skip to content

docs(schema): require session/resume cwd to match the session - #2640

Merged
benbrandt merged 2 commits into
mainfrom
docs/resume-cwd-must-match
Oct 29, 2026
Merged

benbrandt merged 2 commits into
mainfrom
docs/resume-cwd-must-match

Conversation

@benbrandt

@benbrandt benbrandt commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

Most Agents only support resuming a session in its original directory, and the SHOULD left undefined what an accepted different cwd would mean for SessionInfo.cwd, the session/list filter and additionalDirectories.

On v2 session-setup (stable and draft) and the ResumeSessionRequest.cwd Rust/schema doc, Clients MUST now send the session's working directory on session/resume, and Agents MAY reject a different one with -32602. Agents may still normalize paths when comparing.

This makes session-list's "cwd is immutable after session setup" and the additionalDirectories "as long as the request cwd matches" condition consistent without further changes. v2 only.

@benbrandt
benbrandt requested a review from a team as a code owner October 29, 2026 20:58
@benbrandt
benbrandt enabled auto-merge (squash) October 29, 2026 21:06
@benbrandt
benbrandt merged commit 301cdc9 into main Oct 29, 2026
14 checks passed
@benbrandt
benbrandt deleted the docs/resume-cwd-must-match branch October 29, 2026 21:08
@acp-release-bot acp-release-bot Bot mentioned this pull request Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant