Skip to content

Bash tool breaks on NixOS with version >=1.0.49 #3392

@CircuitCoder

Description

@CircuitCoder

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:

<exited with error: Failed to start bash process>

Running copilot-cli with strace -f gives the following output:

[pid  2803] execve("/bin/bash", ["/bin/bash", "--norc", "--noprofile"], 0x5480bd70 /* 75 vars */ <unfinished ...>

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:platform-linuxLinux-specific: Wayland, X11, Ubuntu, Fedora, Alpine, ARM, terminal emulatorsarea:toolsBuilt-in tools: file editing, shell, search, LSP, git, and tool call behavior

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions