From b27f1636597c7c30c619e45f32d7014606bc7b11 Mon Sep 17 00:00:00 2001 From: Tushar Mathur Date: Thu, 29 May 2025 06:41:18 -0700 Subject: [PATCH 1/2] feat(ui): log agent responses when rendering markdown or summary --- crates/forge_main/src/ui.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/forge_main/src/ui.rs b/crates/forge_main/src/ui.rs index d20d8491bd..112d778ae4 100644 --- a/crates/forge_main/src/ui.rs +++ b/crates/forge_main/src/ui.rs @@ -605,7 +605,9 @@ impl UI { match message.message { ChatResponse::Text { mut text, is_complete, is_md, is_summary } => { if is_complete && !text.trim().is_empty() { + if is_md || is_summary { + tracing::info!(message = %text, "Agent Response"); text = self.markdown.render(&text); } From 6af89abfe91f77dca9cb45079195bf9d538f2c3a Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Thu, 29 May 2025 13:43:00 +0000 Subject: [PATCH 2/2] [autofix.ci] apply automated fixes --- crates/forge_main/src/ui.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/crates/forge_main/src/ui.rs b/crates/forge_main/src/ui.rs index 112d778ae4..abeeed8b54 100644 --- a/crates/forge_main/src/ui.rs +++ b/crates/forge_main/src/ui.rs @@ -605,7 +605,6 @@ impl UI { match message.message { ChatResponse::Text { mut text, is_complete, is_md, is_summary } => { if is_complete && !text.trim().is_empty() { - if is_md || is_summary { tracing::info!(message = %text, "Agent Response"); text = self.markdown.render(&text);