Some commands already do this: they save the active file before running the Manim commands. Some commands might not need this, e.g. when they operate on clipboard content. But see point 2. in this comment, why we might need this in other places as well.