Repository: stable-diffusion-webui
Issue: [Bug]: Prompt Mixing prevents Prompt Editing from working
Labels: bug-report

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What happened?

When using Alternating Words in conjunction with Prompt Editing, Prompt Editing has absolutely no effect.
Not sure whether it is a limitation with the way it is implemented, or intended behavior, so I'm submitting this as a bug report.

EDIT: It seems it is Prompt Mixing specifically that prevents those from working.

### Steps to reproduce the problem

1. Go to txt2img or img2img.
2. Use both Prompt Editing and Prompt Mixing in prompt.
3. Prompt Editing has no effect, and only Prompt Mixing does.


### What should have happened?

In theory, both should be able to co-exist and work together, but at the moment at least one of them overrides the other completely.

### Commit where the problem happens

baf6946

### What Python version are you running on ?

Python 3.10.x

### What platforms do you use to access the UI ?

Windows

### What device are you running WebUI on?

Nvidia GPUs (RTX 20 above)

### What browsers do you use to access the UI ?

Microsoft Edge

### Command Line Arguments

```Shell
--disable-nan-check --no-half-vae
```


### List of extensions

<html>
<body>
<!--StartFragment-->

Extension | URL | Branch | Version | Date | Update
-- | -- | -- | -- | -- | --
a1111-sd-webui-lycoris | https://github.com/KohakuBlueleaf/a1111-sd-webui-lycoris.git | main | 025dea96 | Wed Jun 14 13:56:41 2023 | unknown
adetailer | https://github.com/Bing-su/adetailer.git | main | 76424252 | Mon Jun 5 05:32:16 2023 | unknown
clip-interrogator-ext | https://github.com/pharmapsychotic/clip-interrogator-ext.git | main | 4d865c54 | Sun Jun 11 16:26:21 2023 | unknown
multidiffusion-upscaler-for-automatic1111 | https://github.com/pkuliyi2015/multidiffusion-upscaler-for-automatic1111.git | main | 15220313 | Wed Jun 14 07:43:38 2023 | unknown
sd-webui-controlnet | https://github.com/Mikubill/sd-webui-controlnet.git | main | c9c7317c | Thu Jun 15 01:33:20 2023 | unknown
sd-webui-infinite-image-browsing | https://github.com/zanllp/sd-webui-infinite-image-browsing.git | main | a5a9e1ac | Wed Jun 14 13:47:48 2023 | unknown
sd-webui-model-converter | https://github.com/Akegarasu/sd-webui-model-converter.git | main | f6e0fa53 | Tue May 23 13:04:48 2023 | unknown
sd-webui-openpose-editor | https://github.com/huchenlei/sd-webui-openpose-editor.git | main | 2ccaa21c | Thu Jun 15 02:30:31 2023 | unknown
sd-webui-supermerger | https://github.com/hako-mikan/sd-webui-supermerger.git | main | 237df9aa | Sun Jun 4 17:11:51 2023 | unknown
stable-diffusion-webui-rembg | https://github.com/AUTOMATIC1111/stable-diffusion-webui-rembg.git | master | 3d9eedbb | Sun Jun 4 13:35:24 2023 | unknown
stable-diffusion-webui-state | https://github.com/ilian6806/stable-diffusion-webui-state.git | main | 85d8ef19 | Sat Jun 10 12:39:50 2023 | unknown
LDSR | built-in | None |   | Fri Jun 16 19:01:25 2023 |  
Lora | built-in | None |   | Fri Jun 16 19:01:25 2023 |  
ScuNET | built-in | None |   | Fri Jun 16 19:01:25 2023 |  
SwinIR | built-in | None |   | Fri Jun 16 19:01:25 2023 |  
prompt-bracket-checker | built-in | None |   | Fri Jun 16 19:01:25 2023 |  

<!--EndFragment-->
</body>
</html>

### Console logs

```Shell
venv "C:\Stable Diffusion\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: ## 1.4.0
Commit hash: baf6946e06249c5af9851c60171692c44ef633e0
Installing requirements






Launching Web UI with arguments: --disable-nan-check --no-half-vae
No module 'xformers'. Proceeding without it.
[-] ADetailer initialized. version: 23.6.2, num models: 8
2023-06-16 22:00:42,932 - ControlNet - INFO - ControlNet v1.1.224
ControlNet preprocessor location: C:\Stable Diffusion\extensions\sd-webui-controlnet\annotator\downloads
2023-06-16 22:00:43,112 - ControlNet - INFO - ControlNet v1.1.224
Loading weights [da19872fc7] from C:\Stable Diffusion\models\Stable-diffusion\Volatile AniRock Rebalanced.safetensors
Creating model from config: C:\Stable Diffusion\configs\v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Loading VAE weights specified in settings: C:\Stable Diffusion\models\VAE\clearvae_main.safetensors
Applying attention optimization: sdp... done.
Textual inversion embeddings loaded(14): aid28, bad-artist, bad-artist-anime, bad-hands-5, bad_prompt_version2, badv3, badv5, boring_e621, charturnerv2, deepnegative, deformityv6, easynegative, negative-hand, neutral_shylily
Model loaded in 12.4s (load weights from disk: 0.7s, create model: 1.0s, apply weights to model: 7.1s, apply half(): 1.4s, load VAE: 1.3s, move model to device: 0.7s, calculate empty prompt: 0.1s).
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 29.9s (import torch: 4.6s, import gradio: 1.5s, import ldm: 0.6s, other imports: 2.5s, setup codeformer: 0.1s, load scripts: 6.3s, scripts before_ui_callback: 0.1s, create ui: 13.4s, gradio launch: 0.6s).
preload_extensions_git_metadata for 19 extensions took 1.95s

100%|██████████████████████████████████████████████████████████████████████████████████| 28/28 [00:06<00:00,  4.54it/s]
Total prTile 1/9 47%|██████████████████████████████▊                                   | 28/60 [00:31<00:05,  5.98it/s]
        Tile 2/9
        Tile 3/9
        Tile 4/9
        Tile 5/9
        Tile 6/9
        Tile 7/9
        Tile 8/9
        Tile 9/9
100%|██████████████████████████████████████████████████████████████████████████████████| 32/32 [00:12<00:00,  2.57it/s]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 60/60 [00:46<00:00,  1.30it/s]
```


### Additional information

_No response_