diff --git a/metagpt/actions/write_code_review.py b/metagpt/actions/write_code_review.py index e72fe5cd1..f49ef178f 100644 --- a/metagpt/actions/write_code_review.py +++ b/metagpt/actions/write_code_review.py @@ -283,7 +283,10 @@ class ReviewAndRewriteCode(Action): await awrite(filename=code_path, data=code) - return code + return ( + f'\nThe "review and rewrite the code {os.path.basename(code_path)}" task has been completed and is now marked as finished.\n' + + code + ) @staticmethod async def _try_aread(input: str) -> str: