mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1999] [Issue]: Refresh character panel first-open performance investigation #978
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#978
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/1999
Originally assigned to: @Promansis on GitHub.
Summary
Opening the Characters right side panel still feels heavier than it should on first open because the panel imports a broad characters shell and loads a summary shape that still includes prompt-heavy fields the compact panel does not need.
Expected behavior
Opening the Characters right side panel should load only the panel-specific UI and the lightweight character data needed for compact rows, groups, filters, tags, favorites, avatar display, and chat assignment.
Actual behavior
The right panel currently lazy-loads the broad characters shell entrypoint, and the side panel summary query still requests large prompt and lorebook-related fields. Row rendering also computes token estimates from those fields, so first-open work remains higher than necessary even after recent avatar thumbnail and managed image delivery improvements.
Steps to reproduce
Impact area
Environment
refactorat805ab939a4f7297dfbab6f7358ab9a40f4e026d2Logs, screenshots, or video
No screenshots or timing capture attached yet. Current evidence is from the live refactor code path:
src/app/shell/RightPanel.tsxlazy-loads../../features/catalog/characters/shellfor the Characters panel.src/features/catalog/characters/shell.tsstill exports the panel together with editor, full library, maker, create/import, and update modal surfaces.src/features/catalog/characters/hooks/use-characters.tsuses a general summary projection that still requestsdescription,personality,scenario,first_mes,mes_example,system_prompt,post_history_instructions,alternate_greetings,character_book, andextensions.src/features/catalog/characters/components/CharacterListRow.tsxcomputes token estimates from the parsed card data for compact rows.Regression notes
This has shifted since the earlier panel-performance discussion around issue #1934. Recent managed avatar thumbnail and deferred image-resolution work improved the image-loading side, but the remaining first-open cost appears to come more from broad module loading and oversized side-panel summary data than from avatar delivery itself.
Additional context
Recent image-loading work means this should be treated as a refreshed performance issue, not a duplicate of the older avatar-focused framing:
a5a8234eand follow-up workTemplate check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: