mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1981] [MERGED] Fix persona token sort summary fields #5374
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#5374
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/1981
Author: @cha1latte
Created: 6/2/2026
Status: ✅ Merged
Merged: 6/2/2026
Merged by: @cha1latte
Base:
refactor← Head:fix/issue-1965-persona-token-sort📝 Commits (2)
e9e9f49Fix persona token sort summary fields77cba4dRefresh persona token sort PR checks📊 Changes
3 files changed (+38 additions, -17 deletions)
View changed files
➕
src/features/catalog/personas/hooks/use-personas.test.ts(+11 -0)📝
src/features/catalog/personas/hooks/use-personas.ts(+6 -17)➕
src/features/catalog/personas/lib/persona-summary-fields.ts(+21 -0)📄 Description
Linked issue
Closes #1965
Why this change
usePersonaSummaries()only requested description from that set. Personas with most text in the other fields could sort too low by Tokens.What changed
Refactor impact
Primary owner:
Impact areas reviewed:
personas-panel-model.tsalready counted the long fields once present.Boundary notes:
Pressure points touched:
Validation
pnpm typecheck,pnpm build,pnpm check:architecture,pnpm check:docs, or fullpnpm checkwhen warranted)pnpm checkpasses before PR push/handoffManual verification notes
pnpm exec vitest run src/features/catalog/personas/hooks/use-personas.test.tsfailed becausePERSONA_SUMMARY_FIELDSlackedpersonality,scenario,backstory, andappearance.pnpm exec vitest run src/features/catalog/personas/hooks/use-personas.test.tspassed.pnpm typecheckpassed.pnpm checkpassed, including line endings, architecture, frontend, Rust, docs, discovery, and unused-code checks.node C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch/bugfix-verification.jsonpassed locally.Feature Discoverability
Check exactly one:
src/features/shell/discovery/because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool.Reason:
Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdUI evidence
N/A. The reported regression is the static persona summary projection feeding token sort. The before/after proof is the focused projection test plus
pnpm check; there is no browser-only visual state needed to prove the core claim.Summary by CodeRabbit
New Features
Tests
Refactor
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.