Skip to content

fix(acp): refuse launch model changes an agent cannot restore across - #5813

Merged
SawyerHood merged 1 commit into
acp-fu-1-shutdown-cancelfrom
acp-fu-2-nonrestorable-model-change
Oct 20, 2026
Merged

SawyerHood merged 1 commit into
acp-fu-1-shutdown-cancelfrom
acp-fu-2-nonrestorable-model-change

Conversation

@SawyerHood

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

Changing a thread's launch-time model or reasoning level restarts the ACP agent. For an agent that cannot load or resume a session, the restart started a fresh conversation while the turn was accepted, so the thread silently lost its history (#5691). #5692 fixed this in the original bridge, which #5775 deleted; the rebuilt bridge had the same gap in reconcileExecutionSettings.

What changed

Ports #5692 by @bb-slop-cop to the bridge that replaced the original:

  • Before cancelling permissions, changing policy or stopping the process, reconcileExecutionSettings refuses a launch model or reasoning change when !session.supportsLoadSession. The error points to a new thread, and the original session keeps working with its original settings.
  • Restorable agents and in-session (ACP-native) model changes are unchanged.
  • fix(acp): preserve non-restorable sessions on launch setting changes #5692's four-case regression test is carried over unchanged.

How you verified

  • Without the fix, both non-restorable cases fail and both restorable controls pass; with it, all four pass.
  • pnpm exec turbo run test lint typecheck --filter=@bb/provider-bridge-acp: 512 passed, 4 skipped.
  • Not reproduced live: Cursor and OpenCode both support session/load, so neither is affected.

Fixes #5691. Supersedes #5692.

AGENT GENERATED

Ports #5692 to the ACP bridge that replaced the original in #5775.

Changing a thread's launch-time model or reasoning level restarts the ACP
agent. For an agent without session/load or session/resume the restart
started a fresh conversation while the turn was accepted, so the thread
silently lost its history (#5691). The bridge now refuses that change before
cancelling permissions, changing policy or stopping the process, with an
error that points to a new thread; the original session keeps working with
its original settings. Restorable agents and in-session (ACP-native) model
changes are unchanged.

The four-case regression from #5692 is carried over; both non-restorable
cases fail without the fix.

Fixes #5691

Co-authored-by: bb-slop-cop[bot] <316425484+bb-slop-cop[bot]@users.noreply.github.com>
@SawyerHood
SawyerHood added this pull request to stack #5818 October 20, 2026 00:50
@SawyerHood
SawyerHood merged commit cd47494 into main Oct 20, 2026
47 checks passed
@SawyerHood
SawyerHood deleted the acp-fu-2-nonrestorable-model-change branch October 20, 2026 15:37
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.

ACP: a model/reasoning change silently rebuilds a non-restorable agent session and drops its conversation

1 participant