[PR #3507] [MERGED] Fix generation feedback, reasoning, Noodle, and portrait persistence #5970

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

📋 Pull Request Information

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

Base: staging ← Head: fix/issues-3495-3506


📝 Commits (4)

  • 6bdb807 Fix roleplay streaming and conversation cleanup
  • 27b06cc Fix Game, reasoning, Noodle, and portrait issues
  • 96d1917 Merge remote-tracking branch 'origin/staging' into fix/issues-3495-3506
  • b0fd368 fix: address CodeRabbit review feedback

📊 Changes

33 files changed (+1311 additions, -120 deletions)

View changed files

📝 CHANGELOG.md (+11 -1)
📝 e2e/core-flows.e2e.ts (+254 -0)
📝 packages/client/src/components/chat/ChatArea.tsx (+14 -0)
📝 packages/client/src/components/chat/ChatRoleplaySurface.tsx (+12 -0)
📝 packages/client/src/components/game/GameSetupWizard.tsx (+42 -1)
📝 packages/client/src/components/game/GameSurface.tsx (+9 -7)
📝 packages/client/src/components/layout/AppShell.tsx (+59 -13)
📝 packages/client/src/components/noodle/NoodleView.tsx (+34 -0)
📝 packages/client/src/features/tracker-panel/components/sections/PersonaInventoryPanel.tsx (+20 -8)
📝 packages/client/src/hooks/use-characters.ts (+3 -1)
📝 packages/client/src/hooks/use-generate.ts (+29 -13)
📝 packages/client/src/lib/api-client.ts (+37 -2)
📝 packages/client/src/lib/generation-stream-policy.ts (+49 -0)
📝 packages/client/src/lib/tts-dialogue.ts (+18 -5)
📝 packages/client/src/stores/chat.store.ts (+16 -0)
📝 packages/client/src/styles/globals.css (+37 -0)
📝 packages/server/src/routes/generate.routes.ts (+18 -9)
📝 packages/server/src/routes/generate/image-captioning-runtime.ts (+8 -4)
📝 packages/server/src/routes/noodle.routes.ts (+138 -28)
📝 packages/server/src/services/conversation/transcript-sanitize.ts (+23 -1)

...and 13 more files

📄 Description

Why

Several user-facing generation and persistence paths were inconsistent: Game setup offered almost no progress feedback, the Conversation runtime silently discarded the UI default reasoning effort, Noodle could repeat characters and interactions while text-only models lacked image context, validation errors rendered as [object Object], and pending portrait edits could be lost on page exit.

This PR also carries the previously completed Roleplay streaming, rewrite comparison, TTS markup filtering, shell motion, and Conversation response-envelope cleanup requested by the maintainer.

What changed

  • Added a visible, accessible Game world-generation progress bar with elapsed time and first-turn phase labels.
  • Aligned the shared and server reasoning default with the UI Maximum default while preserving an explicit disabled value.
  • Added optional Noodle image captioning through a selectable vision-capable connection.
  • Deprioritized accounts used in the preceding Noodle refresh unless they are tagged or directly involved.
  • Rejected repeated same-post activity and self-replies unless a tag or direct reply creates legitimate new activity.
  • Flattened structured API validation failures into readable messages.
  • Flushed pending persona portrait focus/zoom saves on pagehide using a narrow keepalive request.
  • Updated the v2.2.0 changelog and deterministic regressions.

Closes #3495
Closes #3498
Closes #3505
Closes #3506

Validation

  • pnpm check
  • pnpm version:check
  • pnpm regression:noodle
  • pnpm regression:issues
  • pnpm regression:prompt
  • pnpm regression:providers
  • pnpm exec playwright test -c playwright.config.ts --project=desktop-chromium --workers=1 --grep "Noodle interface icons consistently use Noodle blue|Noodle settings persist through refetch and reload" (2 passed)

The full parallel pnpm smoke:ui run reached 16 passing tests before the shared test server began returning HTTP 429 across unrelated cases; the affected Noodle checks pass when rerun serially.

Manual verification needed

  • Manually verify the Game setup progress animation on desktop and mobile.
  • Manually verify GLM reasoning through NanoGPT with default and explicitly disabled effort.
  • Manually verify Noodle captioning with a vision caption model and a text-only timeline model.
  • Manually verify portrait crop persistence after immediate refresh/tab exit.
  • Manually verify the carried Roleplay streaming, rewrite switching, TTS, and shell motion changes.

Summary by CodeRabbit

  • New Features

    • Added live progress feedback during game world setup, including elapsed time, animated progress, and generation phases.
    • Added optional Noodle image captioning with a selectable vision connection.
    • Improved Noodle refresh participant selection and interaction handling.
  • Bug Fixes

    • Improved roleplay streaming, rewriting, scrolling, panel transitions, and duplicate message prevention.
    • Improved transcript, dialogue, error-message, profile, persona-saving, TTS, and sidebar behavior.
    • Standardized default reasoning effort settings.

🔄 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/3507 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/11/2026 **Status:** ✅ Merged **Merged:** 7/12/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/issues-3495-3506` --- ### 📝 Commits (4) - [`6bdb807`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6bdb807e277da58fce69b6ee3e9578508c271020) Fix roleplay streaming and conversation cleanup - [`27b06cc`](https://github.com/Pasta-Devs/Marinara-Engine/commit/27b06cc9e21315965e85089c9b984222c86b6f57) Fix Game, reasoning, Noodle, and portrait issues - [`96d1917`](https://github.com/Pasta-Devs/Marinara-Engine/commit/96d19179f1316cd819cbf852d4e3b10cb05d1240) Merge remote-tracking branch 'origin/staging' into fix/issues-3495-3506 - [`b0fd368`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b0fd36831112e4c27256cf0af0657dda4013fa28) fix: address CodeRabbit review feedback ### 📊 Changes **33 files changed** (+1311 additions, -120 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+11 -1) 📝 `e2e/core-flows.e2e.ts` (+254 -0) 📝 `packages/client/src/components/chat/ChatArea.tsx` (+14 -0) 📝 `packages/client/src/components/chat/ChatRoleplaySurface.tsx` (+12 -0) 📝 `packages/client/src/components/game/GameSetupWizard.tsx` (+42 -1) 📝 `packages/client/src/components/game/GameSurface.tsx` (+9 -7) 📝 `packages/client/src/components/layout/AppShell.tsx` (+59 -13) 📝 `packages/client/src/components/noodle/NoodleView.tsx` (+34 -0) 📝 `packages/client/src/features/tracker-panel/components/sections/PersonaInventoryPanel.tsx` (+20 -8) 📝 `packages/client/src/hooks/use-characters.ts` (+3 -1) 📝 `packages/client/src/hooks/use-generate.ts` (+29 -13) 📝 `packages/client/src/lib/api-client.ts` (+37 -2) 📝 `packages/client/src/lib/generation-stream-policy.ts` (+49 -0) 📝 `packages/client/src/lib/tts-dialogue.ts` (+18 -5) 📝 `packages/client/src/stores/chat.store.ts` (+16 -0) 📝 `packages/client/src/styles/globals.css` (+37 -0) 📝 `packages/server/src/routes/generate.routes.ts` (+18 -9) 📝 `packages/server/src/routes/generate/image-captioning-runtime.ts` (+8 -4) 📝 `packages/server/src/routes/noodle.routes.ts` (+138 -28) 📝 `packages/server/src/services/conversation/transcript-sanitize.ts` (+23 -1) _...and 13 more files_ </details> ### 📄 Description ## Why Several user-facing generation and persistence paths were inconsistent: Game setup offered almost no progress feedback, the Conversation runtime silently discarded the UI default reasoning effort, Noodle could repeat characters and interactions while text-only models lacked image context, validation errors rendered as `[object Object]`, and pending portrait edits could be lost on page exit. This PR also carries the previously completed Roleplay streaming, rewrite comparison, TTS markup filtering, shell motion, and Conversation response-envelope cleanup requested by the maintainer. ## What changed - Added a visible, accessible Game world-generation progress bar with elapsed time and first-turn phase labels. - Aligned the shared and server reasoning default with the UI `Maximum` default while preserving an explicit disabled value. - Added optional Noodle image captioning through a selectable vision-capable connection. - Deprioritized accounts used in the preceding Noodle refresh unless they are tagged or directly involved. - Rejected repeated same-post activity and self-replies unless a tag or direct reply creates legitimate new activity. - Flattened structured API validation failures into readable messages. - Flushed pending persona portrait focus/zoom saves on `pagehide` using a narrow keepalive request. - Updated the v2.2.0 changelog and deterministic regressions. Closes #3495 Closes #3498 Closes #3505 Closes #3506 ## Validation - `pnpm check` - `pnpm version:check` - `pnpm regression:noodle` - `pnpm regression:issues` - `pnpm regression:prompt` - `pnpm regression:providers` - `pnpm exec playwright test -c playwright.config.ts --project=desktop-chromium --workers=1 --grep "Noodle interface icons consistently use Noodle blue|Noodle settings persist through refetch and reload"` (2 passed) The full parallel `pnpm smoke:ui` run reached 16 passing tests before the shared test server began returning HTTP 429 across unrelated cases; the affected Noodle checks pass when rerun serially. ## Manual verification needed - [ ] Manually verify the Game setup progress animation on desktop and mobile. - [ ] Manually verify GLM reasoning through NanoGPT with default and explicitly disabled effort. - [ ] Manually verify Noodle captioning with a vision caption model and a text-only timeline model. - [ ] Manually verify portrait crop persistence after immediate refresh/tab exit. - [ ] Manually verify the carried Roleplay streaming, rewrite switching, TTS, and shell motion changes. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added live progress feedback during game world setup, including elapsed time, animated progress, and generation phases. * Added optional Noodle image captioning with a selectable vision connection. * Improved Noodle refresh participant selection and interaction handling. * **Bug Fixes** * Improved roleplay streaming, rewriting, scrolling, panel transitions, and duplicate message prevention. * Improved transcript, dialogue, error-message, profile, persona-saving, TTS, and sidebar behavior. * Standardized default reasoning effort settings. <!-- 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:05:44 +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#5970
No description provided.