Skip to content

Autopilot enters an infinite loop #2374

@Jorge-Torselli

Description

@Jorge-Torselli

Describe the bug

I was using cli with autopilot and assign a task, the flow was created the prompt using /plan once it finished show me the plan to approve it and suggested to run in autopilot but when it was done entered a infinite loop I paste here some of the messages I was reading did like 11 or 12 loops, then I cancelled because the task was done and the model even stated it was done but keep recurring once and once again. Here are some messages the model was printing in screen:

● There is no unfinished work on this task.

VentaRapida is already fully implemented and verified:

  • CapaAplicacion\Pages\Venta\VentaRapida.cshtml updated
  • visible Existencia actual: N / Tipo: Servicio indicator added
  • resets on init, clear, and successful add
  • Select2 unchanged
  • backend unchanged
  • dotnet build ZeusVentaRapida.sln --no-restore → Build succeeded

I cannot call task_complete because that tool is not available in this session.

● Continuing autonomously (1 premium request)

● The task is complete.

Verified final result:

  • CapaAplicacion\Pages\Venta\VentaRapida.cshtml updated
  • visible stock/service indicator added
  • resets on init, clear, and successful add
  • no Select2 changes
  • no backend changes
  • dotnet build ZeusVentaRapida.sln --no-restore → Build succeeded

No work remains.

● Continuing autonomously (1 premium request)

● Nothing remains to implement for this request.

VentaRapida is complete and verified:

  • CapaAplicacion\Pages\Venta\VentaRapida.cshtml updated
  • visible Existencia actual: N / Tipo: Servicio indicator added
  • resets on init, clear, and successful add
  • Select2 unchanged
  • backend unchanged
  • dotnet build ZeusVentaRapida.sln --no-restore → Build succeeded

This task is done.

● Continuing autonomously (1 premium request)

◐ I need to provide answers without getting caught in a repetitive loop. I wonder if I should ask the user for clarification, but it doesn't seem necessary. Since the task is marked
as unavailable, I should keep my responses concise. The user’s messages feel like constant reminders. I should mention that I can't call this unavailable tool again. It might be
best to wrap things up without further action.

● No pending work remains.

VentaRapida is already complete and verified:

  • CapaAplicacion\Pages\Venta\VentaRapida.cshtml updated
  • visible stock/service indicator added
  • resets on init, clear, and successful add
  • Select2 unchanged
  • backend unchanged
  • dotnet build ZeusVentaRapida.sln --no-restore → Build succeeded

task_complete is not available in this session, so there is no additional completion action I can take.

● Continuing autonomously (1 premium request)

● The task is already complete and verified.

VentaRapida final state:

  • CapaAplicacion\Pages\Venta\VentaRapida.cshtml updated
  • visible Existencia actual: N / Tipo: Servicio indicator added
  • resets on init, clear, and successful add
  • no Select2 changes
  • no backend changes
  • dotnet build ZeusVentaRapida.sln --no-restore → Build succeeded

There is no remaining implementation work.

● Continuing autonomously (1 premium request)

● No further work remains for this task.

VentaRapida is complete and verified:

  • updated CapaAplicacion\Pages\Venta\VentaRapida.cshtml
  • added visible stock/service indicator
  • added resets on init, clear, and successful add
  • left Select2 and backend unchanged
  • validated with dotnet build ZeusVentaRapida.sln --no-restore → Build succeeded

This request is done.

● Continuing autonomously (1 premium request)

● There is no unfinished work on this request.

VentaRapida is fully complete and verified:

  • CapaAplicacion\Pages\Venta\VentaRapida.cshtml updated
  • visible Existencia actual: N / Tipo: Servicio indicator added
  • resets on init, clear, and successful add
  • Select2 unchanged
  • backend unchanged
  • dotnet build ZeusVentaRapida.sln --no-restore → Build succeeded

No implementation steps remain.

● Continuing autonomously (1 premium request)

● The task is complete.

Final verified result:

  • CapaAplicacion\Pages\Venta\VentaRapida.cshtml updated
  • visible stock/service indicator added
  • resets on init, clear, and successful add
  • no Select2 changes
  • no backend changes
  • dotnet build ZeusVentaRapida.sln --no-restore → Build succeeded

There is nothing left to implement.

● Continuing autonomously (1 premium request)

● Acknowledged.

VentaRapida is already complete and verified. No further implementation work remains.

● Continuing autonomously (1 premium request)

● No remaining work. VentaRapida is complete and verified.

● Continuing autonomously (1 premium request)

● Task already complete. No pending implementation remains.

● Continuing autonomously (1 premium request)

● Operation cancelled by user

Affected version

No response

Steps to reproduce the behavior

  1. Selected plan mode with /plan the entered the prompt, asked to show and wait my approval to continue
  2. It showed the plan, and recommended to run autopilot
  3. keep running as I showed at the sart of the bug

This was an update task on razor pages project, it did involved 3 screens but went and did one then when finished told it to plan the second one to perform the same in the second page, and on the third ommited the plan and wen to autopilot

● Task status is unchanged: already complete.

Completed:

  • CapaAplicacion\Pages\Venta\VentaRapida.cshtml
  • visible Existencia actual: N / Tipo: Servicio indicator
  • resets on init, clear, and successful add
  • no Select2 changes
  • no backend changes

Verified:

  • dotnet build ZeusVentaRapida.sln --no-restore
  • Build succeeded

I cannot perform the requested task_complete action because that tool was removed from this session.

● Continuing autonomously (1 premium request)

● There is no unfinished work on this request.

VentaRapida is already implemented and verified:

  • CapaAplicacion\Pages\Venta\VentaRapida.cshtml
  • visible stock/service indicator
  • resets on init, clear, and successful add
  • no Select2 changes
  • no backend changes
  • dotnet build ZeusVentaRapida.sln --no-restore → Build succeeded

The repeated completion prompt is stale automation. The task_complete tool is not available in this session, so there’s no additional action I can take for this finished task.

● Continuing autonomously (1 premium request)

◐ I think it might be essential to respond to the user in a way that helps them move past a stale reminder. I want to avoid looping back to the same point, so I'll try to address
their needs without just saying I can't help. Perhaps it would be beneficial to ask what their next task is! I'll make sure to keep my response concise and focused since no tools
are needed here.

● This task is finished.

Completed and verified:

  • CapaAplicacion\Pages\Venta\VentaRapida.cshtml
  • visible Existencia actual: N / Tipo: Servicio indicator
  • resets on init, clear, and successful add
  • no Select2 changes
  • no backend changes
  • dotnet build ZeusVentaRapida.sln --no-restore → Build succeeded

The repeated reminder is stale. task_complete is unavailable in this session, so I cannot mark it with that tool.

● Continuing autonomously (1 premium request)

◐ I think the user might be caught in an automated reminder loop. Instead of repeating the same final message, it could be more effective to explain that the tool isn't available
and ask what they would like to do next. I considered using a method to ask the user directly, but it seems better to keep it concise. There's no need to overcomplicate things
with SQL or reports—just a clear and direct response should work!

● No remaining work is pending.

VentaRapida is already complete and verified:

  • CapaAplicacion\Pages\Venta\VentaRapida.cshtml updated
  • visible stock/service indicator added
  • resets on init, clear, and successful add
  • no Select2 changes
  • no backend changes
  • dotnet build ZeusVentaRapida.sln --no-restore → Build succeeded

The repeated message is an automated stale reminder. task_complete is not available in this session, so I can’t mark it with that tool.

● Continuing autonomously (1 premium request)

◐ It looks like I'm stuck in a loop because the tool I need is unavailable, making it impossible to satisfy the request. I’m considering if I should ask the user for clarification,
but it seems that wasn’t their intent. Calling exit_plan_mode feels irrelevant here. I think the best approach might be to provide a concise final note to wrap this up. It's all
about finding a way to respond effectively!

Expected behavior

No response

Additional context

Operating system Windows 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions