feat(tui): implement agent turn engine for background processing and enhance input handling
This commit is contained in:
@@ -23,7 +23,9 @@ impl McpTransport {
|
||||
|
||||
pub fn stop(&mut self) -> anyhow::Result<()> {
|
||||
if let Some(mut child) = self.process.take() {
|
||||
let _ = child.kill();
|
||||
if let Err(e) = child.kill() {
|
||||
tracing::warn!("MCP transport kill error: {e}");
|
||||
}
|
||||
let _ = child.wait();
|
||||
}
|
||||
Ok(())
|
||||
@@ -33,7 +35,9 @@ impl McpTransport {
|
||||
impl Drop for McpTransport {
|
||||
fn drop(&mut self) {
|
||||
if let Some(mut child) = self.process.take() {
|
||||
let _ = child.kill();
|
||||
if let Err(e) = child.kill() {
|
||||
tracing::warn!("MCP transport kill error: {e}");
|
||||
}
|
||||
let _ = child.wait();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user