This commit is contained in:
Paul Gauthier 2025-02-05 13:02:16 -08:00
parent 0d24d75d8f
commit cdd150be42

View file

@ -146,12 +146,11 @@ class Coder:
if edit_format != from_coder.edit_format and done_messages and summarize_from_coder:
try:
done_messages = from_coder.summarizer.summarize_all(done_messages)
except ValueError as e:
except ValueError:
# If summarization fails, keep the original messages and warn the user
io.tool_warning(
"Chat history summarization failed, continuing with full history"
)
io.tool_warning(str(e))
# Bring along context from the old Coder
update = dict(