[PR #4193] [MERGED] Fix assigned generation, composer, preset, and Illustrator issues #6277

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

📋 Pull Request Information

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

Base: staging ← Head: agent/assigned-issues-4187-4192


📝 Commits (3)

  • da9f036 Fix Conversation media picker interactions
  • 060c15b Fix assigned generation and editor issues
  • 223f9e3 Address CodeRabbit generation review

📊 Changes

17 files changed (+518 additions, -252 deletions)

View changed files

📝 e2e/core-flows.e2e.ts (+162 -146)
📝 packages/client/src/components/chat/ChatArea.tsx (+9 -3)
📝 packages/client/src/components/chat/ChatInput.tsx (+5 -1)
📝 packages/client/src/components/chat/ChatRoleplaySurface.tsx (+6 -3)
📝 packages/client/src/components/chat/ConversationMediaPickerPanel.tsx (+8 -3)
📝 packages/client/src/components/chat/WeatherEffects.tsx (+26 -10)
📝 packages/client/src/components/game/GameSurface.tsx (+9 -1)
📝 packages/client/src/components/ui/EmojiPicker.tsx (+44 -37)
📝 packages/client/src/components/ui/KaomojiPicker.tsx (+7 -3)
📝 packages/client/src/hooks/use-generate.ts (+2 -1)
📝 packages/client/src/styles/globals.css (+20 -0)
📝 packages/client/src/workers/weather-effects.worker.ts (+15 -2)
📝 packages/server/src/services/prompt/assembler.ts (+45 -27)
📝 packages/server/src/services/prompt/index.ts (+7 -1)
📝 scripts/regressions/open-issues.regression.ts (+25 -12)
📝 scripts/regressions/prompt.regression.ts (+36 -0)
📝 scripts/regressions/roleplay-streaming.regression.ts (+92 -2)

📄 Description

Why

This assigned-issue sweep addresses active user-facing regressions in chat performance and interaction:

  • an active Marinara tab can contend with local LLM generation (#4187)
  • Firefox on macOS still hitches during Roleplay typing and held deletion (#4188)
  • Conversation media searches and picker scrolling are inconsistent (#4189)
  • preset Random Pick variables can resolve deterministically instead of sampling (#4190)
  • completed assistant text remains locked while its queued Illustrator image runs (#4192)

The translated backup-retention follow-up is handled separately in #4194 against docs-i18n, as required by repository policy.

Summary

  • suspend weather workers and decorative Roleplay/Game animation while generation needs local GPU resources
  • lengthen deletion-only textarea resize settling and isolate the Firefox Roleplay paint surface
  • align Emoji and Kaomoji search shells with GIF search and keep media pickers open during internal pointer/scrollbar interaction
  • normalize legacy choice flags and sample Random Pick selections on every prompt assembly
  • separate completed text streaming state from background Illustrator work so the last assistant message can be edited or deleted while the frozen image job continues; deleted-message results remain in Gallery
  • add focused prompt, Roleplay/Illustrator, source, and Playwright regression coverage

Validation

Passed locally:

  • pnpm check
  • pnpm regression:prompt
  • pnpm regression:roleplay
  • targeted desktop Playwright proof for Conversation media picker search styling and internal pointer handling

Passed on GitHub:

  • pnpm-validate
  • container-build-test

Known baseline limitations observed locally:

  • pnpm regression:issues stops at the pre-existing mobile background crossfade-slot assertion before reaching this sweep
  • the full 216-case pnpm smoke:ui run passed 136 and skipped 73; the changed Conversation picker case passed on desktop and mobile, while seven unrelated existing cases failed around a stale storage version expectation, the custom-agent Danger Zone gate, and background-library behavior

Manual verification

  • Manually verify Roleplay typing and held-backspace deletion in Firefox on macOS
  • Manually verify local generation throughput with an active Roleplay or Game tab
  • Manually verify Emoji, Kaomoji, GIF, and Sticker picker scrolling in Conversation mode
  • Manually verify repeated Random Pick prompt generations can choose different selected options
  • Manually verify editing and deleting the last assistant message while Illustrator is running

Closes #4187
Closes #4188
Closes #4189
Closes #4190
Closes #4192

Summary by CodeRabbit

  • New Features
    • Conversation media pickers now use consistent, polished search UI and improved in-picker interactions.
    • External agent imports require permission review and capability selection before being allowed.
  • Bug Fixes
    • Ambient weather/game effects now reliably pause during generation for clearer, smoother visuals.
    • Streaming behavior is refined so message recall/edit and deletion resizing behave more predictably.
    • Roleplay ambient rendering pause state is now applied more consistently.
  • Tests
    • Expanded e2e/UI regression coverage for agent import permissions, media pickers, roleplay streaming/animation pausing, and prompt choice resolution.

🔄 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/4193 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/27/2026 **Status:** ✅ Merged **Merged:** 7/28/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/assigned-issues-4187-4192` --- ### 📝 Commits (3) - [`da9f036`](https://github.com/Pasta-Devs/Marinara-Engine/commit/da9f036c0f5c3eec8d5a0a26a5241321229229e3) Fix Conversation media picker interactions - [`060c15b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/060c15bfa592d783f35c47ed5bd8a37fb95cc88a) Fix assigned generation and editor issues - [`223f9e3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/223f9e3b673aca11b5204f301ed9439d6738f347) Address CodeRabbit generation review ### 📊 Changes **17 files changed** (+518 additions, -252 deletions) <details> <summary>View changed files</summary> 📝 `e2e/core-flows.e2e.ts` (+162 -146) 📝 `packages/client/src/components/chat/ChatArea.tsx` (+9 -3) 📝 `packages/client/src/components/chat/ChatInput.tsx` (+5 -1) 📝 `packages/client/src/components/chat/ChatRoleplaySurface.tsx` (+6 -3) 📝 `packages/client/src/components/chat/ConversationMediaPickerPanel.tsx` (+8 -3) 📝 `packages/client/src/components/chat/WeatherEffects.tsx` (+26 -10) 📝 `packages/client/src/components/game/GameSurface.tsx` (+9 -1) 📝 `packages/client/src/components/ui/EmojiPicker.tsx` (+44 -37) 📝 `packages/client/src/components/ui/KaomojiPicker.tsx` (+7 -3) 📝 `packages/client/src/hooks/use-generate.ts` (+2 -1) 📝 `packages/client/src/styles/globals.css` (+20 -0) 📝 `packages/client/src/workers/weather-effects.worker.ts` (+15 -2) 📝 `packages/server/src/services/prompt/assembler.ts` (+45 -27) 📝 `packages/server/src/services/prompt/index.ts` (+7 -1) 📝 `scripts/regressions/open-issues.regression.ts` (+25 -12) 📝 `scripts/regressions/prompt.regression.ts` (+36 -0) 📝 `scripts/regressions/roleplay-streaming.regression.ts` (+92 -2) </details> ### 📄 Description ## Why This assigned-issue sweep addresses active user-facing regressions in chat performance and interaction: - an active Marinara tab can contend with local LLM generation (#4187) - Firefox on macOS still hitches during Roleplay typing and held deletion (#4188) - Conversation media searches and picker scrolling are inconsistent (#4189) - preset Random Pick variables can resolve deterministically instead of sampling (#4190) - completed assistant text remains locked while its queued Illustrator image runs (#4192) The translated backup-retention follow-up is handled separately in #4194 against `docs-i18n`, as required by repository policy. ## Summary - suspend weather workers and decorative Roleplay/Game animation while generation needs local GPU resources - lengthen deletion-only textarea resize settling and isolate the Firefox Roleplay paint surface - align Emoji and Kaomoji search shells with GIF search and keep media pickers open during internal pointer/scrollbar interaction - normalize legacy choice flags and sample Random Pick selections on every prompt assembly - separate completed text streaming state from background Illustrator work so the last assistant message can be edited or deleted while the frozen image job continues; deleted-message results remain in Gallery - add focused prompt, Roleplay/Illustrator, source, and Playwright regression coverage ## Validation Passed locally: - `pnpm check` - `pnpm regression:prompt` - `pnpm regression:roleplay` - targeted desktop Playwright proof for Conversation media picker search styling and internal pointer handling Passed on GitHub: - `pnpm-validate` - `container-build-test` Known baseline limitations observed locally: - `pnpm regression:issues` stops at the pre-existing mobile background crossfade-slot assertion before reaching this sweep - the full 216-case `pnpm smoke:ui` run passed 136 and skipped 73; the changed Conversation picker case passed on desktop and mobile, while seven unrelated existing cases failed around a stale storage version expectation, the custom-agent Danger Zone gate, and background-library behavior ## Manual verification - [ ] Manually verify Roleplay typing and held-backspace deletion in Firefox on macOS - [ ] Manually verify local generation throughput with an active Roleplay or Game tab - [ ] Manually verify Emoji, Kaomoji, GIF, and Sticker picker scrolling in Conversation mode - [ ] Manually verify repeated Random Pick prompt generations can choose different selected options - [ ] Manually verify editing and deleting the last assistant message while Illustrator is running Closes #4187 Closes #4188 Closes #4189 Closes #4190 Closes #4192 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Conversation media pickers now use consistent, polished search UI and improved in-picker interactions. * External agent imports require permission review and capability selection before being allowed. * **Bug Fixes** * Ambient weather/game effects now reliably pause during generation for clearer, smoother visuals. * Streaming behavior is refined so message recall/edit and deletion resizing behave more predictably. * Roleplay ambient rendering pause state is now applied more consistently. * **Tests** * Expanded e2e/UI regression coverage for agent import permissions, media pickers, roleplay streaming/animation pausing, and prompt choice resolution. <!-- 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:08:52 +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#6277
No description provided.