Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Deleted Messages #1758

Open
2 tasks done
reteps opened this issue May 13, 2024 · 1 comment
Open
2 tasks done

[Bug]: Deleted Messages #1758

reteps opened this issue May 13, 2024 · 1 comment
Labels
bug Something isn't working severity:medium Problems that affect many users

Comments

@reteps
Copy link
Contributor

reteps commented May 13, 2024

Is there an existing issue for the same bug?

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 reteps added the bug Something isn't working label May 13, 2024
@rbren rbren added the severity:medium Problems that affect many users label May 14, 2024
@SmartManoj
Copy link
Collaborator

Did you get the same error in incognito mode?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working severity:medium Problems that affect many users
Projects
None yet
Development

No branches or pull requests

3 participants