I think it is better if GH2 can provide more events than we have now, just as Rhinoceros does, like Begin/EndOpenDocument
. It will allow developers to control GH’s behavior better, or append customized data into GH chunk, etc.
By this way, you can even implement hot-fix more quickly. For example, in a EndOpen (but before solution) event, if a plugin detects the document is an autosave before wiring and GH doesn’t exit normally, it can lock the solver temporarily in case of losing responsiveness again.