[GH-ISSUE #3820] [Issue]: Illustrator run interval counts Roleplay swipes #2060

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

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

In Roleplay mode, regenerating or swiping an assistant reply can advance the Illustrator run interval even though no new accepted assistant turn was added.

Expected behavior

Only assistant messages that the user continues from should count toward Illustrator's run interval. Regenerating the same assistant message into another swipe should contribute zero new interval messages.

Actual behavior

The cadence gate always counts one upcoming assistant reply. A regeneration replaces an existing reply with a swipe, so that extra count can reach the interval early and reset Illustrator's cadence.

Steps to reproduce

  1. In a Roleplay chat, enable Illustrator and set a run interval greater than 1.
  2. Generate assistant replies until the cadence is near its threshold.
  3. Swipe or regenerate the current assistant reply and observe Illustrator become eligible even though the conversation did not advance.

Environment

  • Marinara Engine version: Not provided
  • Install type: source
  • OS + version: Not provided
  • Browser or app shell: Not provided

Logs, screenshots, or video

No logs provided. Static trace: shouldSkipAgentByAssistantInterval always adds one upcoming assistant message, including when regenerateMessageId is present.

Additional context

Engine-owned orchestration bug. The downloadable Illustrator package does not own generation cadence.

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 19, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3820 Originally assigned to: @SpicyMarinara on GitHub. ## Summary In Roleplay mode, regenerating or swiping an assistant reply can advance the Illustrator run interval even though no new accepted assistant turn was added. ## Expected behavior Only assistant messages that the user continues from should count toward Illustrator's run interval. Regenerating the same assistant message into another swipe should contribute zero new interval messages. ## Actual behavior The cadence gate always counts one upcoming assistant reply. A regeneration replaces an existing reply with a swipe, so that extra count can reach the interval early and reset Illustrator's cadence. ## Steps to reproduce 1. In a Roleplay chat, enable Illustrator and set a run interval greater than 1. 2. Generate assistant replies until the cadence is near its threshold. 3. Swipe or regenerate the current assistant reply and observe Illustrator become eligible even though the conversation did not advance. ## Environment - Marinara Engine version: Not provided - Install type: source - OS + version: Not provided - Browser or app shell: Not provided ## Logs, screenshots, or video No logs provided. Static trace: `shouldSkipAgentByAssistantInterval` always adds one upcoming assistant message, including when `regenerateMessageId` is present. ## Additional context Engine-owned orchestration bug. The downloadable Illustrator package does not own generation cadence. ## 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.
Author
Owner

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

I am taking this regression back into implementation. The follow-up will verify cadence against accepted Roleplay advances while continuing to exclude swipes/regenerations.

<!-- gh-comment-id:5017654904 --> @SpicyMarinara commented on GitHub (Jul 19, 2026): I am taking this regression back into implementation. The follow-up will verify cadence against accepted Roleplay advances while continuing to exclude swipes/regenerations.
Author
Owner

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

Cadence audit update: the active Roleplay chat has Illustrator interval 2, with the last successful run anchored to message qPfdxwafVjRP6OPvbM14P. That message contains four swipe variants, which correctly remain one message. Only one newer accepted assistant message exists after that anchor. The live cadence endpoint reports assistantMessagesSinceLastRun: 1, remainingAssistantMessages: 0, runsNextAssistantMessage: true, and lastRunMessageFound: true. I am leaving this issue open for confirmation on the next genuinely new assistant reply; no cadence arithmetic was changed without a reproducible failing state.

<!-- gh-comment-id:5017755661 --> @SpicyMarinara commented on GitHub (Jul 19, 2026): Cadence audit update: the active Roleplay chat has Illustrator interval 2, with the last successful run anchored to message `qPfdxwafVjRP6OPvbM14P`. That message contains four swipe variants, which correctly remain one message. Only one newer accepted assistant message exists after that anchor. The live cadence endpoint reports `assistantMessagesSinceLastRun: 1`, `remainingAssistantMessages: 0`, `runsNextAssistantMessage: true`, and `lastRunMessageFound: true`. I am leaving this issue open for confirmation on the next genuinely new assistant reply; no cadence arithmetic was changed without a reproducible failing state.
Author
Owner

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

Fixed in staging by #3822. Roleplay cadence is anchored to accepted assistant messages, swipe variants remain one message, and the follow-up live cadence audit confirmed the next genuinely new assistant reply is eligible without counting regeneration as an advance.

<!-- gh-comment-id:5017915926 --> @SpicyMarinara commented on GitHub (Jul 20, 2026): Fixed in staging by #3822. Roleplay cadence is anchored to accepted assistant messages, swipe variants remain one message, and the follow-up live cadence audit confirmed the next genuinely new assistant reply is eligible without counting regeneration as an advance.
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#2060
No description provided.