OpenHands icon indicating copy to clipboard operation
OpenHands copied to clipboard

[Bug]: Deleted Messages

Open reteps opened this issue 1 year ago • 1 comments

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

reteps avatar May 13 '24 14:05 reteps

Did you get the same error in incognito mode?

SmartManoj avatar May 15 '24 06:05 SmartManoj

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.

github-actions[bot] avatar Jun 15 '24 01:06 github-actions[bot]