Collision in "Print by Object" Mode During Filament Runout

Hi, I’ve noticed a bug in the software.
When printing in Print by Object mode, a filament runout triggers an incorrect recovery routine.

Currently, the sequence is as follows:

  1. The extruder moves to the chute.

  2. The printer waits for filament replacement.

  3. Problem: The bed is moved to Z=0.

  4. The extruder purges twice into the chute.

  5. The head returns directly to the point where the runout occurred.

This direct travel path causes collisions with already printed objects.

A different approach is needed to handle this scenario to prevent such collisions.