mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-17 06:04:51 +00:00
feat(coding-agent): display name of selected model in modelSelectors
This commit is contained in:
parent
0feb6e90ce
commit
0684e29a73
2 changed files with 10 additions and 0 deletions
|
|
@ -268,6 +268,10 @@ export class ModelSelectorComponent extends Container implements Focusable {
|
||||||
}
|
}
|
||||||
} else if (this.filteredModels.length === 0) {
|
} else if (this.filteredModels.length === 0) {
|
||||||
this.listContainer.addChild(new Text(theme.fg("muted", " No matching models"), 0, 0));
|
this.listContainer.addChild(new Text(theme.fg("muted", " No matching models"), 0, 0));
|
||||||
|
} else {
|
||||||
|
const selected = this.filteredModels[this.selectedIndex];
|
||||||
|
this.listContainer.addChild(new Spacer(1));
|
||||||
|
this.listContainer.addChild(new Text(theme.fg("muted", ` Model Name: ${selected.model.name}`), 0, 0));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -215,6 +215,12 @@ export class ScopedModelsSelectorComponent extends Container implements Focusabl
|
||||||
new Text(theme.fg("muted", ` (${this.selectedIndex + 1}/${this.filteredItems.length})`), 0, 0),
|
new Text(theme.fg("muted", ` (${this.selectedIndex + 1}/${this.filteredItems.length})`), 0, 0),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.filteredItems.length > 0) {
|
||||||
|
const selected = this.filteredItems[this.selectedIndex];
|
||||||
|
this.listContainer.addChild(new Spacer(1));
|
||||||
|
this.listContainer.addChild(new Text(theme.fg("muted", ` Model Name: ${selected.model.name}`), 0, 0));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
handleInput(data: string): void {
|
handleInput(data: string): void {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue