InAnYan / jabref

Graphical Java application for managing BibTeX and biblatex (.bib) databases
https://devdocs.jabref.org
MIT License
0 stars 0 forks source link

Add "Cancel" button to cancel inference (generation) #138

Open ThiloteE opened 3 months ago

ThiloteE commented 3 months ago

Add cancel button in AI summary and AI chat tabs. Only show the cancel button, while the user is waiting for a response. image

It is disputed, if the cancel button should delete the last message upon canceling and if there should be a distinction between "normal" response and "error message" response, how and where error messages could be stored and if there should be consistency between what is shown to the user in the UI and stored chat history.

See major discussion at https://github.com/InAnYan/jabref/issues/118#issuecomment-2277289037

InAnYan commented 3 months ago

:cry: this asynchronous programming and how to properly shutdown a thread are so hard...

Need to think, this is a good feature