Just an FYI that I fixing an oversight in the algorithm to load state into a Doenet document. Previously, the algorithm failed to check if the state was saved from the same document and would attempt to load the state regardless. Now, if a change in the document is detected, the state is not loaded.
Without this check, it is possible that loading incompatible state could put the document in an inoperable state, such as moving unmovable objects in a graph so that a student can’t complete the activity.
The downside is that, even if you add an extra space to the document, students will not be able to restore their old state and will start again with the activity in its initial state.
1 Like
This is a great change, but it’s only kind of working within PreTeXt. I can try to take screenshots and narrow it down, but I’ve noticed that simple answer boxes seem to clear when the source has been changed, but not always more complicated ones. For example, I added a prefill to one, and the input box was empty but the green correct was still there. I also added a fixed attribute to the same graph one I brought up before, PA 1-3, the one with the two points which become nondraggable, and now the graph isn’t fully reset again.
I think it’s likely I’m enough ahead of my students that no one will run into an issue though. 
Sorry, I haven’t yet released a new version of DoenetML with this change, so you haven’t experienced it yet.
I’m about to announce this once I get it working on beta.doenet.org, but here’s a preview.
We are automatically publishing a dev version of DoenetML that gets all the new bug fixes/features of DoenetML as soon as they are developed. You have to opt in for it though. (Not yet a way to opt in on beta.doenet.org, so that’s why I haven’t yet announced it.)
In PreTeXt, you can opt in right now. You can add a version="dev" attribute to the <interactive>, which overwrites the default of version="latest" (the latest officially released version). (Alternatively, you can add a <doenetml version="dev" /> in your <docinfo> to change the default to version="dev".)
If you add version="dev" in either of those places, you’ll get the prevention against loading in invalid state and other features, such as coloring input boxes based on the correctness of the answer.
1 Like
We’ve now released a version of DoenetML that should prevent the loading of invalid state. Let me know if you are still seeing problems.