This is not the solution:
- When a new human message arrives, append it to the prompt queue.
- When the following entry is an
interrupted command, pop the last timestamp from the prompt queue.
This is because the Detector Agent might have advanced to this interrupted prompt before the interrupt occurs.