mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6849] [CLOSED] feat(characters): Generate / Improve buttons for character card fields #7354
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#7354
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/6849
Author: @jochst
Created: 9/29/2026
Status: ❌ Closed
Base:
staging← Head:feat/6848-character-field-generation📝 Commits (3)
612918afeat(characters): add Generate / Improve buttons to character card fieldsaaadf6cMerge branch 'staging' into feat/6848-character-field-generatione9b0549Merge branch 'staging' into feat/6848-character-field-generation📊 Changes
7 files changed (+516 additions, -15 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
packages/client/src/components/characters/CharacterEditor.tsx(+174 -15)📝
packages/client/src/hooks/use-characters.ts(+45 -0)📝
packages/client/src/localization/locales/en.json(+10 -0)📝
packages/server/src/routes/characters.routes.ts(+84 -0)➕
packages/server/src/services/generation/character-field-prompt.ts(+124 -0)➕
scripts/regressions/character-field-generation.regression.ts(+78 -0)📄 Description
Linked issue
Closes #6848
Why this change
What changed
CharacterEditor.tsx). One sharedCharacterFieldGenerateButtoncomponent;TextareaTabtakes an optionalgenerateprop so the four plain fields opt in with one line each.POST /characters/:id/field/generateincharacters.routes.ts. Field names are whitelisted; the unsaved draft is merged over the stored card; connection resolution is the sameresolveChatSummaryConnectionpath as/summary/generateand/convo-profile/generate; prompt is logged throughlogDebugOverride(UIdebugMode/DEBUG_AGENTS); max tokens 1024 (respecting the connection override).services/generation/character-field-prompt.ts— per-field instructions (Example Dialogue asks for<START>/{{user}}:/{{char}}:; Alternate Greeting must differ from the First Message), the target field is never repeated as context, and code fences are stripped from the output.useGenerateCharacterFieldinuse-characters.ts.ui.characters.fieldGenerate.*keys inen.jsononly (community packs fall back to English).scripts/regressions/character-field-generation.regression.ts— field whitelist (rejectssummary,name,__proto__, non-strings), Generate vs Improve prompt content, blank-Improve fallback, target-field exclusion, greeting context, fence cleanup.[Unreleased]entry.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Automated runs by the AI assistant on this branch (rebased on
staging@808b5739a):pnpm check(exit 0; the only lint warning is a pre-existing one inGameNarration.tsx),pnpm localization:check,pnpm version:check, andnode scripts/run-regressions.mjs --filter character(14/14 passed, including the new regression). Container build and real-browser / real-model checks have not been done yet.To verify manually:
[debug/characters/<id>-field-<field>]prompt is logged.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)No files under
docs/changed; CHANGELOG has an[Unreleased]entry.UI evidence (if applicable)
Screenshots to be added after manual browser verification.
Drafted with an AI coding assistant. Checkboxes are intentionally left unchecked for the human contributor.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.