mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8097] [MERGED] fix(editors): preserve agent copies and avatar/image state #8100
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#8100
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/8097
Author: @SpicyMarinara
Created: 10/22/2026
Status: ✅ Merged
Merged: 10/22/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/assigned-editor-data-controls📝 Commits (8)
c7fedf0chore: reserve assigned editor fixes31caceffix(editors): retain effective agent copies and reusable avatar image state249794dfix(editors): prune exported image mappings and scope removal progress9e74dcafix(personas): scope removal progress and clean unused avatar filesce55609fix(personas): clear rendered mutation state on forced teardown8e744c4fix(editors): reset persona sessions before paint and retain frozen avatars12d5475fix(editors): scope upload progress and prune greeting mappings on savef45080afix(storage): keep cache cleanup out of card revision comparisons📊 Changes
15 files changed (+719 additions, -51 deletions)
View changed files
📝
e2e/editor-ui-polish.e2e.ts(+226 -4)📝
packages/client/src/components/characters/CharacterEditor.tsx(+6 -2)📝
packages/client/src/components/panels/AgentsPanel.tsx(+1 -21)📝
packages/client/src/components/personas/PersonaEditor.tsx(+66 -6)📝
packages/client/src/hooks/use-characters.ts(+25 -2)📝
packages/client/src/lib/agent-transfer.ts(+36 -0)📝
packages/client/src/localization/locales/en.json(+3 -0)📝
packages/server/src/routes/backup.routes.ts(+1 -0)📝
packages/server/src/routes/characters.routes.ts(+25 -1)📝
packages/server/src/services/storage/characters.storage.ts(+9 -1)📝
packages/shared/src/utils/greeting-image-bake.ts(+28 -8)➕
scripts/regressions/agent-duplicate-defaults.regression.ts(+99 -0)📝
scripts/regressions/greeting-image-bake.regression.ts(+127 -3)📝
scripts/regressions/persona-api-decoded-reads.regression.ts(+64 -0)📝
scripts/regressions/persona-client-contract.regression.ts(+3 -3)📄 Description
Linked issues
Closes #8047
Closes #8080
Closes #8084
Why this change
Duplicating an installed agent loses defaults that were never saved as overrides. Existing personas cannot clear their avatar. Converting greeting images downloads them again after reverting to web links because the editor discards its URL-to-gallery mapping.
What changed
Validation
Local Node 24.22.1 / macOS arm64:
pnpm install --frozen-lockfileand finalpnpm check: passed, including localization, types and production build.pnpm smoke:ui: 7/7 passed. Dark desktop and light mobile avatar-removal screenshots were inspected; these are browser emulation.Fresh local CodeRabbit reviewed all 15 changed files with zero findings. Earlier valid export, operation-progress, pre-paint teardown, ordinary-save pruning and cache-only revision findings were reproduced and repaired. An earlier TypeScript-configuration finding was rejected using the effective client configuration and successful production type/build checks. The unrequested automatic cleanup proposal was removed after reproducing frozen-avatar data loss; its retention control remains in the final patch.
Desktop/mobile UI evidence is embedded in a downloadable HTML file. Published PNG hashes are verified against the original captures.
Human verification tasks:
Verification limits
Image downloads are mocked in the browser tests; Node route coverage separately verifies gallery reuse, ownership and export behavior. The session test deliberately forces the parent selection to exercise teardown; it does not claim normal guarded navigation reproduces the race. An earlier browser run lost its served shared bundle during a concurrent production build; evidence was preserved and validation was repeated without that overlap. No assertion or timeout was weakened.
Docs and release impact
No user-facing documentation paths, release metadata or storage-format changes. New UI copy uses canonical English localization keys; community locales fall back to English.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.