-
Notifications
You must be signed in to change notification settings - Fork 5k
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]: Very longs commands execution in terminal on macos #6218
Comments
I believe with the new changes, you can send Yes / No to the question for interactive prompts. |
Oh my apologies. In the new changes, this happens automatically. I just saw it happen in one of my runs. If you leave it running does it automatically send Yes to the terminal at all? |
Yes, eventually it will send "yes" but it's not effective due to terminal timeout |
Hmmmm in my case it was able to continue but yours looks like it behaved differently? |
I also just noticed this error, and I'm also on mac. I'm not sure if it's related to the OpenHands branch I'm in, but I noticed this while testing out #5284 using CLI mode:
|
I also just noticed this in "headless" mode. Is this where to increase the timeout? OpenHands/config.template.toml Line 239 in b9a70c8
|
I think that timeout is defined in Or, if you run with |
I think there may be a regression somewhere. Several people bringing up issues with running commands: |
@mamoodi I agree. This should be escalated! Things that used to take a second are taking minutes. Something simple like this Running a bash command |
I've recently been using Docker run to start my session and that's where I've been having the problems. I switched to using make build and make run and it seems like it's not happening there. I hope that gives a clue to what's going on |
Agreed @amirshawn . The team is looking into it actively right now. |
Hey all I think we have some understanding on this now. For now you can use 0.18 version as that doesn't seem to have the issue. |
Hey folks. There's been a PR with some potential fixes. Can you all try to see if you're still seeing the same issue very frequently please? And let me know when you run into it. Either by sharing logs or pressing the thumbs down and sharing the link if you can. I've been testing it a bit. Using |
There's been some improvements in this area in 0.21. However, don't believe it's 100% fixed. Let me know if you all are seeing better/worse/same results if you happen to see this. |
@mamoodi I can confirm there's been huge improvement. Still no 100% but much much better. To me it seems like what seems to make it stall now is the error from anthropic about reaching it's minute token limit. It seems to make it stall and then it doesn't restart every time. If I respond ok, it gets it going again. |
Is there an existing issue for the same bug?
Describe the bug and reproduction steps
There is a significant delay in commands execution which are run in openhands terminal.
This leads to errors like this:
[The command timed out after 120 seconds. You may wait longer to see additional output by sending empty command '', send other commands to interact with the current process, or send keys to interrupt/kill the command.]
--END AGENT OBSERVATION--
Running commands directly via docker exec does not cause any delays and work normally.
Manual commands execution pose the same significant delays in commands execution.
OpenHands Installation
Docker command in README
OpenHands Version
0.19
Operating System
MacOS
Logs, Errors, Screenshots, and Additional Context
11:03:20 - ACTION
[Agent Controller 732999583fee427caaf06cf09e3b9196] CmdRunAction (source=EventSource.AGENT)
COMMAND:
y
11:05:20 - OBSERVATION
[Agent Controller 732999583fee427caaf06cf09e3b9196] CmdOutputObservation (source=EventSource.AGENT, exit code=-1, metadata={
"exit_code": -1,
"pid": -1,
"username": null,
"hostname": null,
"working_dir": null,
"py_interpreter_path": null,
"prefix": "[Command output continued from previous command]\n",
"suffix": "\n[The command timed out after 120 seconds. You may wait longer to see additional output by sending empty command '', send other commands to interact with the current process, or send keys to interrupt/kill the command.]"
})
--BEGIN AGENT OBSERVATION--
[Command output continued from previous command]
RangeError: Incorrect locale information provided
Vue.js - The Progressive JavaScript Framework
? Add TypeScript? › No / Yes
[The command timed out after 120 seconds. You may wait longer to see additional output by sending empty command '', send other commands to interact with the current process, or send keys to interrupt/kill the command.]
--END AGENT OBSERVATION--
The text was updated successfully, but these errors were encountered: