fix(coding-agent): handle slash-delimited /model refs closes #2174

This commit is contained in:
Mario Zechner
2026-03-15 16:41:06 +01:00
parent 0b48e2518f
commit b752a6e0a1
3 changed files with 57 additions and 41 deletions

View File

@@ -212,7 +212,11 @@ export class ModelSelectorComponent extends Container implements Focusable {
private filterModels(query: string): void {
this.filteredModels = query
? fuzzyFilter(this.activeModels, query, ({ id, provider }) => `${id} ${provider}`)
? fuzzyFilter(
this.activeModels,
query,
({ id, provider }) => `${id} ${provider} ${provider}/${id} ${provider} ${id}`,
)
: this.activeModels;
this.selectedIndex = Math.min(this.selectedIndex, Math.max(0, this.filteredModels.length - 1));
this.updateList();