[PR #4661] [MERGED] Fix assigned editor, Roleplay, and Noodle issues #6457

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/4661
Author: @SpicyMarinara
Created: 8/5/2026
Status: ✅ Merged
Merged: 8/5/2026
Merged by: @SpicyMarinara

Base: staging ← Head: agent/assigned-issues-4656-4660


📝 Commits (2)

  • b3ea0f8 start assigned issue sweep
  • 79a9eac fix assigned editor and Noodle issues

📊 Changes

13 files changed (+116 additions, -26 deletions)

View changed files

📝 CHANGELOG.md (+4 -0)
📝 e2e/core-flows.e2e.ts (+12 -4)
📝 packages/client/src/components/chat/ChatMessage.tsx (+3 -3)
📝 packages/client/src/components/chat/ChatRoleplaySurface.tsx (+6 -1)
📝 packages/client/src/components/panels/SettingsPanel.tsx (+19 -0)
📝 packages/client/src/components/ui/MacroTextarea.tsx (+6 -3)
📝 packages/client/src/localization/locales/en.json (+2 -0)
📝 packages/client/src/stores/ui.store.ts (+20 -1)
📝 packages/server/src/services/image/image-generation-settings.ts (+3 -0)
📝 packages/server/src/services/noodle/noodle-noodler-images.service.ts (+4 -4)
📝 packages/server/src/services/noodle/noodle-public-images.service.ts (+6 -6)
📝 scripts/regressions/open-issues.regression.ts (+23 -1)
📝 scripts/regressions/roleplay-streaming.regression.ts (+8 -3)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository from staging or a same-repository hotfix/* branch to main.

Linked issues

Closes #4656
Closes #4658
Closes #4659
Closes #4660

Why this change

  • Expanded Character and Preset editors could refocus after parent updates and move the caret to the end.
  • The Roleplay edit Save control exposed only a small, intermittently obstructed pointer target.
  • Roleplay streaming replaced its live text node every animation frame, amplifying Firefox rendering and accessibility work.
  • Noodle timelines reused Illustrator dimensions, which stricter GPT-Image-compatible endpoints reject.

What changed

  • Initialize and focus the shared expanded macro editor only when it opens.
  • Give Roleplay edit controls full 44px hit targets in their own stacking layer.
  • Retain one live Text node while streaming, appending ordinary growth and replacing its data only for rewrites.
  • Add a separately persisted Noodle timeline canvas, default it to 1024x1536, and use it for public Noodle and private NoodleR preview and generation requests.
  • Add focused regression and browser coverage plus Unreleased changelog entries.

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

Verification notes

Automated validation completed locally:

  • pnpm check
  • Focused Playwright coverage for middle-of-text caret stability
  • Focused Playwright coverage for 44px Roleplay edit targets and save behavior on desktop and mobile
  • New regression assertions for stable Roleplay stream nodes and Noodle dimension parsing

The broader Roleplay and open-issues regression scripts reached the new assertions successfully, then encountered unrelated stale source-shape assertions already present on staging.

Manual follow-up requested:

  • Manually reprofile a long Roleplay stream in Firefox with Inspector closed.
  • Manually verify a custom Noodle canvas against the configured external image endpoint.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] <paths> follow-up issue opened
  • Version/release files updated (only if this PR includes a version bump)

UI evidence

Focused Playwright checks passed in desktop Chromium and mobile Chromium; the expanded editor check is desktop-only by existing suite design.

Summary by CodeRabbit

  • New Features

    • Added an independent Noodle timeline image-size setting, defaulting to a 1024×1536 canvas.
    • Noodle image previews, generation, and gallery images now use the configured dimensions.
  • Bug Fixes

    • Improved caret retention and selection behavior in expanded text editing.
    • Enlarged Roleplay message edit controls for easier touch interaction.
    • Improved streaming text updates for Firefox and accessibility by preserving stable text content.

🔄 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/4661 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/5/2026 **Status:** ✅ Merged **Merged:** 8/5/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/assigned-issues-4656-4660` --- ### 📝 Commits (2) - [`b3ea0f8`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b3ea0f85f93ff103b5217e68a55d8d8b9c19cd3b) start assigned issue sweep - [`79a9eac`](https://github.com/Pasta-Devs/Marinara-Engine/commit/79a9eac8ed3185bb5935ca49b3d07be353261066) fix assigned editor and Noodle issues ### 📊 Changes **13 files changed** (+116 additions, -26 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+4 -0) 📝 `e2e/core-flows.e2e.ts` (+12 -4) 📝 `packages/client/src/components/chat/ChatMessage.tsx` (+3 -3) 📝 `packages/client/src/components/chat/ChatRoleplaySurface.tsx` (+6 -1) 📝 `packages/client/src/components/panels/SettingsPanel.tsx` (+19 -0) 📝 `packages/client/src/components/ui/MacroTextarea.tsx` (+6 -3) 📝 `packages/client/src/localization/locales/en.json` (+2 -0) 📝 `packages/client/src/stores/ui.store.ts` (+20 -1) 📝 `packages/server/src/services/image/image-generation-settings.ts` (+3 -0) 📝 `packages/server/src/services/noodle/noodle-noodler-images.service.ts` (+4 -4) 📝 `packages/server/src/services/noodle/noodle-public-images.service.ts` (+6 -6) 📝 `scripts/regressions/open-issues.regression.ts` (+23 -1) 📝 `scripts/regressions/roleplay-streaming.regression.ts` (+8 -3) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository from `staging` or a same-repository `hotfix/*` branch to `main`. ## Linked issues Closes #4656 Closes #4658 Closes #4659 Closes #4660 ## Why this change - Expanded Character and Preset editors could refocus after parent updates and move the caret to the end. - The Roleplay edit Save control exposed only a small, intermittently obstructed pointer target. - Roleplay streaming replaced its live text node every animation frame, amplifying Firefox rendering and accessibility work. - Noodle timelines reused Illustrator dimensions, which stricter GPT-Image-compatible endpoints reject. ## What changed - Initialize and focus the shared expanded macro editor only when it opens. - Give Roleplay edit controls full 44px hit targets in their own stacking layer. - Retain one live `Text` node while streaming, appending ordinary growth and replacing its data only for rewrites. - Add a separately persisted Noodle timeline canvas, default it to 1024x1536, and use it for public Noodle and private NoodleR preview and generation requests. - Add focused regression and browser coverage plus Unreleased changelog entries. ## 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` ### Verification notes Automated validation completed locally: - `pnpm check` - Focused Playwright coverage for middle-of-text caret stability - Focused Playwright coverage for 44px Roleplay edit targets and save behavior on desktop and mobile - New regression assertions for stable Roleplay stream nodes and Noodle dimension parsing The broader Roleplay and open-issues regression scripts reached the new assertions successfully, then encountered unrelated stale source-shape assertions already present on `staging`. Manual follow-up requested: - Manually reprofile a long Roleplay stream in Firefox with Inspector closed. - Manually verify a custom Noodle canvas against the configured external image endpoint. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n] <paths>` follow-up issue opened - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence Focused Playwright checks passed in desktop Chromium and mobile Chromium; the expanded editor check is desktop-only by existing suite design. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added an independent Noodle timeline image-size setting, defaulting to a 1024×1536 canvas. * Noodle image previews, generation, and gallery images now use the configured dimensions. * **Bug Fixes** * Improved caret retention and selection behavior in expanded text editing. * Enlarged Roleplay message edit controls for easier touch interaction. * Improved streaming text updates for Firefox and accessibility by preserving stable text content. <!-- 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:10: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#6457
No description provided.