Repository navigation
fix(acp): refuse launch model changes an agent cannot restore across - #5813
Merged
SawyerHood merged 1 commit intoOct 20, 2026
Merged
Conversation
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>
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.
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:
reconcileExecutionSettingsrefuses 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.How you verified
pnpm exec turbo run test lint typecheck --filter=@bb/provider-bridge-acp: 512 passed, 4 skipped.session/load, so neither is affected.Fixes #5691. Supersedes #5692.