Files
SillyTavern/public/scripts/extensions/stable-diffusion
a50fecee25 feat(sd): Add generation status indicator and improve abort handling (#5015)
* feat(sd): Add generation status indicator and improve abort handling

- Add persistent toast notification showing "Generating image..." during generation
- Toast displays spinner, supports multiple concurrent generations with count
- Click toast to dismiss (generation continues in background)
- Improve abort handling: show friendly "Image generation stopped" info message
  instead of error when user clicks stop button
- Handle abort in both generatePicture() and sendGenerationRequest() catch blocks

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* Scope abort controllers for each individual button

* Use native element reference for caching button abort controller

* Update toast in paintbrush button handler

* refactor: Update abort message for image generation in sdMessageButton

* feat: Enhance generation indicator with active generation count in toast

* Move tracking after prompt generation, add toast for LLM prompt gen progress

* Add type annotation for generation toastr

* Simplify generation abort checks

* Remove unnecessary blank line in addSDGenButtons function

---------

Co-authored-by: mschienbein <mschienbein@users.noreply.github.com>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2026-01-18 15:03:56 +02:00
..
2025-09-14 20:57:33 +03:00
…