Просмотр исходного кода

Fix/attribute error (#1812)

* refactor : delete useless messages.json messages

* Update msg_stack.py

* Update msg_stack.py

* buf fix #1809
AttributeError

* buf fix #1809
AttributeError

---------

Co-authored-by: mengziyi.mzy <mengziyi.mzy@alibaba-inc.com>
Co-authored-by: Yufan Song <33971064+yufansong@users.noreply.github.com>
mzyddd 1 год назад
Родитель
Сommit
6cce9c3c28
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      opendevin/server/session/msg_stack.py

+ 1 - 1
opendevin/server/session/msg_stack.py

@@ -99,7 +99,7 @@ class MessageStack:
                 new_data = {}
                 new_data = {}
                 for sid, msgs in data.items():
                 for sid, msgs in data.items():
                     if sid != del_sid:
                     if sid != del_sid:
-                        new_data[sid] = msgs
+                        new_data[sid] = [Message.from_dict(msg) for msg in msgs]
                 # Move the file pointer to the beginning of the file to overwrite the original contents
                 # Move the file pointer to the beginning of the file to overwrite the original contents
                 file.seek(0)
                 file.seek(0)
                 # clean previous content
                 # clean previous content