fix: restore mcp flexibility and improve cli tooling
This commit is contained in:
@@ -211,7 +211,7 @@ impl ChatApp {
|
||||
let app = Self {
|
||||
controller,
|
||||
mode: InputMode::Normal,
|
||||
status: "Ready".to_string(),
|
||||
status: "Normal mode • Press F1 for help".to_string(),
|
||||
error: None,
|
||||
models: Vec::new(),
|
||||
available_providers: Vec::new(),
|
||||
@@ -745,6 +745,12 @@ impl ChatApp {
|
||||
}
|
||||
}
|
||||
|
||||
if matches!(key.code, KeyCode::F(1)) {
|
||||
self.mode = InputMode::Help;
|
||||
self.status = "Help".to_string();
|
||||
return Ok(AppState::Running);
|
||||
}
|
||||
|
||||
match self.mode {
|
||||
InputMode::Normal => {
|
||||
// Handle multi-key sequences first
|
||||
@@ -2315,7 +2321,7 @@ impl ChatApp {
|
||||
}
|
||||
|
||||
fn reset_status(&mut self) {
|
||||
self.status = "Ready".to_string();
|
||||
self.status = "Normal mode • Press F1 for help".to_string();
|
||||
self.error = None;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user