Merge branch 'main' into glob-add

This commit is contained in:
Paul Gauthier 2023-07-07 09:10:56 -07:00
commit 033541d01f
5 changed files with 51 additions and 3 deletions

View file

@ -30,7 +30,10 @@ class WholeFileCoder(Coder):
return context
def render_incremental_response(self, final):
return self.update_files(mode="diff")
try:
return self.update_files(mode="diff")
except ValueError:
return self.partial_response_content
def update_files(self, mode="update"):
content = self.partial_response_content