fix: restore mcp flexibility and improve cli tooling

This commit is contained in:
2025-10-11 06:11:22 +02:00
parent 40c44470e8
commit 5ac0d152cb
19 changed files with 998 additions and 162 deletions

View File

@@ -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;
}