[GH-ISSUE #909] [Issue]: Multi-select option remains in chat preset after being modified #441

Closed
opened 2026-10-20 17:28:54 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @charadev96 on GitHub (May 16, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/909

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Chat presets don't update the values of their connected prompt preset multi-select options, resulting in previous values of the options that no longer exist in the preset appearing in the prompt.

Expected behavior

Modifying a multi-select preset option should propagate the change into chat presets.

Actual behavior

The pre-modified value remains in the prompt, as if it still active and selected. Selecting the newly modified option results in both versions present in the prompt.

Steps to reproduce

  1. Create a prompt preset with a variable that has a the following multi-select options: "Option A" with value "X" and "Option B" with value "Y".
  2. Create a chat preset and connect it to the prompt. Choose both "Option A" and "Option B" and save it.
  3. Modify the value "X" to "X2" in the prompt preset.
  4. Reconfigure the preset variables in the chat prompt, selecting the updated "Option A".
  5. Inspect the prompt. The string present is: "X, Y, X2" instead of "X2, Y".

Environment

  • Marinara Engine version: v1.5.9
  • Install type: termux
  • OS + version: Android 13
  • Browser or app shell: Chrome

Additional context

This seems to affect the prompt even when you don't use a chat preset (assuming you already encountered the bug), although I can't say for certain.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @charadev96 on GitHub (May 16, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/909 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Chat presets don't update the values of their connected prompt preset multi-select options, resulting in previous values of the options that no longer exist in the preset appearing in the prompt. ## Expected behavior Modifying a multi-select preset option should propagate the change into chat presets. ## Actual behavior The pre-modified value remains in the prompt, as if it still active and selected. Selecting the newly modified option results in both versions present in the prompt. ## Steps to reproduce 1. Create a prompt preset with a variable that has a the following multi-select options: "Option A" with value "X" and "Option B" with value "Y". 2. Create a chat preset and connect it to the prompt. Choose both "Option A" and "Option B" and save it. 3. Modify the value "X" to "X2" in the prompt preset. 4. Reconfigure the preset variables in the chat prompt, selecting the updated "Option A". 5. Inspect the prompt. The string present is: "X, Y, X2" instead of "X2, Y". ## Environment - Marinara Engine version: v1.5.9 - Install type: termux - OS + version: Android 13 - Browser or app shell: Chrome ## Additional context This seems to affect the prompt even when you don't use a chat preset (assuming you already encountered the bug), although I can't say for certain. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:28:54 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (May 17, 2026):

Will fix.

<!-- gh-comment-id:4470095153 --> @SpicyMarinara commented on GitHub (May 17, 2026): Will fix.
Author
Owner

@SpicyMarinara commented on GitHub (May 17, 2026):

Fixed on staging in b815f406: prompt preset choice selections are now normalized against the current option values in both the picker and server prompt assembly, so old multi-select values from chat presets/metadata are pruned.

<!-- gh-comment-id:4470180526 --> @SpicyMarinara commented on GitHub (May 17, 2026): Fixed on staging in b815f406: prompt preset choice selections are now normalized against the current option values in both the picker and server prompt assembly, so old multi-select values from chat presets/metadata are pruned.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#441
No description provided.