Bug Report: Terminal Command Execution Hangs on Complex Commands
Title: Terminal Command Execution Hangs on Complex Commands While Simple Commands Work Fine
Description:
When executing terminal commands through run_terminal_cmd
, the assistant gets stuck in a waiting state specifically for complex commands (like package installations, long-running processes), while simple commands (like ls
, pwd
) execute successfully.
Steps to Reproduce:
- Execute a complex command (e.g.,
pip install -r requirements.txt
) - Observe the command starting to execute in the chat
- Notice the assistant hanging in a waiting state
- The command output is partially visible but never completes
Expected Behavior:
- Command should execute completely
- Results should be returned to the assistant
- Assistant should continue normal operation
Actual Behavior:
- Command starts executing
- Assistant hangs in waiting state
- No completion or error message is received
- Session remains in suspended state
Workaround:
The issue can be temporarily resolved by user interaction:
- Clicking the “popout” button in the chat
- Clicking the “cancel” button
- Clicking the “focus” button
Additional Notes:
- Simple commands (e.g.,
ls
,pwd
,echo
) execute normally - Complex commands that typically hang:
- Package installations (
pip install
) - Long-running processes
- Commands with significant output
- Commands requiring user interaction
- Package installations (
Environment:
- Shell: /bin/bash
- Workspace: vscode-remote://ssh-remote… | Ubuntu 24.04.1 LTS (Noble Numbat)
Version: 0.48.6 (user setup)
VSCode Version: 1.96.2
Commit: 1649e229afdef8fd1d18ea173f063563f1e722e0
Date: 2025-03-31T05:21:50.407Z
Electron: 34.3.4
Chromium: 132.0.6834.210
Node.js: 20.18.3
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.26100
Thanks!