mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1992] [Issue]: Persona avatar surfaces bypass avatar thumbnails #975
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#975
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 @Promansis on GitHub (Jun 3, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1992
Originally assigned to: @Promansis on GitHub.
Summary
Several persona-heavy UI surfaces render
persona.avatarPathdirectly instead of using the existing avatar thumbnail/resolution pipeline. Tiny persona avatars in lists, setup flows, and switchers can therefore render full-size or inline images.Expected behavior
Persona avatar surfaces that display small repeated avatars should use the same thumbnail-capable path as character avatar surfaces, including managed avatar files and inline/data avatar sources where supported.
Actual behavior
The audit found direct
<img src={persona.avatarPath}>rendering in repeated or compact surfaces rather thanCharacterAvatarImage,ResolvedAvatarImage, or an equivalent persona avatar wrapper.Known examples:
src/features/catalog/personas/components/panel/PersonaListItem.tsxsrc/features/modes/shared/chat-ui/components/QuickPersonaSwitcher.tsxsrc/features/modes/shared/chat-ui/components/ChatSetupWizard.tsxRelated existing issue: #1944 covers inline
avatarPaththumbnail behavior in character/avatar paths, but these persona surfaces also need to stop bypassing the thumbnail-capable UI path.Steps to reproduce
persona.avatarPathdirectly instead of a thumbnail URL.Impact area
Environment
refactorLogs, screenshots, or video
No screenshots or runtime measurements. Static audit evidence found direct image rendering at:
src/features/catalog/personas/components/panel/PersonaListItem.tsxsrc/features/modes/shared/chat-ui/components/QuickPersonaSwitcher.tsxsrc/features/modes/shared/chat-ui/components/ChatSetupWizard.tsxRegression notes
Not confirmed as a regression. This appears to be a remaining coverage gap after avatar thumbnail support was added elsewhere.
Additional context
Likely fix shape:
avatarFilename,avatarFilePath,avatarPath, crop data, and a thumbnail size.src/shared/api/local-file-api.tsresolves embedded vs remote URLs, and Rust owns decode/cache/path safety.Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: