[GH-ISSUE #6550] [Issue]: Roleplay dice accent, tool usage labels, and actual-input memory cutoff #3671

Closed
opened 2026-10-21 06:05:45 +07:00 by bsakaguchi · 0 comments
Owner

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

  • Dice outcome numbers follow the existing dice accent.
  • Message usage and Peek Prompt distinguish the total across tool requests from the input size of the last request, including cached input.
  • Advanced Memory checks actual input for individual main requests after generation, including cached input but excluding output and cumulative tool-round usage. Crossing the configured threshold resets to the latest known scene for everyone and reuses the existing Chat Summaries flow.
  • Summary creation adds explicit character-name {{#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

  1. Use a non-purple accent in Roleplay and let a character roll dice through a command.
  2. Inspect the outcome numbers.
  3. Open Peek Prompt for a reply requiring tool follow-ups and compare the estimate with reported usage.

Environment

  • Marinara Engine version: current staging; exact affected build not supplied.
  • Install type: not supplied for this report.
  • OS + version: not supplied for this report.
  • Browser or app shell: not supplied for this report.
  • Connection/model: Anthropic API, Claude Opus 5.5.

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

  • I DID NOT read this template and provide the requested details.
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 - Dice outcome numbers follow the existing dice accent. - Message usage and Peek Prompt distinguish the total across tool requests from the input size of the last request, including cached input. - Advanced Memory checks actual input for individual main requests after generation, including cached input but excluding output and cumulative tool-round usage. Crossing the configured threshold resets to the latest known scene for everyone and reuses the existing Chat Summaries flow. - Summary creation adds explicit character-name `{{#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 1. Use a non-purple accent in Roleplay and let a character roll dice through a command. 2. Inspect the outcome numbers. 3. Open Peek Prompt for a reply requiring tool follow-ups and compare the estimate with reported usage. ## Environment - Marinara Engine version: current staging; exact affected build not supplied. - Install type: not supplied for this report. - OS + version: not supplied for this report. - Browser or app shell: not supplied for this report. - Connection/model: Anthropic API, Claude Opus 5.5. ## 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 - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 06:05:45 +07:00
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#3671
No description provided.