[PR #3695] [MERGED] Bound Noodle context and inherit connection custom parameters #6055

Closed
opened 2026-10-23 04:06:38 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3695
Author: @SpicyMarinara
Created: 7/16/2026
Status: ✅ Merged
Merged: 7/16/2026
Merged by: @SpicyMarinara

Base: staging ← Head: agent/noodle-context-bounds


📝 Commits (2)

  • 958e553 Bound Noodle context and inherit custom parameters
  • 7cafd14 Address CodeRabbit review findings

📊 Changes

40 files changed (+458 additions, -72 deletions)

View changed files

📝 CHANGELOG.md (+10 -0)
📝 docs/development/noodle-internals.md (+3 -3)
📝 docs/noodle/settings.md (+4 -1)
📝 docs/prompts/generation-parameters.md (+2 -0)
📝 e2e/core-flows.e2e.ts (+30 -0)
📝 packages/client/src/components/noodle/NoodleView.tsx (+19 -3)
📝 packages/server/src/routes/agents.routes.ts (+3 -0)
📝 packages/server/src/routes/characters.routes.ts (+3 -0)
📝 packages/server/src/routes/chats.routes.ts (+3 -0)
📝 packages/server/src/routes/connections.routes.ts (+7 -0)
📝 packages/server/src/routes/conversation.routes.ts (+3 -0)
📝 packages/server/src/routes/encounter.routes.ts (+9 -0)
📝 packages/server/src/routes/game.routes.ts (+1 -0)
📝 packages/server/src/routes/generate/conversation-custom-assets.ts (+3 -0)
📝 packages/server/src/routes/generate/conversation-history-runtime.ts (+6 -0)
📝 packages/server/src/routes/generate/dry-run-route.ts (+3 -0)
📝 packages/server/src/routes/generate/image-captioning-runtime.ts (+2 -0)
📝 packages/server/src/routes/generate/raw-route.ts (+1 -0)
📝 packages/server/src/routes/generate/retry-agents-route.ts (+3 -0)
📝 packages/server/src/routes/lorebooks.routes.ts (+3 -0)

...and 20 more files

📄 Description

Linked issue

Follow-up to #3688. This maintainer-requested follow-up was implemented directly, so no new issue was filed after the work had already started.

Why this change

Large Noodle invite rosters could trigger first-time profile generation for every eligible character before the refresh selected its active participants. That made a refresh configured for only a few active characters capable of sending an enormous profile request. Separately, connection-level Custom Parameters were not reliably inherited by direct generation paths such as Noodle, summaries, and other feature calls.

What changed

  • Bind saved connection Custom Parameters at the provider boundary for every API-backed text request, including custom endpoints hosted locally, while preserving per-chat and per-call precedence.
  • Select Noodle participants before profile generation, generate only missing profiles for selected characters, and send only selected character cards to timeline generation.
  • Cap Noodle world/lore context and chat carryover at 8,192 estimated tokens each.
  • Keep the three Noodle Carryover mode controls equal-width, fully readable, and separated from their checkboxes.
  • Add provider, Noodle, prompt, and responsive UI regressions plus user and developer documentation.
  • Record the behavior changes under CHANGELOG Unreleased.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Automated evidence:

  • pnpm check
  • pnpm version:check
  • pnpm regression:providers
  • pnpm regression:noodle
  • pnpm regression:prompt
  • Focused Playwright carryover overflow/spacing regression at 1024x700
  • Full UI smoke run: 62 passed and 39 skipped; one unrelated Hierarchical Maps case reported a missing-resource 404

Manual verification notes

  • The maintainer verified the final Noodle Carryover layout in the running app and confirmed the labels, spacing, and equal button widths.
  • No container build was performed.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

Updated the Noodle settings guide, Noodle internals, generation-parameter guide, and CHANGELOG. No version bump is included.

UI evidence

The focused Playwright regression measures each label and checkbox in the rendered Noodle settings row and requires at least 6px separation while preserving equal-width controls.

Summary by CodeRabbit

  • New Features

    • Connection-level custom parameters now apply consistently across AI-generated content, including Noodle, summaries, agents, local endpoints, and other generation tools.
    • Per-chat and per-request custom parameters continue to override connection defaults.
  • Bug Fixes

    • Noodle refreshes now select participants before generating missing profiles and skip characters with existing profiles.
    • Large rosters are prevented from overwhelming lore and carryover context.
    • Carryover mode controls now keep equal widths with fully visible labels.
  • Documentation

    • Updated Noodle and generation settings documentation with selection behavior and context limits.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/3695 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/16/2026 **Status:** ✅ Merged **Merged:** 7/16/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/noodle-context-bounds` --- ### 📝 Commits (2) - [`958e553`](https://github.com/Pasta-Devs/Marinara-Engine/commit/958e5534f7cb318d29e4c75304730e8d8d8f95cf) Bound Noodle context and inherit custom parameters - [`7cafd14`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7cafd1418fabe23c2bb9f05722d191049c003ee3) Address CodeRabbit review findings ### 📊 Changes **40 files changed** (+458 additions, -72 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+10 -0) 📝 `docs/development/noodle-internals.md` (+3 -3) 📝 `docs/noodle/settings.md` (+4 -1) 📝 `docs/prompts/generation-parameters.md` (+2 -0) 📝 `e2e/core-flows.e2e.ts` (+30 -0) 📝 `packages/client/src/components/noodle/NoodleView.tsx` (+19 -3) 📝 `packages/server/src/routes/agents.routes.ts` (+3 -0) 📝 `packages/server/src/routes/characters.routes.ts` (+3 -0) 📝 `packages/server/src/routes/chats.routes.ts` (+3 -0) 📝 `packages/server/src/routes/connections.routes.ts` (+7 -0) 📝 `packages/server/src/routes/conversation.routes.ts` (+3 -0) 📝 `packages/server/src/routes/encounter.routes.ts` (+9 -0) 📝 `packages/server/src/routes/game.routes.ts` (+1 -0) 📝 `packages/server/src/routes/generate/conversation-custom-assets.ts` (+3 -0) 📝 `packages/server/src/routes/generate/conversation-history-runtime.ts` (+6 -0) 📝 `packages/server/src/routes/generate/dry-run-route.ts` (+3 -0) 📝 `packages/server/src/routes/generate/image-captioning-runtime.ts` (+2 -0) 📝 `packages/server/src/routes/generate/raw-route.ts` (+1 -0) 📝 `packages/server/src/routes/generate/retry-agents-route.ts` (+3 -0) 📝 `packages/server/src/routes/lorebooks.routes.ts` (+3 -0) _...and 20 more files_ </details> ### 📄 Description ## Linked issue Follow-up to #3688. This maintainer-requested follow-up was implemented directly, so no new issue was filed after the work had already started. ## Why this change Large Noodle invite rosters could trigger first-time profile generation for every eligible character before the refresh selected its active participants. That made a refresh configured for only a few active characters capable of sending an enormous profile request. Separately, connection-level Custom Parameters were not reliably inherited by direct generation paths such as Noodle, summaries, and other feature calls. ## What changed - Bind saved connection Custom Parameters at the provider boundary for every API-backed text request, including custom endpoints hosted locally, while preserving per-chat and per-call precedence. - Select Noodle participants before profile generation, generate only missing profiles for selected characters, and send only selected character cards to timeline generation. - Cap Noodle world/lore context and chat carryover at 8,192 estimated tokens each. - Keep the three Noodle Carryover mode controls equal-width, fully readable, and separated from their checkboxes. - Add provider, Noodle, prompt, and responsive UI regressions plus user and developer documentation. - Record the behavior changes under CHANGELOG Unreleased. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` Automated evidence: - `pnpm check` - `pnpm version:check` - `pnpm regression:providers` - `pnpm regression:noodle` - `pnpm regression:prompt` - Focused Playwright carryover overflow/spacing regression at 1024x700 - Full UI smoke run: 62 passed and 39 skipped; one unrelated Hierarchical Maps case reported a missing-resource 404 ### Manual verification notes - The maintainer verified the final Noodle Carryover layout in the running app and confirmed the labels, spacing, and equal button widths. - No container build was performed. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) Updated the Noodle settings guide, Noodle internals, generation-parameter guide, and CHANGELOG. No version bump is included. ## UI evidence The focused Playwright regression measures each label and checkbox in the rendered Noodle settings row and requires at least 6px separation while preserving equal-width controls. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Connection-level custom parameters now apply consistently across AI-generated content, including Noodle, summaries, agents, local endpoints, and other generation tools. * Per-chat and per-request custom parameters continue to override connection defaults. * **Bug Fixes** * Noodle refreshes now select participants before generating missing profiles and skip characters with existing profiles. * Large rosters are prevented from overwhelming lore and carryover context. * Carryover mode controls now keep equal widths with fully visible labels. * **Documentation** * Updated Noodle and generation settings documentation with selection behavior and context limits. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:06:38 +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#6055
No description provided.