mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
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#7736
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/7439
Author: @ylli-selmani
Created: 10/11/2026
Status: ✅ Merged
Merged: 10/12/2026
Merged by: @ylli-selmani
Base:
staging← Head:feat/onboarding-card-variables📝 Commits (10+)
5ada6a3feat(onboarding): card variables in the shared layer (#7434)c1374d3feat(onboarding): author card questions in the Character Editor13a8ff9polish(onboarding): lead with character questions, rename the two listse3d645cfix(onboarding): scope option-value validation to its own question list43d8d2cpolish(onboarding): put warning icons inline with their textbfa140ffeat(onboarding): ask character questions, and seed them for wizard-less chats43f4681feat(onboarding): one questions section per character card (#7434)267610cfix(onboarding): address CodeRabbit review of the per-character questions (#7434)2dd545efix(onboarding): close the questions window when persona selection fails (#7434)8e79900docs(onboarding): correct what the questions window does after S3 (#7434)📊 Changes
13 files changed (+2676 additions, -247 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
docs/characters/interactive-onboarding.md(+26 -9)📝
packages/client/src/components/characters/CharacterEditor.tsx(+339 -23)📝
packages/client/src/components/characters/CharacterOnboardingModal.tsx(+383 -120)📝
packages/client/src/components/chat/ChatSetupWizard.tsx(+155 -28)📝
packages/client/src/components/presets/PresetVariablesEditor.tsx(+35 -15)📝
packages/client/src/localization/locales/en.json(+36 -5)📝
packages/server/src/routes/chats.routes.ts(+104 -2)📝
packages/shared/src/schemas/character.schema.ts(+3 -0)📝
packages/shared/src/types/character.ts(+5 -0)📝
packages/shared/src/utils/onboarding.ts(+513 -45)📝
scripts/regressions/onboarding-s1.regression.ts(+11 -0)➕
scripts/regressions/onboarding-s3.regression.ts(+1065 -0)📄 Description
Linked issue
Closes #7434
Why this change
{{relationshipToUser}}into a description, and each chat fills it in.What changed
5ada6a369). A second list,cardVariables, on the existing onboarding block. No new extension key, no new switch, no migration. AddsresolveCardVariables, the relevance helpers, the empty-block guardhasOnboardingContent, and extends the unique-id fixing, the 100-question cap, andvalidateOnboardingto cover both lists.c1374d33d). A second question list in the existing Onboarding tab, below the persona fields. Reuses the existing variables editor through a newonboarding-cardwording variant, so the question-editing behaviour is the same one the persona list already uses. The validator gets the card's own fields, so a card question nothing reads is reported as unused — with wording that names the card fields. A greeting naming a card question gets its own warning, because greetings are not model input.bfa140f41,43f468121,267610ce4,2dd545e64,8e79900af). The questions window asks the cards' own questions and saves the answers as chat variables, and a chat started outside the wizard seeds each question's first option. See the review rounds below.f914363c0,0659a6adb,c9f122008). The five model-facing Card fields offer the same Available variables row the onboarding fields do, so an author can insert a card question without leaving the tab. See the review rounds below.55a603fa8,045047201). A?help affordance on the Onboarding header, the subtitle corrected (it described the tab as persona-only, which the character questions made false), and a Persona Template heading that groups the five persona fields under one section-jump chip instead of five. Then a copy pass: two independent review passes over the guide and the helper strings removed every em dash this branch had added todocs/characters/interactive-onboarding.mdand split one 53-word sentence, corrected an Onboarding help line that named "the questions above" while the card questions render first, and localized two screen-reader labels in the question editor.4374213d2). The guide matches the shipped behaviour, the[Unreleased]entry is written from the final diff, and every new string is in the canonical catalog. The[docs-i18n]follow-up is filed as #7467.Review rounds
Every round ran CodeRabbit locally on the committed branch (
coderabbit review --committed --base origin/staging), and each substantive fix was followed by another round.resolveCardVariables(an option value containing{{user}}was discarded) was found there and is pinned by a regression.resolveCardVariableswrites a declared name even when nothing asked it. Such a name never reaches the clash warning and is never shown, yet its first option replaced another card's real answer for that name. The merge now keeps only the names each card actually asks, in a sharedmergeCardVariables, pinned by a regression that fails when the filter is removed. Also capped card-variable values atMAX_CHAT_VARIABLE_VALUE_LENGTH: one over-long answer made the metadata route reject the wholemacroVariablespatch, losing every other answer with it. The round-2 re-key finding was valid this time — I had dismissed it, but a card dropping out of the picker while the window is open is a real path, so the modal now re-keys on the template too.aria-labelnow takes the token as{{value1}}so translators can reorder it, and the[Unreleased]entry was cut from 179 words to 115 against a section median of 48. Its claim that the entry appeared twice was wrong; it appears once.CHARACTER_ONBOARDING_HELPalone would have left two conventions for one thing, since the other fourteenCHARACTER_*_HELPconstants are English. Round 3 argued that those are grandfathered while this one is new text, which is fair, so it was localized after all asui.characters.onboarding.tabHelp. The older constants and the three Colors-tab help texts are a separate follow-up issue.Validation
pnpm checkpasses locallyCONTRIBUTING.mdS4 — in the Character Editor's Card tab, with interactive onboarding enabled and at least one character question declared:
{{name}}goes in where the caret was, and the caret sits directly after it.Manual verification notes
S1 was the shared layer only, so it has no browser surface.
S2 — in the Character Editor's Onboarding tab, with interactive onboarding enabled:
S3 — start a Roleplay chat through the wizard:
{{user}}resolves. A card question containing{{user}}shows the player's name when a persona was picked; with a brand-new persona it stays live until the name is typed.{{name}}was, and no raw tag is left.{{name}}.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)docs/characters/interactive-onboarding.mdis updated in this branch for what S3 changed (the guide claimed no questions are asked when you pick another persona, and said nothing about the seeded defaults). The[Unreleased]CHANGELOG entry — written from the final diff — and the[docs-i18n]follow-up issue arrive with S6, which is deliberately the last step because both have to describe the copy S5 settles.Follow-up work, not in this PR
CHARACTER_*_HELPconstants and the three hardcoded English Colors-tab help texts (CharacterEditor.tsxaround :6455, :6463, :6471; the last two are half-translated, so a non-English locale shows mixed language) need their own localization issue. They are pre-existing and outside #7434.UI evidence (if applicable)
Screenshots of the Onboarding tab, the empty-state note and the greeting warning are being collected for S2, and the questions window for S3, and will be attached before this leaves draft.
🤖 Drafted with Claude (Anthropic) for @ylli-selmani.
Summary by CodeRabbit
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.