updated remove project logic to check if the client folders are empty,

and if they are deltes them.
This commit is contained in:
2026-05-21 13:51:04 -05:00
parent 9ddcd1ef6e
commit 95b86f80aa
2 changed files with 72 additions and 51 deletions
+8 -11
View File
@@ -226,17 +226,14 @@ pub fn run_tui(
state.output.push("\n".to_string());
state.output.push(format!("[user input] > {}", trimmed));
state.output.push("\n".to_string());
if let Some(action) = state.prompt.action.clone() {
match action {
ToolMessage::RemoveProject => {
if trimmed.to_lowercase().contains("y") {
state.execute_command(
"remove_project_confirm",
None,
)?;
}
}
_ => {}
let prompt = state.prompt.clone();
if prompt.action.is_some() {
state.prompt.responses.push(trimmed.clone());
if state.prompt.responses.len() == state.prompt.num_responses {
state.execute_command(
prompt.execute_command.as_str(),
None,
)?;
}
}
let (command, args) =