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)