Skip to content

False kill command detections #1800

@liraz747

Description

@liraz747

Describe the bug

A lot of times whenever Copilot runs a command with the word kill in it, it's getting cancelled because the cli thinks it's the kill command that was limited to only to work with it with using a PID, which is good- to avoid copilot accidentally killing itself or wrong processes. However, this is constantly being detected wrong
Some examples:

Image Image

Affected version

0.0.420

Steps to reproduce the behavior

  1. Ask Copilot to execute a command with "kill" in it that isn't the kill command, like killing a tmux session with kill-session, or using adb shell and then inside it running kill with a PID, or adb kill-server
  2. The Copilot CLI will mistake this for a kill command usage and refuse to run it

Expected behavior

To not block any command that has the word kill in it, and for the kill command to not be refused when used in adb shell with a PID

Additional context

OS: macOS 15.7.2
Architecture: arm64
Terminal: iTerm2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions