fixes for coach mode

This commit is contained in:
Dhanji Prasanna
2025-10-08 11:12:11 +11:00
parent e11a287acc
commit b369a1f5c3
2 changed files with 36 additions and 8 deletions

View File

@@ -1385,7 +1385,13 @@ The tool will execute immediately and you'll receive the result (success or erro
full_response.push_str(final_display_content);
if let Some(summary) = tool_call.args.get("summary") {
if let Some(summary_str) = summary.as_str() {
full_response.push_str(&format!("\n\n=> {}", summary_str));
// Don't add the "=> " prefix in autonomous mode
// as it interferes with coach feedback parsing
if !self.is_autonomous {
full_response.push_str(&format!("\n\n=> {}", summary_str));
} else {
full_response.push_str(&format!("\n\n{}", summary_str));
}
}
}
self.ui_writer.println("");