From d80e229bdf91dfc66801d1feaa19bcb57dc78c38 Mon Sep 17 00:00:00 2001 From: diana-jung <104146180+diana-jung@users.noreply.github.com> Date: Wed, 26 Nov 2025 18:04:09 +0900 Subject: [PATCH] implementation: Remove the duplicate filtering logic Co-authored-by: qodo-merge-for-open-source[bot] <189517486+qodo-merge-for-open-source[bot]@users.noreply.github.com> --- pr_agent/tools/pr_code_suggestions.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pr_agent/tools/pr_code_suggestions.py b/pr_agent/tools/pr_code_suggestions.py index 17c7cc12..cf6c18c9 100644 --- a/pr_agent/tools/pr_code_suggestions.py +++ b/pr_agent/tools/pr_code_suggestions.py @@ -562,8 +562,7 @@ class PRCodeSuggestions: async def push_inline_code_suggestions(self, data): code_suggestions = [] - score_threshold = max(1, int(get_settings().pr_code_suggestions.suggestions_score_threshold)) - filtered_suggestions = [d for d in data['code_suggestions'] if int(d.get('score', 0)) >= score_threshold] + if not data['code_suggestions']: if not filtered_suggestions: get_logger().info('No suggestions found to improve this PR.')