-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Make Reconnecting to OpenDevin better when the Session crashes #1778
Comments
I have a similar (eventually the same) problem. It happens when i run into a session timeout. The session seems to be automatically resumed on the server side but upon triggering a resume from the frontend, the backend isn't able to restore the full context again (it seems the dialog is still there but the session is not restarted). @rbren Happy to help to track this down if needed - however i would need some guide on how/wehre to fetch the right logs/debug messages. |
@rbren happy to pick this up if it's fine |
Would love any help on this one! |
Just to add, a short observation:
|
@AnAnalogGuy I also haven't faced a session timeout error. Although I have faced the Message Token Limit error using ChatGPT 3.5 turbo which also crashes the session and its impossible to get into that session after restarting although it has the chat history but the real context is somehow lost or not reloaded properpy. You can try making it write large chunks of code with description to crash it and then see why the reload is not working properly. |
@SourikAdhikary just wanted to check if you were planning on taking a look at this? |
Hi, |
What problem or use case are you trying to solve?
Make Reconnecting to OpenDevin better when the Session crashes
Describe the UX of the solution you'd like
Do you have thoughts on the technical implementation?
Describe alternatives you've considered
Additional context
STEP 27
11:46:42 - opendevin:INFO: codeact_agent.py:270 - Cost: 0.10 USD | Accumulated Cost: 1.88 USD
11:46:42 - ACTION
MessageAction(content='The tetris.js file has been updated to include functionality for the pause button. Please open the index.html file in your web browser again to see the updated functionality.\n\nYou should now see the restart, pause, and stop buttons below the Tetris game. The restart button will reset the game, the pause button will pause and resume the game, and the stop button will stop the game.\n\nIf you encounter any issues or have further requests, please let me know!', wait_for_response=True, action='message')
11:46:42 - opendevin:INFO: agent_controller.py:190 - Setting agent(CodeActAgent) state from AgentState.RUNNING to AgentState.AWAITING_USER_INPUT
INFO: ('172.17.0.1', 34652) - "WebSocket /ws?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzaWQiOiI1ZjA3ZDNmNy00NGYxLTQ5MWQtODVhMy0zNTczOTYxZTJkMTgifQ.Xj-_gxQTFH4jgAdQRKmRlCwCLvcbpbjnvNxkieTnDCs" [accepted]
Starting loop_recv for sid: 5f07d3f7-44f1-491d-85a3-3573961e2d18
11:46:42 - opendevin:INFO: session.py:40 - WebSocket disconnected, sid: 5f07d3f7-44f1-491d-85a3-3573961e2d18
INFO: connection closed
INFO: connection open
INFO: 172.17.0.1:34660 - "GET /api/messages/total HTTP/1.1" 200 OK
Connection lost randomly
now it's stuck like this
The text was updated successfully, but these errors were encountered: