Repository navigation
Conversation
When an agent advertises a model config option and session/set_config_option fails, the bridge swallowed the error and retried with session/set_model, an optional extension omp does not implement, so thread start failed with "Unknown ACP ext method: session/set_model" instead of the agent's real reason. set_model is now used only when the agent advertises session models that include the selection; otherwise the config option's own error is returned. Fixes #2925 Co-Authored-By: Claude Opus 5.5 <[email protected]>
ymichael
deleted the
bb/2925-acp-bridge-retries-model-config-errors-thro-thr_ypdnzpir2p
branch
October 28, 2026 21:17
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
The ACP bridge discarded an advertised model config option's error and tried the optional
session/set_modelextension without evidence that the agent supported the selected model through that interface. This could hide the actionable error behind OMP's unsupported-method error. Confirmed on main by running the regression test with main's production bridge: the promise resolved withselected-model:fake/stronginstead of rejecting with the original config error.What changed
Preserve the original config error unless the session's advertised models include the requested model. Keep fallback for agents that advertise that model, and teach the dynamic integration fixture to implement its advertised config option.
The only intended visible change is that failed model configuration no longer invokes an unadvertised model extension and instead reports its original error. Successful configuration, advertised fallback, and model selection through session models remain supported. No server/daemon wire changes or new CLI/SDK surfaces.
How you verified
pnpm exec turbo run lint typecheck test --filter=@bb/provider-bridge-acp: passed; 545 tests passed, 4 skipped, 25 test files. Includes the regression, advertised fallback, and recorded conformance.pnpm exec turbo run test --filter=@bb/integration-tests -- fake/smoke/dynamic-acp-agent.test.ts: passed, one integration smoke test.git diff --checkpassed.Fixes #2925
🤖 Generated with Claude Code