Bash tool breaks on NixOS with version >=1.0.49
- 主要语言
- 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_
贡献指南
调研方向
Reproduce the failure on NixOS by starting a session and asking the agent to run a shell command, then inspect the Bash tool's process-launch entry point. Use the reported strace execve call as the starting clue; done means shell commands execute successfully on NixOS versions 1.0.49 and later without the missing /bin/bash failure.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- bash, nixos
- 领域
- cli, operating-systems
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 58/100