After approving an agent task that runs terminal commands, the task gets stuck indefinitely. The UI shows the task as running, but it never completes.
Steps to Reproduce
-
Start an agent task that runs terminal commands.
-
Approve the command execution.
-
The task begins running.
-
It never completes and remains visible in the UI.
Observed Behavior
-
The approved task remains stuck in “Agent is running terminal commands.”
-
Spinner continues indefinitely.
-
Another task appears as “pending” but:
-
Cannot be stopped.
-
No visibility into what it is executing.
-
-
When opening a new task or even a different project, terminal commands do not execute.
-
The terminal panel stays visible forever with no output or completion.
Expected Behavior
-
Approved terminal commands should execute and complete normally.
-
Pending tasks should be cancellable.
-
Terminal execution should work independently per project/session.
-
No global blocking caused by an earlier task.
Additional Notes
-
It appears that a previously started task may still be running in the background and blocking new executions. (not sure)
-
There is no visible way to purge, kill, or reset stuck tasks.
-
Restarting the UI does not resolve the issue.
Questions
-
Is there a known issue with stuck background agent processes?
-
Is there a way to purge or kill all running/pending tasks?
-
Is there a way to fully reset the agent runtime environment?
