diff --git a/crates/agent2/src/tools/terminal_tool.rs b/crates/agent2/src/tools/terminal_tool.rs index 935945daa86eae72991e3f7db8fc1ea00b37da8e..49c2274093b300acb873f02e5d86ccd0c3db3c30 100644 --- a/crates/agent2/src/tools/terminal_tool.rs +++ b/crates/agent2/src/tools/terminal_tool.rs @@ -201,7 +201,7 @@ impl AgentTool for TerminalTool { let exit_status = terminal .update(cx, |terminal, cx| terminal.wait_for_completed_task(cx))? .await; - guard.update(cx, |cancelled, _| *cancelled = true); + guard.update(cx, |cancelled, _| *cancelled = true)?; let (content, content_line_count) = terminal.read_with(cx, |terminal, _| { (terminal.get_content(), terminal.total_lines()) })?;