Repository navigation
[codex] Fix ACP composer bootstrap fallback - #368
Merged
SawyerHood merged 1 commit intoJun 26, 2026
Merged
Conversation
Collaborator
|
I tested this manually and it does seem to fix it! Are you fine if I merge? |
Git-on-my-level
marked this pull request as ready for review
June 25, 2026 23:58
Contributor
Author
|
Yes go ahead it's ready |
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.
Summary
Fixes composer bootstrap for ACP-backed threads when known-agent discovery is degraded. If
known_acp_agents.statusfails, the requested known ACP provider is now preserved in the provider list so existing ACP threads can keep resolving their provider/model state instead of falling back to another project default provider.Closes #365.
Root Cause
resolveSystemExecutionOptions()intentionally tolerated host/provider discovery failures by omitting known ACP agents. That is fine for generic provider lists, but it breaks thread-specific composer bootstrap when the thread provider itself is a known ACP provider such asacp-opencode. The requested provider disappeared fromexecutionOptions.providers, so the composer could not reliably display or continue with the thread's historical execution model.Changes
modelLoadErrorpath.acp-opencodethread with last-turn model state, stale project defaults foracp-cursor, and failing known-agent/model-list RPCs.Validation
pnpm exec turbo run test --filter=@bb/server -- --run test/public/public-thread-data.test.tspnpm exec turbo run typecheck --filter=@bb/servergit diff --check