Skip to content

Copilot-CLI eats STDIN when it shouldn't #3464

@DrHyde

Description

@DrHyde

Describe the bug

copilot plugin list consumes STDIN when it shouldn't.

Affected version

GitHub Copilot CLI 1.0.51.

Steps to reproduce the behavior

Do this, and then immediately start typing while it sleeps:

sleep 5; echo ok

Whatever you type will - after the command finishes - appear on the next command line. Now do this and again start typing immediately while it sleeps:

sleep 5; copilot plugin list > /dev/null

Whatever you type will not appear on the command line, it gets eaten by copilot.

Expected behavior

copilot plugin list (and other similar commands of course) aren't interactive and so shouldn't read STDIN.

Additional context

Observed on Mac OS 15.7.2.

This is a problem when you run copilot plugin list in a script. I have it in my standard shell startup scripts to prompt me to install my favourite plugins if they're not available.

As a work-around - and this proves that copilot plugin list really doesn't need to read STDIN - you can copilot plugin list < /dev/null.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:input-keyboardKeyboard shortcuts, keybindings, copy/paste, clipboard, mouse, and text inputarea:pluginsPlugin system, marketplace, hooks, skills, extensions, and custom agents

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions