Agent keeps checking on old tasks

When performing multiple task, agent will be working on a task and then randomly pulling in other tasks, its always the same task #1-6, Then proceed to check and verify the implementation of those task, which they are already done and thus puts the current tasks in waiting.

For example - a task it is currently working on -
Let me analyze the task:

  1. PM Schedules (pm-schedules.tsx): No location filter at all. Need to add location filter UI + URL param + primaryLocationId defaulting. Also need to check/add backend support.

  2. Fuel Log (fuel-log.tsx): Has location filter but defaults to "__all__" instead of primaryLocationId. Need to initialize to primaryLocationId using standard pattern.

  3. Purchase Orders (purchase-orders.tsx): Already uses locationFilterInitialized ref + local state - already has the right behavior! Just needs to be refactored to useFilterParams pattern.

  4. Requisitions (requisitions.tsx): Same situation as POs - has the behavior but needs the refactoring.

what I get back - Let me first check the PM Schedule schema and backend route before implementing:

Then it goes into verifying and working tasks 1-6 which I have explicitly told it to mark complete, have verified the task board that they are marked complete. The headache is that it will add or change a feature we have discussed in later tasks like this Ass Line Button. I later task, and I mean way later tasks I have changed how I want this feature to be and the position of it.

Any help on how to get the agent to stop? I wouldn’t care so much if it didn’t cost money. Once for it going rouge and then again for me to have it fix it.

Best bet is to start a fresh chat to clear the context. Once it pulls in old tasks like that, it usually won’t recover in the same session.

1 Like

I have exactly the same issue but it’s with Tasks “1-3” which have been redundant for months now. The problem is it also derails other work, so it’ll get 50% through a series of tasks and then abandon them and start working on Tasks 1-3. It’s super frustrating and reduces confidence.

If I start a new chat will it be seamless in terms of picking up where we left off, or might it forget some useful things?

I started a new chat and so far it seems to help. I have yet to notice any issue with it not knowing where it left off. Before I started a new chat it had finished a task that was planned and then included the 6 task. Completed task 1234 + session task 1-6. Im not sure if session is a key in finding the bug or not but starting a new chat has seemed to help. Only issue is you wont have the previous chats messages or info.

1 Like