mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2281] [Issue]: "Mark as new start" (isConversationStart) is ignored when assembling the generation prompt #1116
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#1116
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 @Romuromylus on GitHub (Jun 5, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2281
Originally assigned to: @Romuromylus on GitHub.
Summary
The "Mark as new start" control still toggles the isConversationStart flag, but the refactor's generation prompt assembly never scopes history to the latest marked message. Pre-marker messages keep leaking into the context window.
Expected behavior
Generation should scope chat history to the most recent isConversationStart message before applying hidden-from-AI filtering and the tail limit, so a restarted or forked scene starts clean, matching main.
Actual behavior
The marker has no effect on generation. History is loaded by limit/cursor only and tailed up to the 300-message cap, so older pre-marker messages still enter the prompt, causing stale scene bleed and wasted context.
Steps to reproduce
Impact area
Regression notes
Worked on main. Every main generation entry point scans newest-to-oldest for the marker, slices from it, then filters/tails:
packages/server/src/routes/generate.routes.ts:1960-1972,dry-run-route.ts:643-654,663-664,retry-agents-route.ts:2027-2035,chats.routes.ts:1441-1454. The refactor loads by limit/before-cursor only (src/engine/.../context.ts:75-82,src/engine/generation/start-generation.ts:962-1009,1097-1105) andhistoryMessagesjust filters hidden and slices the last N capped at 300 with no conversation-start cut (src/engine/generation/prompt-assembly.ts:2340-2353,2900-2907). isConversationStart is read only by a UI token estimate (GameNarration.tsx:224), the summary service (auto-summary.service.ts:168-173), and a Rust field allowlist (shared.rs:282), never in the generation path. The toggle still writes the flag (ChatMessage.tsx:2327,use-chat-timeline-actions.ts:574).Environment
5ddb9840(compared against main @b4ab97f)Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:
@Romuromylus commented on GitHub (Jun 6, 2026):
Fixed by #2392, merged into
refactor.