diff --git a/metagpt/ext/cr/actions/code_review.py b/metagpt/ext/cr/actions/code_review.py index 473ea8018..e3e6e69f2 100644 --- a/metagpt/ext/cr/actions/code_review.py +++ b/metagpt/ext/cr/actions/code_review.py @@ -208,6 +208,6 @@ class CodeReview(Action): comments = await self.confirm_comments(patch=patch, comments=comments, points=points) for comment in comments: if comment["code"]: - if not (comment["code"].startswith("-") or comment["code"].isspace()): + if not (comment["code"].isspace()): result.append(comment) return result