fix: send unfiltered models over model/list (#11793)

### What
to unblock filtering models in VSCE, change `model/list` app-server
endpoint to send all models + visibility field `showInPicker` so
filtering can be done in VSCE if desired.

### Tests
Updated tests.
This commit is contained in:
sayan-oai
2026-02-13 16:26:32 -08:00
committed by GitHub
parent fb0aaf94de
commit 6b466df146
12 changed files with 98 additions and 8 deletions

View File

@@ -3592,10 +3592,15 @@ impl CodexMessageProcessor {
request_id: ConnectionRequestId,
params: ModelListParams,
) {
let ModelListParams { limit, cursor } = params;
let ModelListParams {
limit,
cursor,
include_hidden,
} = params;
let mut config = (*config).clone();
config.features.enable(Feature::RemoteModels);
let models = supported_models(thread_manager, &config).await;
let models =
supported_models(thread_manager, &config, include_hidden.unwrap_or(false)).await;
let total = models.len();
if total == 0 {