Hanuman realizes his potential twice: first when Jambavan reminds him of his boons during the ocean-crossing mission (Sampurna Ramayana), enabling him to leap to Lanka. Later, after returning from Lanka, when Rama embraces him in gratitude, Hanuman fully understands his devotion and strength. Meeting Sugriva was political alliance, not self-realization. Fighting Vaali happened before his awakening.