The new logic checks if the `latestAttempt`'s executor matches your configured default executor. If it does, it applies your configured variant (e.g. `VARIANT1`) instead of defaulting to `null`. If the executors differ, it safely falls back to the default variant.
This ensures that when you create a new attempt on a task where you previously used your preferred agent, your preferred variant is now correctly pre-selected.