github / github/copilot-cli

Bash tool breaks on NixOS with version >=1.0.49

未關閉
#3,392 4 則留言 13 個 reaction 已指派 0 人 在 GitHub 檢視
area:platform-linux area:tools
主要語言
Shell
星號
11.2k
分支
1.9k
平均合併
14 小時 16 分鐘
30 天內合併 PR
6

描述

### 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_

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。