From 0a845cd08981c716f1fc8ca2633894bf137a7bbb Mon Sep 17 00:00:00 2001 From: Muhammad Ibrahim Qasmi <147333130+muhammadibrahim313@users.noreply.github.com> Date: Thu, 24 Jul 2025 18:09:39 +0500 Subject: [PATCH] Update codebase_index_workflow.py --- workflows/codebase_index_workflow.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/workflows/codebase_index_workflow.py b/workflows/codebase_index_workflow.py index 06a982c7..b53174ec 100644 --- a/workflows/codebase_index_workflow.py +++ b/workflows/codebase_index_workflow.py @@ -222,7 +222,8 @@ def load_target_structure_from_plan(self, plan_path: str) -> str: for line in preview_lines: self.logger.info(f" {line}") if len(file_tree.split("\n")) > 8: - self.logger.info(f" ... 还有 {len(file_tree.split('\n')) - 8} 行") + remaining_lines = len(file_tree.split("\n")) - 8 + self.logger.info(f" ... 还有 {remaining_lines} 行") return file_tree else: self.logger.warning("⚠️ 无法从初始计划中提取文件树")