From cf4254750dcd2935b2d76b0fd14ba1d523c34444 Mon Sep 17 00:00:00 2001 From: Andrew Phillips Date: Tue, 26 Aug 2025 19:20:14 -0300 Subject: [PATCH] feat: move word and line count output to finalize method Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) --- src/meta_plugin/text.rs | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/src/meta_plugin/text.rs b/src/meta_plugin/text.rs index 2394d7e..1fd7f17 100644 --- a/src/meta_plugin/text.rs +++ b/src/meta_plugin/text.rs @@ -183,27 +183,7 @@ impl MetaPlugin for TextMetaPlugin { // If we've reached our buffer limit and haven't finalized yet if self.buffer.len() >= self.max_buffer_size && !self.is_finalized { - // We already determined it's text at this point, so we can finalize - if self.is_binary_content == Some(false) { - // Output word and line counts - if let Some(meta_data) = crate::meta_plugin::process_metadata_outputs( - "text_word_count", - self.word_count.to_string(), - self.base.outputs() - ) { - metadata.push(meta_data); - } - - if let Some(meta_data) = crate::meta_plugin::process_metadata_outputs( - "text_line_count", - self.line_count.to_string(), - self.base.outputs() - ) { - metadata.push(meta_data); - } - } - - // Mark as finalized + // Mark as finalized but don't output word/line counts here self.is_finalized = true; }