thanks so much for looking at this mohammad!
i’ve uploaded the files (after following your procedure above) and making sure to tick all the state tiddlers during the import
source: http://makiaea.org/00045/20210120makiaea.html
after drag-drop import to 5.2.2 empty.html: http://makiaea.org/00045/20220509test.html
unfortunately it shows the same behaviour:
e.g. for the tiddler
spices
there actually exists two(!) state tiddlers of the same title(please see below), one containing open and one containing closed (since i manually closed it after import for testing) named:
$:/state/section-editor/foldstate/spices/1
it seems like the updated tiddlywiki only respects newly created state tiddlers (even creating them with the same name as existing imported state tiddlers if they “already exist”)?
i did try searching talk.tiddlywiki and the gg forum for state tiddler import etc but couldn’t surface anything suitable – maybe importing state tiddlers just doesn’t import the right hash somehow? i tried Keeping track of fields. What are best practises? but don’t know enough to implement it yet
i’ve had a look at https://tiddlywiki.com/#StateMechanism but can’t see from the normal user interface where to find the hash it talks about; examining the two “identical” state tiddlers’ info, fields etc doesn’t show anything obvious – i’m guessing that’s where the problem is?
i.e. maybe the imported state tiddler has a mismatched hash somewhere in a hidden field, so it is not applied; and only a newly created state tiddler has the correct hash
ps i have command palette installed on both wikis so ctrl-p for search works if you want to use it