Repository navigation
fix(server): replace ACP model catalogs after completed discovery - #19518
Open
StiensWout wants to merge 1 commit into
Open
StiensWout wants to merge 1 commit into
StiensWout wants to merge 1 commit into
Conversation
…sing The ACP branch of the model retention rule used auth "authenticated" as its "discovery completed" signal. Agents that offer no sign-in methods always report auth "unknown", so every completed probe kept the removed models and the readiness placeholder "default". A saved sign-in also marked readiness snapshots authenticated, which wiped known models before discovery ran. Only a completed discovery probe reports session capabilities, so the registry now replaces the list exactly when a snapshot carries them. Fixes pingdotgg#18783 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — This is a small, localized ACP catalog bug fix: completed discovery replaces stale models, while pending or failed discovery preserves known entries. The added tests cover unauthenticated completed probes and authenticated readiness without introducing schema, infrastructure, or static-analysis changes. You can add or adjust custom eligibility rules. Learn more. |
Contributor
This branch has not been deployed
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.
ACP agents that need no sign-in kept models they stopped advertising, including a stale default. The registry treated authenticated as proof that discovery had completed, while these agents correctly report auth as unknown.
Use the discovery probe's session metadata to distinguish a complete catalog from a readiness or failed snapshot. Completed probes replace removed models and the placeholder; pending and failed probes retain known models. Authentication and custom models keep their existing behavior.
Fixes #18783. Alternative to #18807, with tests using the real driver snapshots to cover completed discovery and signed-in readiness.
Validation: both focused behavior cases fail before the fix and pass afterward. Independently ran
pnpm exec vp test run src/provider/ProviderRegistry.test.tsfrom apps/server, 62/62 passed, plus package typecheck, targeted lint and diff checks. The author also passed driver, probe and provider compatibility tests and apps/server typecheck. No live agent session was tested.Prepared for Wout by
claude-opus-5-5in T3 Code's Claude harness. Validated bygpt-6.1-solin Codex.