Closed julien-nc closed 10 months ago
Awesome. The task would be nice as we maintain the list of tasks as local state in text, so we could update that right away.
Done.
One little detail: If the user edits the result before pressing the action button, the value of the text area is passed to the action button, not the value that we really got in the task. I thought it would make sense as users might want to adjust the result in the Assistant UI before pressing a button.
Oh and the code example has been adjusted.
refs https://github.com/nextcloud/text/issues/4686
https://github.com/nextcloud/assistant/assets/11291457/5d579c0b-7ee5-4368-97ef-78ff519ff46d
Is it enough to get the task output as parameter of button callbacks? I could refactor a bit and make it possible to get the task itself if necessary.