Skip to content

feat(acp): support persistent checkpointer/sessions and relax visibility#536

Open
无心戈 (wanxger) wants to merge 2 commits into
langchain-ai:mainfrom
wanxger:feat/acp-server-persistent-sessions
Open

feat(acp): support persistent checkpointer/sessions and relax visibility#536
无心戈 (wanxger) wants to merge 2 commits into
langchain-ai:mainfrom
wanxger:feat/acp-server-persistent-sessions

Conversation

@wanxger

Copy link
Copy Markdown

Summary

Add persistent session/checkpointer support to the ACP server and relax visibility for extensibility.

Changes

feat: persistent checkpointer and sessions (types.ts, server.ts)

  • Added optional checkpointer option — allows passing a custom BaseCheckpointSaver (e.g. SqliteSaver) to persist conversation history across server restarts. Defaults to MemorySaver.
  • Added optional sessions option — allows passing a custom Map<string, SessionState> for persisting session metadata. Defaults to in-memory Map.
  • handleLoadSession() now re-creates the agent on demand when recovering a session after server restart.

fix: guard sessions.clear() against persistent sessions (server.ts)

  • stop() no longer calls sessions.clear() when a custom sessions map was provided, preventing accidental data loss.

refactor: relax visibility from private to protected (server.ts)

  • Fields: agents, agentConfigs, sessions, checkpointer, acpBackends
  • Methods: createAgentHandler(), handleLoadSession(), createAgent(), log()
    These changes enable subclassing DeepAgentsServer to customize behavior.

@changeset-bot

changeset-bot Bot commented May 13, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 9b60d3b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented May 13, 2026

Copy link
Copy Markdown

Open in StackBlitz

deepagents-acp

npm i https://pkg.pr.new/deepagents-acp@536

deepagents

npm i https://pkg.pr.new/deepagents@536

@langchain/sandbox-standard-tests

npm i https://pkg.pr.new/@langchain/sandbox-standard-tests@536

@langchain/daytona

npm i https://pkg.pr.new/@langchain/daytona@536

@langchain/deno

npm i https://pkg.pr.new/@langchain/deno@536

@langchain/modal

npm i https://pkg.pr.new/@langchain/modal@536

@langchain/node-vfs

npm i https://pkg.pr.new/@langchain/node-vfs@536

@langchain/quickjs

npm i https://pkg.pr.new/@langchain/quickjs@536

commit: 9b60d3b

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