feat(tui): implement live model fetching and enhance model selection menus

This commit is contained in:
asepharyana
2026-09-03 16:13:29 +07:00
parent f5b04214cf
commit 93e5464370
7 changed files with 174 additions and 15 deletions
+2
View File
@@ -384,6 +384,8 @@ export class MiscState {
activity: ActivityEntry[] = [];
/** Stack of interactive menu frames (top = currently shown). */
menuStack: MenuFrame[] = [];
/** Model ids fetched live from the provider's /models endpoint. */
availableModels: string[] = [];
pushToast(toast: { kind: string; message: string; createdMs: number; ttlMs: number }): void {
this.toasts.push(toast);