You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Pi and ACP silently replace a selected model during catalog gaps #37527
I searched existing issues and did not find a duplicate.
I included enough detail to reproduce or investigate the problem.
Area
apps/web
Steps to reproduce
Configure Pi with an explicit default model such as anthropic/claude-sonnet-4, or open a Pi/ACP thread with an explicit model.
Let discovery temporarily return only the provider's default model. Pi does this after a discovery failure; ACP can do this before probing.
Open the composer and send a message.
A deterministic Pi scenario uses a fake CLI that answers --version successfully but fails model discovery. The fix PR includes the scenario and resolver tests for both Pi and ACP Registry.
Expected behavior
The composer keeps the explicitly selected model and its options during the gap, marks the model unavailable, and sends that selection.
Actual behavior
Settings retains the chosen model, but the composer resolves it to default. The next message is submitted with the default model and can drop its selected options.
Web and desktop web client; Pi and ACP Registry runtime model catalogs.
Logs or stack traces
The Pi scenario on main reads back the newly submitted thread's model as default, expected anthropic/claude-sonnet-4. Both Pi and ACP resolver cases fail on main; an independent Claude Opus 5.5 verifier also confirmed the finding.
Screenshots, recordings, or supporting files
Related closed issue #21663 concerns discovery timeout/empty inventory itself. This report concerns preserving a known explicit selection during that gap.
Workaround
Wait for the full catalog to return and reselect the model before sending.
Activity