When did Tolkien determine Gandalf's true nature?
I saw a post yesterday that [Tolkien only belatedly decided to fully integrate the Hobbit into his legendarium](https://www.reddit.com/r/tolkienfans/comments/1r218ew/pardon_my_ignorance_did_tolkien_plan_for_the_lotr/). Was Gandalf originally just a human wizard? Or was Tolkien always cognizant of his divine nature?