refactor: Simplify reasoning tag replacement in live_incremental_response method

This commit is contained in:
Paul Gauthier 2025-03-07 15:59:02 -08:00 committed by Paul Gauthier (aider)
parent 1585c6095e
commit b58f879db7

View file

@ -1843,9 +1843,7 @@ class Coder:
def live_incremental_response(self, final):
show_resp = self.render_incremental_response(final)
# Apply any reasoning tag formatting
if self.got_reasoning_content:
show_resp = self.replace_reasoning_tags(show_resp, REASONING_TAG)
show_resp = self.replace_reasoning_tags(show_resp, REASONING_TAG)
self.mdstream.update(show_resp, final=final)
def render_incremental_response(self, final):