Term for reference to ambient surroundings when creating a work?
Solution 1:
It can be called authorial intrusion or narrative intrusion, although these terms describe a more general literary device, where the author interrupts the story to say something directly to the reader. I don't know any special terminology for the more specific case where the author says something about what is happening while they are writing.