Y'all are remembering the "hope they remember you" line wrong. Thanos was about to kill Stark at that moment before Strange stopped him. It had nothing to do with the snap. Thanos was telling a respected foe he hoped he would be remembered after his (at the time) imminent death.