ITADN

[Bug]: Styles aren't saved to infotext if "Save comments" is enabled in Settings

#474Openoaf40 创建于 2026-03-08
O
oaf40commented
### Checklist - [x] The issue exists after disabling all extensions - [x] The issue exists on a clean installation of webui - [ ] The issue is caused by an extension, but I believe it is caused by a bug in the webui - [x] The issue exists in the current version of the webui - [x] The issue has not been reported before recently - [ ] The issue has been reported before but has not been fixed yet ### What happened? There seems to be some bug either in `processing.py` or `processing_scripts/comments.py` because these seem to be the only files where `enable_prompt_comments_def` is referenced. ### Steps to reproduce the problem 1. Create a new Style. I can reproduce the bug with `best quality, {prompt}` and `worst quality, {prompt}` styles for Prompt and Negative Prompt appropriately. 2. Open Settings, Enable Comments (this sets `enable_prompt_comments_def` to True) and Restart reForge 3. Generate any image using that Style 4. Observe the metadata of generated image - there are no tokens from the Style however they were applied 5. Disable Comments in the settings, restart reForge, generate any image using that Style 6. Observe the of generated image - the style tokens have been preserved ### What should have happened? The Style should be always saved to infotext regardless of the Save Comments setting ### What browsers do you use to access the UI ? Mozilla Firefox ### Sysinfo [sysinfo-2026-03-08-18-38.json](https://github.com/user-attachments/files/25826880/sysinfo-2026-03-08-18-38.json) ### Console logs ```Shell The bug does not affect the console output. ``` ### Additional information Tested in Docker containers running on rented servers
1 条评论