fix: replace fragile SSH session prompt detection with marker-based sync (#30)