Skip to content

Message history corrupted after aborting an operation that hung #332

@dereklegenzoff

Description

@dereklegenzoff

Describe the bug

Copilot hung while trying to run npx create-next-app.

The issue seems to be that the CLI command returned an error and copilot wasn't able to handle the failure:

The directory llm-games-v2 contains files that could conflict:

IMPLEMENTATION_CHECKLIST.md
SPEC.md

Either try using a new directory name, ore remove the files listed above.

It may have also been that the command required user input to approve installing create-next-app, I'm not 100% sure.

I eventually had to abort the operation and when i tried again, the conversation history was messed up leading to model call failures:

Image

Affected version

0.0.342 Commit: 69ac520

Steps to reproduce the behavior

  1. Create a folder and add files to that folder with content in them
  2. Run copilot
  3. Have it scaffold a next.js app
  4. Abort the operation
  5. Try to resume

I tried to repo from scratch and copilot succeeds in other contexts but failed multiple times trying to do this in the original scenario.

Expected behavior

Ideally Copilot could gracefully handle the failure, show the error to the user, and work around it. It should also be easy to resume the conversation after aborting the failure.

Not seeing the CLI outputs makes it much harder to understand what's going on. Often the output shows "thinking" when it's really waiting for the CLI to finish.

Additional context

No response

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