Skip to content

fix: Recreate resumed sessions when params change#515

Merged
benbrandt merged 1 commit intomainfrom
dont-resume-changed-sessions
Apr 6, 2026
Merged

fix: Recreate resumed sessions when params change#515
benbrandt merged 1 commit intomainfrom
dont-resume-changed-sessions

Conversation

@benbrandt
Copy link
Copy Markdown
Member

Closes #512

Fingerprint session-defining params to detect cwd or MCP server
changes, reuse sessions when unchanged, and ignore MCP server
ordering differences. Extract session teardown into a helper and add
tests covering reuse and recreation paths.

Closes #512

Fingerprint session-defining params to detect cwd or MCP server
changes, reuse sessions when unchanged, and ignore MCP server
ordering differences. Extract session teardown into a helper and add
tests covering reuse and recreation paths.
@benbrandt benbrandt merged commit aa82193 into main Apr 6, 2026
4 checks passed
@benbrandt benbrandt deleted the dont-resume-changed-sessions branch April 6, 2026 20:44
benbrandt pushed a commit that referenced this pull request Apr 6, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.25.3](v0.25.2...v0.25.3)
(2026-04-06)


### Bug Fixes

* Drop claude-agent-sdk back to 0.2.91 to fix broken import
([#513](#513))
([26f3e8a](26f3e8a))
* Recreate resumed sessions when params change
([#515](#515))
([aa82193](aa82193))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: acp-release-bot[bot] <246668977+acp-release-bot[bot]@users.noreply.github.com>
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.

Change of CWD in loadSession not respected in read/write

1 participant