Skip to content

Approval prompts appear out of order when multiple commands are waiting #409

@lucas-ar0

Description

@lucas-ar0

Describe the bug

When Copilot CLI suggests multiple commands that require user approval, they sometimes appear out of order, the second command is shown before the first one.

Affected version

0.0.351 Commit: 90770bc

Steps to reproduce the behavior

For example, if Copilot suggests to:

  • Delete a folder or file

  • Then check TypeScript results or verify the deletion

the second command sometimes appears first in the approval list, executes prematurely, and sometimes it make the first one fail with a “command already running” error.

Image

In the example in the image, the typecheck appeared before the other commands, making the second command fail when allowed.

Expected behavior

Commands that require approval should appear in the same order, ensuring proper sequential execution (first delete, then verify).

Additional context

  • Model used: Claude Sonnet 4.5

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