diff --git a/crates/g3-core/src/lib.rs b/crates/g3-core/src/lib.rs index 6ff44f1..f6df224 100644 --- a/crates/g3-core/src/lib.rs +++ b/crates/g3-core/src/lib.rs @@ -4206,6 +4206,11 @@ impl Agent { self.ui_writer.print_agent_response(&filtered_content); self.ui_writer.flush(); current_response.push_str(&filtered_content); + + // Mark parser buffer as consumed up to current position + // This prevents tool-call-like patterns in displayed text + // from triggering false positives in has_unexecuted_tool_call() + parser.mark_tool_calls_consumed(); } } }