mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1965] [Issue]: Personas token sort undercounts text fields #966
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#966
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 @Xelvanis on GitHub (Jun 2, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1965
Originally assigned to: @cha1latte on GitHub.
Summary
The Personas panel token sort estimates persona size from description, personality, scenario, backstory, and appearance, but the refactor panel is fed by persona summaries that only include description from that set. Sorting by Tokens can be wrong when most text lives outside the description field.
Expected behavior
Tokens sort should estimate against the same full persona fields as legacy, or the summary projection should include the fields used by the estimator.
Actual behavior
src/features/catalog/personas/components/panel/PersonasPanel.tsxusesusePersonaSummaries().src/features/catalog/personas/lib/personas-panel-model.tsreadspersonality,scenario,backstory, andappearance, but those fields are not included by the summary projection.Legacy
packages/client/src/components/panels/PersonasPanel.tsxused fullusePersonas()data for the same token estimator.Steps to reproduce
Impact area
Environment
7801a73aduring #1904 target 6 Personas parityscanLogs, screenshots, or video
No runtime logs. Static evidence:
PersonasPanelusesusePersonaSummaries().estimatePersonaTokensreads long persona fields that summaries do not include.PersonasPanelused full persona rows for this estimate.Regression notes
This worked before in legacy Marinara because the panel used full persona records from
usePersonas().Additional context
Found while auditing #1904 target 6, Personas parity coverage.
Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: