OpenHands
OpenHands copied to clipboard
[Bug]: Deleted Messages
Is there an existing issue for the same bug?
- [X] I have checked the troubleshooting document at https://opendevin.github.io/OpenDevin/modules/usage/troubleshooting
- [X] I have checked the existing issues.
Describe the bug
10:12:30 - opendevin:INFO: msg_stack.py:95 - Deleting messages...
ERROR:asyncio:Task exception was never retrieved
future: <Task finished name='Task-29' coro=<MessageStack._del_messages() done, defined at /Users/retep/repos/devin-test/OpenDevin/opendevin/server/session/msg_stack.py:94> exception=AttributeError("'dict' object has no attribute 'to_dict'")>
Traceback (most recent call last):
File "/Users/retep/repos/devin-test/OpenDevin/opendevin/server/session/msg_stack.py", line 102, in _del_messages
new_data[sid] = [msg.to_dict() for msg in msgs]
^^^^^^^^^^^
AttributeError: 'dict' object has no attribute 'to_dict'
fix:
new_data[sid] = [msg if type(msg) is dict else msg.to_dict() for msg in msgs]
Current Version
main branch, build from source
Installation and Configuration
ollama
Model and Agent
No response
Reproduction Steps
No response
Logs, Errors, Screenshots, and Additional Context
No response
Did you get the same error in incognito mode?
This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.