Merge "Remove task snapshot once the task is move to front." into main