From d0b253cd8554ee4001afa0fe3d45bd4da21b5209 Mon Sep 17 00:00:00 2001 From: vegu-ai-tools <152010387+vegu-ai-tools@users.noreply.github.com> Date: Thu, 14 May 2026 00:28:53 +0300 Subject: [PATCH] empty same as no fix --- src/talemate/agents/editor/revision.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/talemate/agents/editor/revision.py b/src/talemate/agents/editor/revision.py index 8c2da78e..3b4942e6 100644 --- a/src/talemate/agents/editor/revision.py +++ b/src/talemate/agents/editor/revision.py @@ -1238,9 +1238,9 @@ class RevisionMixin: await async_signals.get("agent.editor.revision-analysis.after").send(emission) revision = extracted["revision"] - if revision is None: + if not revision: log.debug( - "revision_rewrite: no found in response, keeping original" + "revision_rewrite: no content in response, keeping original" ) return original_text @@ -1342,8 +1342,10 @@ class RevisionMixin: ) fix = extracted["fix"] - if fix is None: - log.debug("revision_unslop: no found in response", response=response) + if not fix: + log.debug( + "revision_unslop: no content in response", response=response + ) return original_text # Guard: if the fix is substantially longer than the original,