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
goose will often appear to hang when it runs something that is an interactive command - would be nice to detect this and either return to the user or have it explore other ways to invoke the tool (via help).
the trick is to know it is hung waiting on user input I think?
The text was updated successfully, but these errors were encountered:
importsubprocessimportselect# Start a subprocess that runs a shell commandprocess=subprocess.Popen(['your_command'], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
# Use select to monitor the process's stdinready_to_read, _, _=select.select([process.stdin], [], [], timeout=1)
ifnotready_to_read:
print("Process is waiting for input or idle.")
else:
print("Process is actively doing something.")
goose will often appear to hang when it runs something that is an interactive command - would be nice to detect this and either return to the user or have it explore other ways to invoke the tool (via help).
the trick is to know it is hung waiting on user input I think?
The text was updated successfully, but these errors were encountered: