mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #6550] [Issue]: Roleplay dice accent, tool usage labels, and actual-input memory cutoff #3671
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#3671
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 @SpicyMarinara on GitHub (Sep 22, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6550
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Roleplay dice outcome numbers do not follow the selected accent color. Token usage for replies involving tool calls is displayed as though the cumulative usage were one prompt. Advanced Memory also lacks a post-generation cutoff check against actual provider-reported input when its local estimate is too low.
Expected behavior
{{#if}}guidance above the selected summary prompt, separating knowledge when POVs switch. Conditions must survive constant-summary creation and resolve before recall reaches the model; the configured narrator receives all sections.Actual behavior
The reported dice outcome numbers appear lavender/pink. A Claude Opus 5.5 reply using the Anthropic API showed roughly 45k estimated tokens but 133k reported usage in the message, Peek Prompt, and provider dashboard. Peek Prompt calls the cumulative input count “actual prompt tokens.”
The maintainer confirmed that the estimate stayed below the configured 65k limit, and clarified that actual per-request input must also trigger a cutoff even when underestimated. A synthetic provider regression reproduces the missing cutoff: 65,001 actual input tokens with a much smaller local estimate leave the context unchanged.
Steps to reproduce
Environment
Logs, screenshots, or video
Reported values: approximately 45k estimated prompt tokens, 133k turn usage, Advanced Memory limit 65k. No request trace supplied.
Additional context
Implementation owner: @SpicyMarinara, assisted by Codex, in #6551. Keep the fix narrow: reuse theme tokens, per-request accounting, shared reversible start flags and Chat Summaries. Preserve billing totals, normal tool continuations, and regeneration behavior.
Template check