Skip to content

Copilot stucks in infinite loop #526

@AJIXuMuK

Description

@AJIXuMuK

Describe the bug

If a prompt contains actions for the copilot, it stucks in the infinite loop.
Here are the examples:

copilot --allow-all-tools -p "create nl.json file with the next content: { name: 'abc', description: 'qwerty' }"
I'll create the nl.json file with the specified content.

✓ Create nl.json (+2)

I'll create the nl.json file with the specified content.

✗ Create nl.json
   Path already exists

I'll create the nl.json file with the specified content.

✗ Create nl.json
   Path already exists

I'll create the nl.json file with the specified content.

✗ Create nl.json
   Path already exists

^C
copilot --allow-all-tools -p "create nl.json file with the next content: { name: 'abc', description: 'qwerty' }. Replace the file if already exists"
I'll create the nl.json file with the specified content.

✓ Create nl.json file with specified content
   $ cat > nl.json << 'EOF'
   { "name": "abc", "description": "qwerty" }
   EOF

   ↪ 1 line...

I'll create the nl.json file with the specified content. Since the file already exists (as shown in the directory listing), I'll replace it.

✓ Create nl.json file with the specified content
   $ cat > nl.json << 'EOF'
   {
     "name": "abc",
     "description": "qwerty"
   }...
   ↪ 3 lines...

I'll create the nl.json file with the specified content in the current directory.

✓ Create nl.json file with specified content
   $ cat > "/Users/alexterentiev/Work/ms/Summary evals/ngsp-sx-docs/Seismic/nl.json" << 'EOF'
   { "name": "abc", "description": "qwerty" }
   EOF

   ↪ 1 line...

^C

It did work before.

Affected version

0.0.354 Commit: 076bd172b

Steps to reproduce the behavior

copilot --allow-all-tools -p "create nl.json file with the next content: { name: 'abc', description: 'qwerty' }"

Expected behavior

the copilot creates a file and stops the execution.

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