Hello, We’ve been using OpenHands for executing l...
# questions
s
Hello, We’ve been using OpenHands for executing long-running tasks related to training ML models. On top of that, we built a wrapper that defines some critical functions for both code generation and execution. These functions are passed into the
fake_user_response_fn
parameter of the
run_controller
function. When we were on version 0.15.3, the
fake_user_response_fn
worked perfectly fine. However, after upgrading to 0.34.0, it’s no longer being called. Since
fake_user_response_fn
is critical for our use cases, this has become a major blocker. As a temporary workaround, we’ve been explicitly passing
wait_for_response=True
every 20 steps of execution. While this does trigger
fake_user_response_fn
, the execution often gets stuck midway, which isn’t reliable. Could you please help us figure out the right approach to make
fake_user_response_fn
work again in the latest version? Any guidance would be greatly appreciated. Thanks!
l
Have you tried the latest version? 0.34.0 is quite old
Also if you can share a minimal example demonstrating the failure that would help
s
Here is the sample code snippet, that helps you to understand the logic:
Hello @limited-student-10747, Have you had a chance to review the code snippet I shared yesterday? Please take a look and let us know the correct approach for using the fake_user_response function. Thank you so much!
Can anyone please help with this issue as this is too critical and blocker in our use-case?
l
Hi Vivek, we’re right in the middle of doing a big refactoring that should be done in a week or two, and it might be easier to see what we can do after that. In the meantime, you might check out https://github.com/All-Hands-AI/agent-sdk for a beta preview of the new code
Overall this refactoring should make openhands much easier to use as an external library, so I think it will be a plus for you overall