[GH-ISSUE #7434] [Issue]: Support chat-scoped variables in character onboarding #4143

Closed
opened 2026-10-21 06:11:39 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @SpicyMarinara on GitHub (Oct 11, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7434

Originally assigned to: @ylli-selmani on GitHub.

Summary

Add an onboarding question editor for character cards that can set chat variables based on the user's setup answers. This would allow character descriptions and other fields to remain modular while using per-chat values.

Expected behavior

When onboarding is enabled, character card fields should support variables such as {{relationshipToUser}} whose values are set by the setup wizard and scoped to the current chat. The character card should remain unchanged, and the variables should not resolve into permanent plaintext.

Actual behavior

The current onboarding feature does not provide a way to set variables in the character's fields. Using greetings as a workaround could cause values to resolve and be saved as plaintext, reducing character-card modularity.

Steps to reproduce

  1. Enable or open the new onboarding feature for a roleplay chat.
  2. Attempt to configure an onboarding answer that changes a variable in the character card's fields.
  3. Observe that there is no character-card question editor or chat-scoped variable mechanism for this use case.

Environment

  • Marinara Engine version: Not provided
  • Install type: Not provided
  • OS + version: Not provided
  • Browser or app shell: Not provided

Logs, screenshots, or video

No logs, screenshots, or video provided.

Additional context

The proposed implementation is a second questions editor aimed at character cards when onboarding is active. Answers should be saved as chat variables scoped to the chat, while persona onboarding remains unchanged and continues creating an independent persona. The character card should stay unchanged, consistent with the onboarding promise that the card remains as it is.

Discord thread: Onboarding for characters themselves
Discord thread link: https://discord.com/channels/1417099416812392641/1558827268694872104
Requested by: ylliselmanii (ylliselmanii, Discord ID 177503556272783360)

Discord thread transcript (9 messages)
[2026-10-11T13:03:02.467Z] 🌗 RayJay: Baa. Hello, Ive an idea for *ewe*! I had a look at the new onboarding feature, but I think we should also implement a system that can actually change variables in the character fields themselves. Think of it just like the preset questions, you can select any variable that changes details in the chat field, useful for modularity, variety, and easy changing for a new experience.
[Discord message: https://discord.com/channels/1417099416812392641/1558827268694872104/1558827268694872104]

[2026-10-11T13:03:03.096Z] Professor Mari [bot]: Howdy!

Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.**

**Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab:

`Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.`

If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here:

`Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version`

Thank you, this will help tremendously.

This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case.

Cheers!
[Discord message: https://discord.com/channels/1417099416812392641/1558827268694872104/1558827271333355551]

[2026-10-11T13:22:23.016Z] ylliselmanii: daamn, making me do work on the thing I JUST did? cruel
[Discord message: https://discord.com/channels/1417099416812392641/1558827268694872104/1558832136390316065]

[2026-10-11T13:23:03.966Z] ylliselmanii: you mean variables not just in the new persona, but the character itself?
[Discord message: https://discord.com/channels/1417099416812392641/1558827268694872104/1558832308147200005]

[2026-10-11T13:23:15.039Z] 🌗 RayJay: Yes :3
[Discord message: https://discord.com/channels/1417099416812392641/1558827268694872104/1558832354590597191]

[2026-10-11T13:23:59.187Z] 🌗 RayJay: The alternative would be adding chat variable setting on greetings? But that is weird, boring and a stubby workaround Id try in my Sillytavern days...
[Discord message: https://discord.com/channels/1417099416812392641/1558827268694872104/1558832539760599214]

[2026-10-11T13:24:30.356Z] Marinara: Leaving this one to you @ylliselmanii 🫡
[Discord message: https://discord.com/channels/1417099416812392641/1558827268694872104/1558832670493122602]

[2026-10-11T13:31:06.721Z] ylliselmanii: hmm, but chatvariables would be the best thing here, so they don't resolve and get saved as plaintext. The character card would have to stay modular, to uphold the promise in the onboarding settings:

> When a player picks Create your persona while setting up a Roleplay chat, the answers become a new persona. **Your card stays as it is.**
[Discord message: https://discord.com/channels/1417099416812392641/1558827268694872104/1558834332968427683]

[2026-10-11T13:37:22.214Z] ylliselmanii: Okay, i can look into simply making a 2nd questions editor aimed at the character card, when onboarding is active, but have these answers get saved as chat variables instead of resolving to plaintext, making the answers scoped to the chat.

You'd be able to write a permanent variable like {{relationshipToUser}} into a cards description as additional flavour, that gets fed per chat, depending on what you answered during the chat setup wizard.

Persona onboarding would stay unchanged for now, variables saved as plaintext into a completely new and independent persona, as you can't have the name stay a variable, and other reasons.

I'll be careful about not bloating the onboarding setup ui inside the CharacterEditor, and also the Chat Setup Wizard.
[Discord message: https://discord.com/channels/1417099416812392641/1558827268694872104/1558835907900080139]

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 @SpicyMarinara on GitHub (Oct 11, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7434 Originally assigned to: @ylli-selmani on GitHub. ## Summary Add an onboarding question editor for character cards that can set chat variables based on the user's setup answers. This would allow character descriptions and other fields to remain modular while using per-chat values. ## Expected behavior When onboarding is enabled, character card fields should support variables such as {{relationshipToUser}} whose values are set by the setup wizard and scoped to the current chat. The character card should remain unchanged, and the variables should not resolve into permanent plaintext. ## Actual behavior The current onboarding feature does not provide a way to set variables in the character's fields. Using greetings as a workaround could cause values to resolve and be saved as plaintext, reducing character-card modularity. ## Steps to reproduce 1. Enable or open the new onboarding feature for a roleplay chat. 2. Attempt to configure an onboarding answer that changes a variable in the character card's fields. 3. Observe that there is no character-card question editor or chat-scoped variable mechanism for this use case. ## Environment - Marinara Engine version: Not provided - Install type: Not provided - OS + version: Not provided - Browser or app shell: Not provided ## Logs, screenshots, or video No logs, screenshots, or video provided. ## Additional context The proposed implementation is a second questions editor aimed at character cards when onboarding is active. Answers should be saved as chat variables scoped to the chat, while persona onboarding remains unchanged and continues creating an independent persona. The character card should stay unchanged, consistent with the onboarding promise that the card remains as it is. Discord thread: Onboarding for characters themselves Discord thread link: https://discord.com/channels/1417099416812392641/1558827268694872104 Requested by: ylliselmanii (ylliselmanii, Discord ID 177503556272783360) <details> <summary>Discord thread transcript (9 messages)</summary> ```text [2026-10-11T13:03:02.467Z] 🌗 RayJay: Baa. Hello, Ive an idea for *ewe*! I had a look at the new onboarding feature, but I think we should also implement a system that can actually change variables in the character fields themselves. Think of it just like the preset questions, you can select any variable that changes details in the chat field, useful for modularity, variety, and easy changing for a new experience. [Discord message: https://discord.com/channels/1417099416812392641/1558827268694872104/1558827268694872104] [2026-10-11T13:03:03.096Z] Professor Mari [bot]: Howdy! Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.** **Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab: `Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.` If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here: `Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version` Thank you, this will help tremendously. This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case. Cheers! [Discord message: https://discord.com/channels/1417099416812392641/1558827268694872104/1558827271333355551] [2026-10-11T13:22:23.016Z] ylliselmanii: daamn, making me do work on the thing I JUST did? cruel [Discord message: https://discord.com/channels/1417099416812392641/1558827268694872104/1558832136390316065] [2026-10-11T13:23:03.966Z] ylliselmanii: you mean variables not just in the new persona, but the character itself? [Discord message: https://discord.com/channels/1417099416812392641/1558827268694872104/1558832308147200005] [2026-10-11T13:23:15.039Z] 🌗 RayJay: Yes :3 [Discord message: https://discord.com/channels/1417099416812392641/1558827268694872104/1558832354590597191] [2026-10-11T13:23:59.187Z] 🌗 RayJay: The alternative would be adding chat variable setting on greetings? But that is weird, boring and a stubby workaround Id try in my Sillytavern days... [Discord message: https://discord.com/channels/1417099416812392641/1558827268694872104/1558832539760599214] [2026-10-11T13:24:30.356Z] Marinara: Leaving this one to you @ylliselmanii 🫡 [Discord message: https://discord.com/channels/1417099416812392641/1558827268694872104/1558832670493122602] [2026-10-11T13:31:06.721Z] ylliselmanii: hmm, but chatvariables would be the best thing here, so they don't resolve and get saved as plaintext. The character card would have to stay modular, to uphold the promise in the onboarding settings: > When a player picks Create your persona while setting up a Roleplay chat, the answers become a new persona. **Your card stays as it is.** [Discord message: https://discord.com/channels/1417099416812392641/1558827268694872104/1558834332968427683] [2026-10-11T13:37:22.214Z] ylliselmanii: Okay, i can look into simply making a 2nd questions editor aimed at the character card, when onboarding is active, but have these answers get saved as chat variables instead of resolving to plaintext, making the answers scoped to the chat. You'd be able to write a permanent variable like {{relationshipToUser}} into a cards description as additional flavour, that gets fed per chat, depending on what you answered during the chat setup wizard. Persona onboarding would stay unchanged for now, variables saved as plaintext into a completely new and independent persona, as you can't have the name stay a variable, and other reasons. I'll be careful about not bloating the onboarding setup ui inside the CharacterEditor, and also the Chat Setup Wizard. [Discord message: https://discord.com/channels/1417099416812392641/1558827268694872104/1558835907900080139] ``` </details> ## 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.
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#4143
No description provided.