For OpenHands, the behavior can change w/ your prompt: if you tell it "DO X", it will try to spend some effort in "X" and get back to you in like 30 sec.
But for harder problems, you can say smth like "Do X, but don't get back to me UNTIL YOU {pass certain condition}', the condition can be "passing test cases", etc.
(i yelled at it yesterday and it works quite well 😅)