mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #5872] [CLOSED] Random variables implementation + fix for variables not showing on first_parameters. #6975
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#6975
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/5872
Author: @Bainshie
Created: 9/5/2026
Status: ❌ Closed
Base:
staging← Head:RandomVariables📝 Commits (4)
ba8f368fix: correct auto-confirm reset ordering in ChoiceSelectionModalb77f60cfeat: allow Random Pick on single-select preset variablesb52e06ffix(chat): resolve preset choice variables in the starting messagee20ea12Merge branch 'staging' into RandomVariables📊 Changes
4 files changed (+72 additions, -45 deletions)
View changed files
📝
packages/client/src/components/chat/ChatSetupWizard.tsx(+14 -4)📝
packages/client/src/components/presets/ChoiceSelectionModal.tsx(+15 -2)📝
packages/client/src/components/presets/PresetEditor.tsx(+41 -39)📝
packages/client/src/localization/locales/en.json(+2 -0)📄 Description
Linked issue
https://github.com/Pasta-Devs/Marinara-Engine/issues/5868
https://github.com/Pasta-Devs/Marinara-Engine/issues/5869
Closes #
Why this change
Allows cards to be created that automatically select from larger data values, to combat inherent AI not being very random at all. Used locally to create a "GM Scenario generator" with 54K+ potential different combinations.
What changed
Expanded the current random functionality from mutli-select, to single select.
Random variables will automatically be chosen on each initial chat creation.
Variables correctly come through on the first_message call.
Validation
pnpm checkpasses locally (Prettier fails on large section of changes outside of this PR's files)CONTRIBUTING.mdManual verification notes
Create new variable in a preset.
Fill with values, and select "Random Pick" for this variable.
Apply this variable to a first_message parameter.
Create a new chat. A random value should be created. This variable should appear in the first message correctly.
Create another new chat. A random value should be created. This variable should appear in the first message correctly.
Create another new chat. A random value should be created. This variable should appear in the first message correctly.
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)UI evidence (if applicable)
Summary by CodeRabbit
New Features
Bug Fixes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.