Skip to content

Commit 155f4d2

Browse files
committed
fix(tui): implement models:fetch-and-pick async handler
The /models command (and aliases /lm, /list-models) was dispatching to 'models:fetch-and-pick' but the async handler was never implemented. This fix adds the missing case in handle_async_command() that opens the ModelPicker modal, fetching models from provider_manager. Fixes: missing handler causing 'Command not yet implemented' message
1 parent 334f682 commit 155f4d2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/cortex-tui/src/runner/event_loop/commands.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,9 @@ impl EventLoop {
390390
"history" => {
391391
self.handle_history();
392392
}
393+
"models:fetch-and-pick" => {
394+
self.handle_open_modal(ModalType::ModelPicker).await;
395+
}
393396
_ => {
394397
self.app_state
395398
.toasts

0 commit comments

Comments
 (0)