Skip to content

Uncancellable hanging #529

Description

@SteveSandersonMS

Describe the bug

Pretty often, Copilot CLI gets stuck waiting for or generating a response, e.g.:

Image

I've been waiting for over a minute with no indication of progress (which seems like a bug in its own right), so I press ESC and it goes to:

Image

... but never completes cancellation either, so I have to just ctrl+c to quit the app.

Affected version

0.0.351
Commit: 90770bc

Steps to reproduce the behavior

No response

Expected behavior

Shouldn't take forever to complete its response, but if it does, esc should cancel and make the app able to continue accepting input.

Additional context

No response

Activity

  1. thawkins commented on Nov 11, 2025

    @thawkins

    I have experienced this problem too.

  2. non-stop-dev commented on Nov 11, 2025

    @non-stop-dev

    Same issue here.

    Workaround: Kill terminal, open chat again by using copilot --resume and continue.

  3. EvanBoyle commented on Nov 11, 2025

    @EvanBoyle
    Collaborator

    I have a reliable repro for this now: run sleep 400 via the bash tool

    I believe when we added streaming, we might've forgotten to check the abort signal within those loops. Working on a fix now.

  4. EvanBoyle commented on Nov 11, 2025

    @EvanBoyle
    Collaborator

    Fix incoming.

  5. EvanBoyle commented on Nov 11, 2025

    @EvanBoyle
    Collaborator

    Fix is merged and should go out in the next release. We weren't propagating abort signals to a couple of tools like the bash tool, and not stopping to check them while in the process of iterating over the output stream. In all of my manual tests and repros cancellations are now instantaneous. But please reopen this issue if you aren't seeing that after the next mainline release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions