You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the S3FileStore and LocalFileStore classes for session management, it appears that the AgentController._handle_message_action() method is invoked before the class is fully initialized resulting in the below error:
AttributeError: 'AgentController' object has no attribute '_initial_max_iterations'
It is important to note that this only happens during the 2nd request. The first one (when the session is null) works fine. Once the session is not null the error begins to happen. MemoryFileStore does not produce this bug.
From the stack trace (attached), it looks like calls to retrieve session files are happening after the error is already raised.
To note, I am installing OpenHands as a Python package inside my larger application.
Edit: Updated to include that this bug happens for the LocalFileStore class as well.
Is there an existing issue for the same bug?
Describe the bug and reproduction steps
When using the
S3FileStore
andLocalFileStore
classes for session management, it appears that theAgentController._handle_message_action()
method is invoked before the class is fully initialized resulting in the below error:It is important to note that this only happens during the 2nd request. The first one (when the session is null) works fine. Once the session is not null the error begins to happen.
MemoryFileStore
does not produce this bug.From the stack trace (attached), it looks like calls to retrieve session files are happening after the error is already raised.
To note, I am installing OpenHands as a Python package inside my larger application.
Edit: Updated to include that this bug happens for the
LocalFileStore
class as well.OpenHands Installation
Other
OpenHands Version
0.29.1 and 0.30.1 both show the issue
Operating System
Linux
Logs, Errors, Screenshots, and Additional Context
Pseudo Implementation:
Stack Trace:
The text was updated successfully, but these errors were encountered: