Mastering Agent Replanning Mechanisms: A Deep Dive