mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #3546] [MERGED] Add opt-in tone, continuity, and lorebook settings to Noodle refreshes #5989
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#5989
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3546
Author: @Gunterlie
Created: 7/13/2026
Status: ✅ Merged
Merged: 7/13/2026
Merged by: @SpicyMarinara
Base:
staging← Head:noodle-features📝 Commits (2)
8fe521dImprove Noodle timeline writing quality with opt-in settings075a89aAddress CodeRabbit review feedback📊 Changes
13 files changed (+414 additions, -29 deletions)
View changed files
📝
CHANGELOG.md(+4 -0)📝
docs/development/noodle-internals.md(+4 -2)📝
docs/noodle/settings.md(+21 -1)📝
packages/client/src/components/noodle/NoodleView.tsx(+30 -0)📝
packages/server/src/routes/noodle.routes.ts(+125 -8)📝
packages/server/src/services/noodle/noodle-prompt.ts(+87 -5)📝
packages/server/src/services/prompt-overrides/index.ts(+2 -0)📝
packages/server/src/services/prompt-overrides/registry.ts(+4 -2)📝
packages/server/src/services/prompt-overrides/registry/noodle.ts(+17 -0)📝
packages/shared/src/constants/defaults.ts(+9 -0)📝
packages/shared/src/schemas/noodle.schema.ts(+4 -0)📝
packages/shared/src/types/noodle.ts(+2 -0)📝
scripts/regressions/noodle-prompt.regression.ts(+105 -11)📄 Description
Linked issue
Closes #3545
Why this change
Noodle's refresh writer works well already, but there's headroom on top of it: every account
tends toward a similarly upbeat tone regardless of personality, older posts rarely get revisited
between refreshes so the timeline feels like disconnected one-off posts, and lorebook entries
that already exist for a character never surface in what they post about. This PR adds settings
for all three, each off by default so no existing timeline changes unless a user turns one on.
What changed
enableEnhancedTimelineWritingsetting (off by default): grounds each account's tone inits own Personality/Description/Backstory instead of a default upbeat voice, encourages
cross-account replies within a refresh, and improves older-post recall (higher chance, more
items, weighted toward posts relevant to currently active accounts instead of pure-random).
enableLorebookContextsetting (off by default): scans recent timeline text and characterprofiles for lorebook keyword matches and injects them as world/lore context, reusing the
existing multi-character
processLorebooks()system, with a Noodle-specific token budget thatscales with active account count so a large roster can't blow up the prompt.
Generations -> Image Generation Prompt Overrides), scoped to tone/creative-freedom text only.
Structured-action limits, target field rules, and other schema-critical instructions stay
hardcoded outside the override so a rewrite can't break
noodleGeneratedRefreshSchemaparsing.status/activity when that chat has Allow Noodle references on and a running schedule (reuses
the chat's already-derived status metadata, no new computation).
the prompt-override default/round-trip behavior.
Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Automated checks run and passing on this branch (rebased onto current
staging):pnpm check,pnpm regression:noodle,pnpm regression:prompt. Not yet verified manually: a live refresh witha real AI connection with each toggle on and off, the new prompt override rendering/saving
correctly in the Settings UI, and the two new settings sections in light/dark mode and on a
mobile viewport. Please verify these before merging.
Docs and release impact
Docs were updated as part of this PR (
docs/noodle/settings.md,docs/development/noodle-internals.md,CHANGELOG.md) — leaving the checkbox above for manual confirmation rather than pre-checking it.UI evidence
Not yet captured — no screenshots since the new settings haven't been exercised in a running app.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.