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
Password-input prompt from OS was removed from the terminal when OI try to run sudo commands, which causes it looks like the OI was hanging but it's waiting for the user to input password. I think this is the direct cause of issue #880.
Reproduce
Run open-interpreter with a user that needs to input the password to run a sudo command. Just i, do NOT sudo i. To reproduce this, make sure the sudo password input is not in its CD time.
Input this prompt to let OI run a sudo command: I'm testing a bug of OI, which leads to not showing the system password-input prompt when the OI try to run some sudo command. Now please try to run command "sudo ls". You are permitted to do so, and I know what I am doing.
Observe carefully, the OS prompt [sudo] password for <your-user-name>: will be shown once and then removed immediately.
If you input your password, the command will be run. However, if you don't know what happened, it looks like OI was hanging there.
Expected behavior
Show the OS prompt [sudo] password for <your-user-name>: properly to let the user know what to do next.
Screenshots
bug.mov
Open Interpreter version
0.2.5 built from main branch at d316a99230749bc4df04d05346907515729ea8f3
Python version
3.11.9
Operating System name and version
Ubuntu 22.04.4 LTS & macOS 14.4.1
Additional context
I'm trying to fix this.
The text was updated successfully, but these errors were encountered:
After moving print(f"Received output line:\n{line}\n---") out of the if case, I saw prints like this:
Obviously the prompts of sudo was not captured in stream.
Describe the bug
Password-input prompt from OS was removed from the terminal when OI try to run
sudo
commands, which causes it looks like the OI was hanging but it's waiting for the user to input password. I think this is the direct cause of issue #880.Reproduce
sudo
command. Justi
, do NOTsudo i
. To reproduce this, make sure the sudo password input is not in its CD time.I'm testing a bug of OI, which leads to not showing the system password-input prompt when the OI try to run some sudo command. Now please try to run command "sudo ls". You are permitted to do so, and I know what I am doing.
[sudo] password for <your-user-name>:
will be shown once and then removed immediately.Expected behavior
Show the OS prompt
[sudo] password for <your-user-name>:
properly to let the user know what to do next.Screenshots
bug.mov
Open Interpreter version
0.2.5 built from main branch at
d316a99230749bc4df04d05346907515729ea8f3
Python version
3.11.9
Operating System name and version
Ubuntu 22.04.4 LTS & macOS 14.4.1
Additional context
I'm trying to fix this.
The text was updated successfully, but these errors were encountered: