mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2159] [Issue]: Chub card import merge drops most field overrides and flips extensions precedence #1068
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#1068
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?
Originally created by @Romuromylus on GitHub (Jun 4, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2159
Originally assigned to: @cha1latte on GitHub.
Summary
On the chub/chartavern download-PNG import path, the legacy app overlaid the freshly fetched chub API
definitionover the embedded PNG card, so newer/fuller chub-side values (includingalternate_greetings, description, name, tags) won. The refactor's replacement merge only overlayssystem_prompt,post_history_instructions,character_version,character_book, andextensions, and it also flips extensions precedence so the embedded PNG wins over the chub definition.Expected behavior
When importing a chub card via the PNG-download path, fields that differ between the freshly fetched chub
definitionand the embedded PNG should be taken from the chub detail (description, personality, scenario, first_mes, mes_example, creator_notes, name, creator, tags, alternate_greetings), anddefinition.extensionsshould override matching embedded-PNG extension keys, as in legacy.Actual behavior
Only
system_prompt,post_history_instructions,character_version,character_book, andextensionsare taken from the chub detail; all other text fields, name, creator, tags, andalternate_greetingsnow always come from the embedded PNG even when the chub API has fuller/newer values. Extensions precedence is reversed:{ ...detail.providerExtensions, ...existingExtensions }lets the embedded PNG win.Steps to reproduce
alternate_greetingsadded after the PNG was last embedded, or an updated description).Impact area
Environment
93555d4bRegression notes
Worked in legacy (main @
c49f1d95). main:packages/client/src/lib/chub-character-card.ts:55-74(mergeChubDetailIntoCharacterJson) overlays all text fields + name/creator/tags/alternate_greetings and merges extensions chub-wins; called atpackages/client/src/components/bot-browser/BotBrowserView.tsx:1548-1555. refactor @93555d4b:src/features/shell/bot-browser/lib/character-detail-merge.ts:19-55(mergeCharacterDetailIntoCharacterJson); itsCharacterDetailImportDatainterface lacks those fields, and:45-47spreads existing extensions last (PNG wins).