mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1866] [Issue]: Avatar images lag when switching chats #903
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#903
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 2, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1866
Originally assigned to: @Promansis on GitHub.
Summary
Avatar images can visibly lag or blank for roughly half a second when switching chats. The reported suspicion is avatar loading: prior work moved away from full base64 PNG payloads, but the current managed-avatar resolution path feels clunky during chat switches.
Expected behavior
Switching chats should show known character/persona avatars immediately when those images were already loaded or can be resolved synchronously.
Actual behavior
When switching chats, avatar images appear delayed before settling in, creating a noticeable visual stutter.
Steps to reproduce
Impact area
Environment
refactorat03fec2ff5192fbdbc652478e7411f749c66f9c50Logs, screenshots, or video
No logs, screenshots, or recordings yet.
Initial code inspection found the visible avatar path goes through
src/features/modes/shared/chat-ui/components/ResolvedAvatarImage.tsx. For managed avatars, that component renders no image when the synchronous URL conversion still looks like a raw filesystem path, then waits forresolveAvatarFileUrl(...). Chat message avatar call sites also passloading="lazy"for avatars insrc/features/modes/shared/chat-ui/components/ChatMessage.tsx, which may worsen perceived delay on remount after chat switches.Regression notes
Reporter notes previous issues with loading full base64 PNG avatar images and says the current replacement behavior feels clunky.
Additional context
Likely fix area is shared mode UI avatar rendering and, if needed, the focused local file API wrapper that resolves managed avatar URLs. Avoid reintroducing full base64 avatar payloads.
Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: