Skip to content

[codex] Fix ACP composer bootstrap fallback - #368

Merged
SawyerHood merged 1 commit into
get-bb:mainfrom
Git-on-my-level:codex/fix-acp-composer-bootstrap
Jun 26, 2026
Merged

SawyerHood merged 1 commit into
get-bb:mainfrom
Git-on-my-level:codex/fix-acp-composer-bootstrap

Conversation

@Git-on-my-level

Copy link
Copy Markdown
Contributor

Summary

Fixes composer bootstrap for ACP-backed threads when known-agent discovery is degraded. If known_acp_agents.status fails, 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 as acp-opencode. The requested provider disappeared from executionOptions.providers, so the composer could not reliably display or continue with the thread's historical execution model.

Changes

  • Include the requested known ACP provider in execution options even when the installed-known-agent probe is unavailable.
  • Keep model loading degraded through the existing modelLoadError path.
  • Add a regression test covering an acp-opencode thread with last-turn model state, stale project defaults for acp-cursor, and failing known-agent/model-list RPCs.

Validation

  • pnpm exec turbo run test --filter=@bb/server -- --run test/public/public-thread-data.test.ts
  • pnpm exec turbo run typecheck --filter=@bb/server
  • git diff --check

@SawyerHood

Copy link
Copy Markdown
Collaborator

I tested this manually and it does seem to fix it! Are you fine if I merge?

@Git-on-my-level
Git-on-my-level marked this pull request as ready for review June 25, 2026 23:58
@Git-on-my-level

Copy link
Copy Markdown
Contributor Author

Yes go ahead it's ready

@SawyerHood
SawyerHood merged commit aa1bfbf into get-bb:main Jun 26, 2026
5 checks passed
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.

Composer bootstrap should survive ACP model-list failures and use last execution model

2 participants