There have been posts that asked for this related to bugs but I couldn't find an existing request topic for this.
Problem in my case is that changing controllers also changes the cursor stack but doesn't fire "on_player_cursor_stack_changed".
I ran into this lack of functionality when trying to add compatibility with Space Exploration when going in and out of Satellite View.
on_player_changed_controller event
Re: on_player_changed_controller event
This was added as on_player_controller_changed.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.