Skip to content

[Bug]: Pi and ACP silently replace a selected model during catalog gaps #37527

Closed

Description

@StiensWout

Before submitting

  • 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

  1. Configure Pi with an explicit default model such as anthropic/claude-sonnet-4, or open a Pi/ACP thread with an explicit model.
  2. Let discovery temporarily return only the provider's default model. Pi does this after a discovery failure; ACP can do this before probing.
  3. 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.

Impact

Minor bug or occasional failure

Version or commit

main @ 3cf00c3

Environment

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

  1. added
    vouch:trusted
    on Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    vouch:trusted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions