mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #4680] [MERGED] fix(personas): normalize decoded API responses #6468
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#6468
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/4680
Author: @Xelvanis
Created: 8/6/2026
Status: ✅ Merged
Merged: 8/6/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/persona-decoded-reads📝 Commits (7)
9169f8brefactor(personas): establish shared decoded contracts0a71567Normalize API responses2303cecrefactor(personas): remove obsolete response parsingf7b5ff5refactor(personas): type decoded response queriesf0109f7refactor(personas): consume decoded panel responses467f9c4fix(personas): validate decoded mutation responses7946444Merge branch 'staging' into fix/persona-decoded-reads📊 Changes
33 files changed (+729 additions, -493 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
package.json(+1 -0)📝
packages/client/src/components/characters/CharacterLibraryView.tsx(+9 -44)📝
packages/client/src/components/chat/ChatArea.tsx(+4 -8)📝
packages/client/src/components/chat/ChatInput.tsx(+3 -2)📝
packages/client/src/components/chat/ChatSettingsDrawer.tsx(+5 -5)📝
packages/client/src/components/chat/ChatSetupWizard.tsx(+9 -42)📝
packages/client/src/components/chat/ConversationInput.tsx(+3 -2)📝
packages/client/src/components/chat/QuickPersonaSwitcher.tsx(+7 -17)📝
packages/client/src/components/chat/QuickSwitcherMobile.tsx(+6 -15)📝
packages/client/src/components/game/GameSetupWizard.tsx(+5 -23)📝
packages/client/src/components/lorebooks/LorebookEditor.tsx(+3 -3)📝
packages/client/src/components/modals/AboutMeViewerModal.tsx(+4 -5)📝
packages/client/src/components/noodle/NoodleHome.tsx(+5 -13)📝
packages/client/src/components/noodle/NoodlerHome.tsx(+1 -1)📝
packages/client/src/components/panels/PersonasPanel.tsx(+27 -59)📝
packages/client/src/components/personas/PersonaEditor.tsx(+34 -90)📝
packages/client/src/features/tracker-panel/hooks/use-tracker-panel-model.ts(+1 -4)📝
packages/client/src/hooks/use-characters.ts(+22 -29)📝
packages/client/src/hooks/use-conversation-custom-emojis.ts(+1 -1)...and 13 more files
📄 Description
Linked issue
Related to #4646 (closed; the reporter does not have permission to reopen it)
Why this change
Persona API endpoints exposed storage-serialized JSON fields on some paths while other client code expected decoded values. That inconsistency forced callers to parse the same fields repeatedly and made ordinary Persona reads, edits, duplication, restoration, and switching vulnerable to semantic field loss.
This is the decoded-read slice of #4646. Decoded write validation and storage-boundary request normalization remain intentionally deferred to the follow-up slice, so this PR does not close the issue.
What changed
PersonaStorageRowvalues from the shared decodedPersonacontract.Validation
pnpm checkpasses locallyCONTRIBUTING.mdAutomated checks completed locally:
pnpm checkpnpm version:checkpnpm regression:persona-api-readspnpm regression:avatar-crop-contractpnpm regression:avatar-deletegit diff --check origin/staging...HEADpnpm smoke:uiwas attempted from clean ports but timed out while Playwright waited for its web servers. The mobile API reached port 7972, while the mobile client launcher did not spawn Vite or open port 5179; no browser assertion ran. The failed run left no listener or repository test process behind.Manual verification notes
User manually verified loading, editing, saving, and reopening a Persona correctly preserves tags, stats, saved statuses, convo behavior, and crop in the Persona Editor. Checked that a selected per-chat Persona remains pinned and is not affected by global active Persona. Verified duplicate and avatar change flows.
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)CHANGELOG.mdcontains the required user-facing Unreleased entry. No version bump or user-documentation change is required for this internal API-contract correction.UI evidence (if applicable)
No intended visual redesign. The user-facing effect is preservation and consistent consumption of existing Persona data.
Summary by CodeRabbit
New Features
Bug Fixes
Tests
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.