@nedbat The problem with my current code is that the user is forced to open the Studio Edit window and click *save*. Otherwise, the uuid is not generated and the xblock will use "None" as thread id.