[PR #3689] [MERGED] fix: preserve Noodle context and custom generation parameters #6051

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

📋 Pull Request Information

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

Base: staging ← Head: agent/issues-3687-3688


📝 Commits (4)

  • a7770ea fix: resolve Noodle reply mentions and macros
  • d22c643 fix: preserve custom parameters and reasoning
  • ee6d8d0 Merge remote-tracking branch 'origin/staging' into agent/issues-3687-3688
  • 0d283b7 fix: preserve legacy custom parameter literals

📊 Changes

9 files changed (+323 additions, -61 deletions)

View changed files

📝 CHANGELOG.md (+2 -0)
📝 e2e/core-flows.e2e.ts (+20 -0)
📝 packages/client/src/components/noodle/NoodleView.tsx (+32 -9)
📝 packages/client/src/components/ui/GenerationParametersEditor.tsx (+6 -33)
➕ packages/client/src/lib/generation-custom-parameters.ts (+120 -0)
📝 packages/server/src/routes/noodle.routes.ts (+24 -2)
📝 packages/server/src/services/llm/providers/openai.provider.ts (+40 -16)
📝 scripts/regressions/open-issues.regression.ts (+28 -0)
📝 scripts/regressions/provider-compat.regression.ts (+51 -1)

📄 Description

Linked issue

Closes #3687
Closes #3688

Why this change

  • Noodle reply mentions were plain text, and active Persona, Character, and lorebook macros could reach refresh prompts unresolved.
  • Connection Custom Parameters discarded invalid drafts and made bare string values appear unsupported.
  • Dynamically discovered OpenRouter models could resolve a reasoning effort in Peek Prompt while unknown-model parameter suppression removed the actual provider reasoning request.

What changed

  • Reused the accessible Noodle mention renderer for posts and replies, with live-account profile links and safe snapshot fallbacks.
  • Built the standard Noodle macro context from the active Persona and Characters, then resolved Persona, Character, and final linked-lorebook content before provider submission.
  • Added a conservative Custom Parameters parser that preserves arbitrary JSON values, accepts convenient bare scalar strings, and keeps invalid drafts visible with an error.
  • Sent OpenRouter unified reasoning: { effort } configuration for dynamically discovered models without weakening sampler suppression.
  • Updated provider logs to report the effective nested or legacy reasoning request and added regressions for the captured OpenRouter body.
  • Updated the v3.2.2 changelog.

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

Manual verification notes

  • pnpm check
  • pnpm regression:providers
  • pnpm regression:issues
  • pnpm regression:noodle
  • Focused desktop Playwright flow: Noodle posts tag invited characters with @handle mentions
  • pnpm version:check
  • pnpm credits:check
  • git diff --check
  • Manually verify a Noodle refresh with {{user}} in the active Persona, Character, and linked lorebook content.
  • Manually verify Custom Parameters save quoted JSON, bare string values, nested objects, arrays, numbers, booleans, and null.
  • Manually verify OpenRouter reasoning on a dynamically discovered reasoning model.

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)

UI evidence (if applicable)

  • Behavioral editor and inline-link changes are covered by the focused browser regression; no screenshot attached.

Summary by CodeRabbit

  • Bug Fixes
    • Noodle now makes tagged @mentions clickable in posts and replies, opening the referenced profile.
    • Persona, character, and lorebook macros are resolved before Noodle refresh prompts are generated.
    • Connection Custom Parameters now preserve flexible JSON, bare-string values, and common literal formats instead of rejecting valid drafts.
    • Reasoning-effort settings now work consistently with dynamically discovered OpenRouter models.

🔄 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/3689 **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/issues-3687-3688` --- ### 📝 Commits (4) - [`a7770ea`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a7770ea6ae61b0c0090618dd1acca4b5680a0dd3) fix: resolve Noodle reply mentions and macros - [`d22c643`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d22c64312782aa2b6167a67a595466f11262ff91) fix: preserve custom parameters and reasoning - [`ee6d8d0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ee6d8d0f961132ece798d1408c2b580aafdb13eb) Merge remote-tracking branch 'origin/staging' into agent/issues-3687-3688 - [`0d283b7`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0d283b7afa7627d484dce9514c684de5ac3e8c51) fix: preserve legacy custom parameter literals ### 📊 Changes **9 files changed** (+323 additions, -61 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -0) 📝 `e2e/core-flows.e2e.ts` (+20 -0) 📝 `packages/client/src/components/noodle/NoodleView.tsx` (+32 -9) 📝 `packages/client/src/components/ui/GenerationParametersEditor.tsx` (+6 -33) ➕ `packages/client/src/lib/generation-custom-parameters.ts` (+120 -0) 📝 `packages/server/src/routes/noodle.routes.ts` (+24 -2) 📝 `packages/server/src/services/llm/providers/openai.provider.ts` (+40 -16) 📝 `scripts/regressions/open-issues.regression.ts` (+28 -0) 📝 `scripts/regressions/provider-compat.regression.ts` (+51 -1) </details> ### 📄 Description ## Linked issue Closes #3687 Closes #3688 ## Why this change - Noodle reply mentions were plain text, and active Persona, Character, and lorebook macros could reach refresh prompts unresolved. - Connection Custom Parameters discarded invalid drafts and made bare string values appear unsupported. - Dynamically discovered OpenRouter models could resolve a reasoning effort in Peek Prompt while unknown-model parameter suppression removed the actual provider reasoning request. ## What changed - Reused the accessible Noodle mention renderer for posts and replies, with live-account profile links and safe snapshot fallbacks. - Built the standard Noodle macro context from the active Persona and Characters, then resolved Persona, Character, and final linked-lorebook content before provider submission. - Added a conservative Custom Parameters parser that preserves arbitrary JSON values, accepts convenient bare scalar strings, and keeps invalid drafts visible with an error. - Sent OpenRouter unified `reasoning: { effort }` configuration for dynamically discovered models without weakening sampler suppression. - Updated provider logs to report the effective nested or legacy reasoning request and added regressions for the captured OpenRouter body. - Updated the v3.2.2 changelog. ## 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` ### Manual verification notes - `pnpm check` - `pnpm regression:providers` - `pnpm regression:issues` - `pnpm regression:noodle` - Focused desktop Playwright flow: `Noodle posts tag invited characters with @handle mentions` - `pnpm version:check` - `pnpm credits:check` - `git diff --check` - Manually verify a Noodle refresh with `{{user}}` in the active Persona, Character, and linked lorebook content. - Manually verify Custom Parameters save quoted JSON, bare string values, nested objects, arrays, numbers, booleans, and null. - Manually verify OpenRouter reasoning on a dynamically discovered reasoning model. ## 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) ## UI evidence (if applicable) - Behavioral editor and inline-link changes are covered by the focused browser regression; no screenshot attached. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Noodle now makes tagged `@mentions` clickable in posts and replies, opening the referenced profile. - Persona, character, and lorebook macros are resolved before Noodle refresh prompts are generated. - Connection Custom Parameters now preserve flexible JSON, bare-string values, and common literal formats instead of rejecting valid drafts. - Reasoning-effort settings now work consistently with dynamically discovered OpenRouter models. <!-- 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:37 +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#6051
No description provided.