github / github/copilot-cli

Bash tool breaks on NixOS with version >=1.0.49

Đang mở
#3,392 4 bình luận 13 reaction 0 người được giao Xem trên GitHub
area:platform-linux 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

Bash tool breaks on NixOS when updated to version >=1.0.49 (also present on 1.0.50). When the agent tries to run any command, it errors with:
```

```

Running copilot-cli with strace -f gives the following output:
```
[pid 2803] execve("/bin/bash", ["/bin/bash", "--norc", "--noprofile"], 0x5480bd70 /* 75 vars */
```
This seems to be the only relevant syscall related to the tool call.

NixOS does not have `/bin/bash`, only `/bin/sh`.

### Affected version

GitHub Copilot CLI 1.0.50.

### Steps to reproduce the behavior

1. Start a session, tell the agent to run anything in a shell.

### Expected behavior

1. The command gets executed.

### Additional context

_No response_

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.