github / github/copilot-cli

Copilot CLI hangs on sudo commands -- does not prompt for password

Đang mở
#1,082 3 bình luận 12 reaction 0 người được giao Xem trên GitHub
area:tools
Ngôn ngữ chính
Shell
Star
11.2k
Fork
1.9k
Merge trung bình
14 giờ 16 phút
Pull request đã merge (30 ngày)
6

Mô tả

### Describe the bug

When running commands that require `sudo` privileges (e.g., installing packages), Copilot CLI hangs indefinitely and does not prompt the user to enter their password. This makes it impossible to complete tasks that require elevated permissions.

### Affected version

0.0.392 - cefb35e

### Steps to reproduce the behavior

1. Launch Copilot CLI.
2. tell copilot to Run a command that requires `sudo`, such as:
```bash
sudo apt install curl
```

### Expected behavior

Copilot CLI should detect the password prompt and allow the user to input their password interactively.

**Actual Behavior:**
The CLI hangs indefinitely without displaying the password prompt or accepting input.

### Additional context

I'm using GPT5.2 Codex Max
---
- OS: debian 13
- Shell: bash 5.2.37(1)-release
- Terminal: Kitty 0.41.1
- Copilot CLI version: 0.0.392
- Copilot CLI Commit: cefb35e
- Node.js version : v24.12.0

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.