[GH-ISSUE #3172] [Issue]: Persona text fields show character counts instead of token counts #1703

Closed
opened 2026-10-21 05:41:50 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @SpicyMarinara on GitHub (Jul 3, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3172

Originally assigned to: @SpicyMarinara on GitHub.

Summary

When viewing Personas, text field counters appear to count individual characters instead of tokens. Token counts would be more useful for AI RP context management.

Expected behavior

Persona text fields should display token counts.

Actual behavior

Persona text fields display character counts instead of token counts.

Steps to reproduce

  1. Open Marinara Engine v2.0.9 Stable on Windows 11 using a Git install.
  2. Navigate to the Personas view.
  3. Inspect the counters shown for persona text fields.

Environment

  • Marinara Engine version: v2.0.9 (Stable)
  • Install type: source
  • OS + version: Windows 11
  • Browser or app shell: Not provided

Logs, screenshots, or video

Attached image showing the persona text field counter: https://cdn.discordapp.com/attachments/1522441367928832000/1522441368176427018/image.png?ex=6a487b83&is=6a472a03&hm=a2ae214602593593dd42db00340fd844c7518b4f3117b67b1e8e761694e4f702&

Additional context

Discord maintainer response: "Should be tokens, yeah."

Discord thread: Display Persona Token Count
Discord thread link: https://discord.com/channels/1417099416812392641/1522441367928832000
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (2 messages)
[2026-07-03T03:18:27.707Z] big papa huge time: - Windows 11
- Git Install
- v2.0.9 (Stable)
- UI Request

When viewing Personas, text fields are counted as individual characters rather than tokens. Tokens are more helpful than characters or words in the context of AI RP, therefore replacing the character counter with a token counter would be more informative.

[attached image 1: https://cdn.discordapp.com/attachments/1522441367928832000/1522441368176427018/image.png?ex=6a487b83&is=6a472a03&hm=a2ae214602593593dd42db00340fd844c7518b4f3117b67b1e8e761694e4f702&]
[Discord message: https://discord.com/channels/1417099416812392641/1522441367928832000/1522441367928832000]

[2026-07-03T08:48:11.837Z] Marinara: Should be tokens, yeah.
[Discord message: https://discord.com/channels/1417099416812392641/1522441367928832000/1522524348584300564]

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Jul 3, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3172 Originally assigned to: @SpicyMarinara on GitHub. ## Summary When viewing Personas, text field counters appear to count individual characters instead of tokens. Token counts would be more useful for AI RP context management. ## Expected behavior Persona text fields should display token counts. ## Actual behavior Persona text fields display character counts instead of token counts. ## Steps to reproduce 1. Open Marinara Engine v2.0.9 Stable on Windows 11 using a Git install. 2. Navigate to the Personas view. 3. Inspect the counters shown for persona text fields. ## Environment - Marinara Engine version: v2.0.9 (Stable) - Install type: source - OS + version: Windows 11 - Browser or app shell: Not provided ## Logs, screenshots, or video Attached image showing the persona text field counter: https://cdn.discordapp.com/attachments/1522441367928832000/1522441368176427018/image.png?ex=6a487b83&is=6a472a03&hm=a2ae214602593593dd42db00340fd844c7518b4f3117b67b1e8e761694e4f702& ## Additional context Discord maintainer response: "Should be tokens, yeah." Discord thread: Display Persona Token Count Discord thread link: https://discord.com/channels/1417099416812392641/1522441367928832000 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (2 messages)</summary> ```text [2026-07-03T03:18:27.707Z] big papa huge time: - Windows 11 - Git Install - v2.0.9 (Stable) - UI Request When viewing Personas, text fields are counted as individual characters rather than tokens. Tokens are more helpful than characters or words in the context of AI RP, therefore replacing the character counter with a token counter would be more informative. [attached image 1: https://cdn.discordapp.com/attachments/1522441367928832000/1522441368176427018/image.png?ex=6a487b83&is=6a472a03&hm=a2ae214602593593dd42db00340fd844c7518b4f3117b67b1e8e761694e4f702&] [Discord message: https://discord.com/channels/1417099416812392641/1522441367928832000/1522441367928832000] [2026-07-03T08:48:11.837Z] Marinara: Should be tokens, yeah. [Discord message: https://discord.com/channels/1417099416812392641/1522441367928832000/1522524348584300564] ``` </details> ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:41:50 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@SpicyMarinara commented on GitHub (Jul 3, 2026):

Codex is taking this in branch codex/issue-sweep-3169-3173, tracked by PR #3177.

<!-- gh-comment-id:4874768307 --> @SpicyMarinara commented on GitHub (Jul 3, 2026): Codex is taking this in branch `codex/issue-sweep-3169-3173`, tracked by PR #3177.
Author
Owner

@SpicyMarinara commented on GitHub (Jul 3, 2026):

Addressed in PR #3177. Local validation passed: pnpm regression:prompt; pnpm --filter @marinara-engine/shared build; pnpm check.

<!-- gh-comment-id:4874896516 --> @SpicyMarinara commented on GitHub (Jul 3, 2026): Addressed in PR #3177. Local validation passed: pnpm regression:prompt; pnpm --filter @marinara-engine/shared build; pnpm check.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#1703
No description provided.