feat(code): persist and reconfigure ACP sessions - #5366
Merged
Johannes du Plessis (johannes117) merged 5 commits intoAug 11, 2026
Merged
feat(code): persist and reconfigure ACP sessions#5366Johannes du Plessis (johannes117) merged 5 commits into
Johannes du Plessis (johannes117) merged 5 commits into
Conversation
Johannes du Plessis (johannes117)
force-pushed
the
johannes117/code/persist-acp-sessions
branch
from
August 6, 2026 19:00
44768b5 to
fa4c8a1
Compare
Johannes du Plessis (johannes117)
force-pushed
the
johannes117/code/persist-acp-sessions
branch
from
August 7, 2026 02:05
ff825a5 to
b27dd29
Compare
Johannes du Plessis (johannes117)
force-pushed
the
johannes117/code/persist-acp-sessions
branch
from
August 7, 2026 16:59
b27dd29 to
bcea347
Compare
Johannes du Plessis (johannes117)
force-pushed
the
johannes117/code/persist-acp-sessions
branch
from
August 11, 2026 21:48
23a3090 to
591bde6
Compare
Base automatically changed from
johannes117/acp/session-load-persistence
to
main
August 11, 2026 21:53
Type the ACP agent factory against the adapter's context and Pregel return, collapse the nested error handling now that agent construction is lazy, and drop the unrelated `mcp_tools` forwarding.
Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
Johannes du Plessis (johannes117)
force-pushed
the
johannes117/code/persist-acp-sessions
branch
from
August 11, 2026 21:53
591bde6 to
16a5c95
Compare
Mukil Loganathan (langchain-infra)
approved these changes
Aug 11, 2026
Johannes du Plessis (johannes117)
deleted the
johannes117/code/persist-acp-sessions
branch
August 11, 2026 23:17
Mason Daugherty (mdrxy)
pushed a commit
that referenced
this pull request
Aug 12, 2026
> [!CAUTION] > Merging this PR will automatically publish to **PyPI** and create a **GitHub release**. For the full release process, see [`.github/RELEASING.md`](https://github.com/langchain-ai/deepagents/blob/main/.github/RELEASING.md). --- _Release notes preview: keep this section in sync with the package `CHANGELOG.md`. Publish reads the merged CHANGELOG via `release.yml`, not this PR description — keep them aligned anyway so the PR stays an accurate historical record for reviewers and anyone returning later._ --- ## [0.1.55](deepagents-code==0.1.54...deepagents-code==0.1.55) (2026-08-12) ### Features - Added a `/context` usage report for inspecting context consumption ([#5407](#5407)). - Added a cache and context status row for at-a-glance session state ([#5408](#5408)). - Added configurable warnings when a session exceeds the configured cost threshold ([#5405](#5405)). - Added support for persisting and reconfiguring ACP sessions ([#5366](#5366)). - Added automatic updates for installed plugins ([#5368](#5368)). - Added a toggle for diff line numbers ([#5427](#5427)). - `Ctrl+S` in `/auto model` now stores `[models].auto_classifier` ([#5313](#5313)). ### Fixes - Restored edit diffs in resumed threads ([#5391](#5391)). - Added a resume hint after crashes ([#5412](#5412)). - Clarified the project hooks trust prompt and stopped prompting for user hooks ([#5426](#5426)). - Cleared dynamic subagents on the next turn ([#5437](#5437)). - Improved grouped tool summaries by counting distinct targets ([#5409](#5409)). - Improved ask-user choice wrapping and selection styling ([#5442](#5442)). - Serialized `dcode` self-upgrades across processes ([#5252](#5252)). - Added warnings for stale dependencies in editable installs ([#5386](#5386)). - Hid incomplete extras from version output ([#5352](#5352)). - Removed the optional-provider startup tip ([#5421](#5421)). - Removed the “Message restored to input” toast ([#5253](#5253)). _End release notes preview._ --- > [!NOTE] > A **New Contributors** section is appended to the GitHub release notes automatically at publish time (see [Release Pipeline](https://github.com/langchain-ai/deepagents/blob/main/.github/RELEASING.md#release-pipeline), step 2). --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: langchain-oss-automated-triage[bot] <248757908+langchain-oss-automated-triage[bot]@users.noreply.github.com>
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.
Depends on #5365
dcode --acpsessions now survive process restarts and can switch among discovered models without losing checkpointed context.ACP mode now keeps dcode’s SQLite checkpointer open, builds each session for its cwd and selected model, and advertises the installed model catalog through
session/set_config_option.Test plan
PYTHONPATH=../acp:../deepagents:. .venv/bin/python -m pytest -q tests/unit_tests/test_main_acp_mode.pytychecks for the changed filesMade by Open SWE