[PR #3585] [MERGED] Fix Noodle attribution, participant rotation, and branch safety #6004

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

📋 Pull Request Information

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

Base: staging ← Head: fix/issues-3582-3584-v2.2.2


📝 Commits (3)

  • b34ca61 fix NovelAI connection verification
  • 32b519c fix Noodle attribution and branch safety
  • 5a204dc address Noodle review findings

📊 Changes

13 files changed (+122 additions, -82 deletions)

View changed files

📝 CHANGELOG.md (+4 -0)
📝 packages/client/src/components/chat/ChatArea.tsx (+20 -3)
📝 packages/server/src/routes/connections.routes.ts (+6 -2)
📝 packages/server/src/routes/noodle.routes.ts (+33 -27)
📝 packages/server/src/services/noodle/noodle-generated-refresh.ts (+9 -6)
➕ packages/server/src/services/noodle/noodle-handle.ts (+3 -0)
📝 packages/server/src/services/noodle/noodle-participant-selection.ts (+3 -9)
📝 packages/server/src/services/noodle/noodle-prompt.ts (+3 -3)
📝 packages/server/src/services/noodle/noodle-response-format.ts (+7 -7)
📝 packages/server/src/services/prompt-overrides/registry/noodle.ts (+3 -2)
📝 packages/shared/src/schemas/noodle.schema.ts (+4 -4)
📝 scripts/regressions/noodle-polls.regression.ts (+7 -7)
📝 scripts/regressions/noodle-prompt.regression.ts (+20 -12)

📄 Description

Why

Three user-facing defects made connection setup misleading, mobile Roleplay branching too easy to trigger accidentally, and Noodle refreshes leak internal character identifiers while selecting an unfair subset of invited characters.

What changed

  • Replaced NovelAI’s retired subscription-endpoint probe with clear Test Image guidance.
  • Added a themed confirmation dialog before message-scoped branch creation.
  • Replaced generated Noodle timeline attribution IDs with case-insensitive handles and removed character, persona, account, and chat-message character IDs from timeline prompt context.
  • Omitted default random-user writing guidance whenever random users are disabled.
  • Randomized eligible participant rotation while preserving recent mention/reply priority and deprioritizing the immediately previous refresh.
  • Documented all three fixes under v2.2.2.

Closes #3582
Closes #3583
Closes #3584

Automated validation

  • pnpm check
  • pnpm regression:noodle
  • pnpm regression:providers
  • pnpm smoke:ui (37 passed, 25 viewport-specific skips)

Manual verification still requested

  • Manually verify branch confirmation in Roleplay on a physical phone.
  • Manually verify NovelAI Test Image with live credentials.
  • Manually inspect a live Noodle refresh with a roster larger than the participant cap.

Summary by CodeRabbit

  • New Features

    • Added confirmation before branching a chat to help prevent accidental actions, especially on mobile.
    • NovelAI connection checks now direct users to Test Image for a complete generation test.
    • Noodle timeline generation now uses account handles and avoids exposing internal identifiers.
    • Improved timeline participant rotation and support for disabling random accounts.
  • Bug Fixes

    • Updated Noodle timeline validation and interactions to reliably use handles instead of internal IDs.

🔄 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/3585 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/13/2026 **Status:** ✅ Merged **Merged:** 7/13/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/issues-3582-3584-v2.2.2` --- ### 📝 Commits (3) - [`b34ca61`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b34ca61c4e9825f7aa119c4066ef1fd5f1463ef9) fix NovelAI connection verification - [`32b519c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/32b519c43c514fe46c58294ff62e844801ca70e7) fix Noodle attribution and branch safety - [`5a204dc`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5a204dc2413dc266e572841f31aa6b5d7ab6d8c9) address Noodle review findings ### 📊 Changes **13 files changed** (+122 additions, -82 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+4 -0) 📝 `packages/client/src/components/chat/ChatArea.tsx` (+20 -3) 📝 `packages/server/src/routes/connections.routes.ts` (+6 -2) 📝 `packages/server/src/routes/noodle.routes.ts` (+33 -27) 📝 `packages/server/src/services/noodle/noodle-generated-refresh.ts` (+9 -6) ➕ `packages/server/src/services/noodle/noodle-handle.ts` (+3 -0) 📝 `packages/server/src/services/noodle/noodle-participant-selection.ts` (+3 -9) 📝 `packages/server/src/services/noodle/noodle-prompt.ts` (+3 -3) 📝 `packages/server/src/services/noodle/noodle-response-format.ts` (+7 -7) 📝 `packages/server/src/services/prompt-overrides/registry/noodle.ts` (+3 -2) 📝 `packages/shared/src/schemas/noodle.schema.ts` (+4 -4) 📝 `scripts/regressions/noodle-polls.regression.ts` (+7 -7) 📝 `scripts/regressions/noodle-prompt.regression.ts` (+20 -12) </details> ### 📄 Description ## Why Three user-facing defects made connection setup misleading, mobile Roleplay branching too easy to trigger accidentally, and Noodle refreshes leak internal character identifiers while selecting an unfair subset of invited characters. ## What changed - Replaced NovelAI’s retired subscription-endpoint probe with clear Test Image guidance. - Added a themed confirmation dialog before message-scoped branch creation. - Replaced generated Noodle timeline attribution IDs with case-insensitive handles and removed character, persona, account, and chat-message character IDs from timeline prompt context. - Omitted default random-user writing guidance whenever random users are disabled. - Randomized eligible participant rotation while preserving recent mention/reply priority and deprioritizing the immediately previous refresh. - Documented all three fixes under v2.2.2. Closes #3582 Closes #3583 Closes #3584 ## Automated validation - `pnpm check` - `pnpm regression:noodle` - `pnpm regression:providers` - `pnpm smoke:ui` (37 passed, 25 viewport-specific skips) ## Manual verification still requested - [ ] Manually verify branch confirmation in Roleplay on a physical phone. - [ ] Manually verify NovelAI Test Image with live credentials. - [ ] Manually inspect a live Noodle refresh with a roster larger than the participant cap. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added confirmation before branching a chat to help prevent accidental actions, especially on mobile. - NovelAI connection checks now direct users to **Test Image** for a complete generation test. - Noodle timeline generation now uses account handles and avoids exposing internal identifiers. - Improved timeline participant rotation and support for disabling random accounts. - **Bug Fixes** - Updated Noodle timeline validation and interactions to reliably use handles instead of internal IDs. <!-- 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:06 +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#6004
No description provided.