mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #5555] [MERGED] feat: add character card summaries #6814
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#6814
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/5555
Author: @Gunterlie
Created: 8/26/2026
Status: ✅ Merged
Merged: 8/26/2026
Merged by: @Gunterlie
Base:
staging← Head:sparknotes-the-cast📝 Commits (7)
06e1fc8feat: add character card summaries905fc01fix: address CodeRabbit findings on character summary feature85892d9fix: use unsaved editor draft when generating a character summary1a16f56fix: address remaining review findings on character summary feature2f6a27efix: search the full character summary, not the truncated preview09ecf96fix: share summary generation and stop bulk clobbering new summaries4510018fix: make bulk missing-only summary writes atomic📊 Changes
14 files changed (+478 additions, -14 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
packages/client/src/components/characters/CharacterEditor.tsx(+79 -0)📝
packages/client/src/components/characters/CharacterLibraryView.tsx(+227 -4)📝
packages/client/src/hooks/use-characters.ts(+22 -0)📝
packages/client/src/localization/locales/en.json(+18 -0)📝
packages/server/src/db/seed-mari.ts(+3 -2)📝
packages/server/src/routes/characters.routes.ts(+98 -2)📝
packages/server/src/services/chat-summary/connection-resolution.ts(+6 -1)📝
packages/server/src/services/conversation/character-commands.ts(+3 -0)📝
packages/server/src/services/generation/professor-mari-command-runtime.ts(+2 -0)📝
packages/server/src/services/import/st-character.importer.ts(+3 -0)📝
packages/server/src/services/mari-db/mari-db.service.ts(+12 -5)📝
packages/shared/src/schemas/character.schema.ts(+1 -0)📝
packages/shared/src/types/character.ts(+2 -0)📄 Description
Closes #5554
Why
Character cards have no short, general-purpose synopsis field. The Character Library currently fakes one by concatenating
creator_notes/description/personality, which is noisy, not user-editable, and duplicates model-facing prompt content in the UI. Users asked for a real summary datapoint per card to improve library previews, search, and sharing without adding prompt tokens.What changed
data.summary(string, max 500 chars) to the shared character schema/type. Stored in the existing serializedcharacters.dataJSON — no new DB column.summaryis never injected into the model prompt.POST /api/characters/:id/summary/generate, using the existing connection-resolution fallback chain (chat-summary connection → agent default → normal default).mariCLI, and character command paths can read/writesummary(all normalized to the 500-char limit at the write boundary).summary.summaryto the schema limit.Review history
Two independent CodeRabbit-style reviews were run against this diff during development; all 10 findings raised (stale-generation races, missing default-connection fallback, unsafe bulk "missing-only" overwrite risk, stale bulk progress on selection-mode re-entry, unhandled select-all-matching errors, non-retryable cancellation, unbounded imported/CLI/Mari summary length, and a locale string ordering bug) were fixed and re-validated.
Validation
pnpm check(TypeScript, ESLint, formatting, localization, server + client build) passespnpm localization:checkpassespnpm regression:promptpassesManual test plan (unchecked — needs human verification)
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.