What can possibly go wrong when calling a modal?

I know calling modals can be tricky in TW…but how can this button in the AI-thread in the sidebar crash a wiki so that a)it does not open and b) scrolling the storyriver is dead afterwards?

<$navigator story="$:/StoryList" history="$:/HistoryList">
<$button class="tc-btn-boxed threadbutton">
<$action-setfield $tiddler="$:/state/ki-adapter/save-source" text={{!!title}} />
 {{$:/core/images/clone-button}} <$text text=<<futureTitle>>/>
<$action-sendmessage $message="tm-modal" $param="$:/plugins/JJ/ai-adapter/ui/save-modal"/>
 </$button>
</$navigator>

I included a testset with an ai-created tiddler. Enter any string for a key in the ai sidebar to see the thread
$__plugins_JJ_ai-adapter_NEWMODAL_and_Testtiddler.json (75.7 KB)

Doinig some tests it seems to be this in the content of the Modals that is critical:

<$list filter="[{$:/state/ki-adapter/save-source}]" template="$:/core/ui/EditTemplate/body"/>
And it is causing problems only during opening the Modal- afterwards it works fine.