Sorry, I gave somewhat misleading information. The
WorkspaceConfig in bagXedit should not "undo" the one in bagX, but instead should just set:
config.defaultCustomFields["server.workspace"] = "bags/bagX";
This will have the effect of accepting the default settings for edit controls display, and make sure that new content is saved back to bagX.