Has anyone had any issues where the Agent gets stu...
# questions
a
Has anyone had any issues where the Agent gets stuck on a specific command and is unable to interrupt it?
The terminal session is blocked and won't accept new commands until the stuck process is terminated.
Docker pulll process has been hanging for several minutes and is not responding to interrupt signals (Ctrl+C, Ctrl+Z, Ctrl+D).
I end up having to kill the entire conversation to continue
l
Yeah, unfortunately that happens. I’m working on a fix here: https://github.com/All-Hands-AI/OpenHands/pull/9812
a
Oh nice! That'll be handy 😄
Thank you - glad it's not just me ;x
Some extra info I gained today @limited-student-10747
Copy code
The Problem
Persistent Shell Session: The execute_bash tool maintains a persistent shell session across commands, which is normally beneficial for maintaining environment variables and working directory state.

Hanging Process: When I initially ran docker-compose up -d, that process started but never completed or returned control to the shell prompt. It's likely stuck trying to pull Docker images from the private registry or waiting for some other operation.

Shell Blocking: Because the shell is waiting for the docker-compose process to complete, it won't accept new commands. The shell prompt is not available.

Why Standard Termination Methods Aren't Working
Ctrl+C (SIGINT): Should normally interrupt a running process, but the process may be ignoring this signal or it's not reaching the process properly
Ctrl+Z (SIGTSTP): Should suspend the process, but again, it's not responding
Ctrl+D (EOF): Sends end-of-file, but the process isn't reading from stdin in a way that would respond to this
Copy code
The fundamental issue is that I'm working within a constrained environment where:

I can only interact with the current shell session
The shell session is blocked by the hanging process
I don't have access to a separate terminal or process manager to kill the process from outside
The process isn't responding to standard termination signals
This is why the system eventually crashed and restarted - it's the only way to break out of this deadlock situation when a process becomes completely unresponsive within the persistent shell session.
l
Thanks! Sorry that I’m working on this a bit slowly, but we have a couple PRs open, one by me and one by another community member: https://github.com/All-Hands-AI/OpenHands/pull/9835 I’ll try to get one of these merged soon
a
No rush! Just providing any information I can 🙂