mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6256] [MERGED] Fix full-card token estimates in character catalog and panel #7107
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#7107
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/6256
Author: @minikkeuen
Created: 9/16/2026
Status: ✅ Merged
Merged: 9/16/2026
Merged by: @undefined
Base:
staging← Head:pr/character-library-token-estimates📝 Commits (7)
3073602fix(character-library): restore full-card token estimates45adf70fix(character-library): use catalog token estimates in panel0cde2f9chore: format character token count import2da1a13Merge remote-tracking branch 'origin/staging' into review/6256-token-estimates364ad49docs: record full-card token estimate fix466bf24Merge remote-tracking branch 'origin/staging' into review/6256-token-estimatesc73f75ftest: prove each full-card token source is included📊 Changes
8 files changed (+195 additions, -111 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
packages/client/src/components/characters/CharacterLibraryView.tsx(+5 -2)📝
packages/client/src/components/panels/CharactersPanel.tsx(+3 -3)📝
packages/client/src/lib/character-token-count.ts(+2 -88)📝
packages/server/src/services/storage/character-catalog.ts(+2 -18)📝
packages/shared/src/index.ts(+1 -0)➕
packages/shared/src/utils/character-token-estimator.ts(+83 -0)➕
scripts/regressions/character-library-token-estimate.regression.ts(+97 -0)📄 Description
Linked issue
Closes #6255
Why this change
What changed
tokenEstimatefrom the full stored character data when building the server character catalog.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)UI evidence (if applicable)
Before: the Characters panel displayed approximately 1,088 tokens based on compact catalog fields.

After: the same character displays approximately 1,769 tokens using the full-card estimate provided by the catalog.

Summary by CodeRabbit
Bug Fixes
Tests
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.