Riku felt a little sad when Sora pulled away, and even sadder when he told him to leave, but he knew it was the hurt talking, not Sora.
And when Sora didn't physically MAKE him leave, Riku simply stayed. He hadn't SAID anything, so Sora couldn't be annoyed with his talking. He hadn't tried to to convince Sora that he needed to stop mourning. He hadn't overly cuddled Sora either. He might as well be a big puppy dog come to keep Sora company, and even had a sad puppy look in his eyes incase Sora turned around.