mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #1201] [Issue]: Noodle timeline refresh drops its context body on small context windows #613
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#613
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 (Oct 2, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1201
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Noodle bundles a vendored copy of the Engine's context fitter (
sources/engine/packages/server/src/services/llm/base-provider.ts, unchanged since 2026-07-14) that predates Engine #4124. When a timeline prompt plus Noodle's answer reserve (4096 + 1024 tokens per account) does not fit the connection's Max Context, it deletes the whole context message (accounts, handles, character profiles, chats and the timeline) and keeps the fullmax_tokens. The model only sees the rules and the JSON template.Affected package
noodle, every build from 1.2.20 through 1.4.0.Expected behavior
The whole timeline prompt reaches the model with a smaller answer limit, or the refresh stops with a clear message when the prompt cannot fit.
Actual behavior
The backend receives only the system prompt and the JSON format. The model writes a short answer about nobody, and the correction pass is cut the same way. Debug Mode's
[debug/noodle] Prompt sent to modelstill prints the full prompt, because it is logged before the fit. The Engine console shows[LLM context] Trimmed prompt for <model> from ~X to ~Y tokens (budget ~B, maxContext=C).Steps to reproduce
Environment
Logs, screenshots, or video
Reproduced end to end in a real Engine with a fake backend that records every request; the captures are summarized in #1199.
Additional context
Reported downstream as Pasta-Devs/Marinara-Engine#6973 (Gemma 4 on KoboldCpp). It is not yet confirmed that this is that reporter's trigger: their KoboldCpp runs at 49152, where the cut needs a very large prompt. Fix: #1199 (Noodle 1.4.1).
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Oct 2, 2026):
Fixed on staging by #1199 (Noodle 1.4.1). Timeline refreshes now keep the whole prompt and lower the answer limit instead, and stop with a clear message when the prompt can't fit. This stays open until the fix reaches main.