[PR #3177] [MERGED] [codex] Fix issue sweep 3169-3173 #5833

Closed
opened 2026-10-22 04:19:58 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: staging ← Head: codex/issue-sweep-3169-3173


📝 Commits (5)

  • 6411f5f Start issue sweep 3169-3173
  • 8ba51cb Fix issue sweep 3169-3173
  • 4d9bbb0 Address CodeRabbit prompt parser feedback
  • 178124d Merge staging into issue sweep branch
  • 81867b8 Address CodeRabbit sprite and captioning cleanups

📊 Changes

13 files changed (+281 additions, -113 deletions)

View changed files

📝 CHANGELOG.md (+5 -0)
📝 packages/client/src/components/chat/AgentAddSetupFields.tsx (+2 -4)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+4 -11)
📝 packages/client/src/components/chat/SpriteOverlay.tsx (+4 -5)
📝 packages/client/src/components/chat/SpriteSidebar.tsx (+2 -2)
📝 packages/client/src/components/chat/StickerPicker.tsx (+16 -10)
📝 packages/client/src/components/chat/sprite-placement.ts (+9 -1)
📝 packages/client/src/components/personas/PersonaEditor.tsx (+9 -2)
📝 packages/client/src/components/ui/EmojiPicker.tsx (+24 -17)
📝 packages/client/src/features/chat-settings/sections/AdvancedParametersSection.tsx (+8 -29)
📝 packages/client/src/lib/character-token-count.ts (+2 -2)
📝 packages/shared/src/utils/image-prompt-compiler.ts (+147 -30)
📝 scripts/regressions/prompt.regression.ts (+49 -0)

📄 Description

Summary

  • Removes the Roleplay sprite owner limit from settings, agent setup, overlay rendering, sidebar rendering, and default placement fallback.
  • Lets Image Captioning select any non-image-generation connection, with warning copy for text-only endpoints.
  • Anchors emoji and sticker popovers above the mobile composer using visual-viewport-aware top placement.
  • Shows Persona editor textarea counters as approximate tokens instead of characters.
  • Preserves grouped and weighted Illustrator tags during prompt splitting, dedupe, and negative extraction.

Issues

Addresses #3169, #3170, #3171, #3172, and #3173.

Validation

  • pnpm regression:prompt
  • pnpm --filter @marinara-engine/shared build
  • pnpm check

Manual verification needed

  • Verify Roleplay sprite toggles allow more than three sprite owners and the overlay can arrange them.
  • Verify Image Captioning exposes the intended local/custom connection in the dropdown.
  • Verify mobile emoji/sticker popovers stay anchored above the composer while focusing the input on Android Firefox or a comparable mobile browser.
  • Verify Persona textarea counters show approximate token counts.
  • Verify Illustrator prompts preserve grouped weighted tags such as (shaved head, bald:1.2).

Summary by CodeRabbit

  • New Features

    • Added token-based counters in persona editing for a more accurate text estimate.
    • Expanded captioning connection choices to include more eligible connections.
  • Bug Fixes

    • Removed the three-sprite limit across chat sprite selection and display.
    • Improved emoji and sticker picker positioning on mobile and small viewports.
    • Fixed prompt cleanup so grouped weighted tags and negative clauses are preserved correctly.
  • Tests

    • Added regression coverage for illustration prompt compilation.

🔄 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/3177 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/3/2026 **Status:** ✅ Merged **Merged:** 7/3/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `codex/issue-sweep-3169-3173` --- ### 📝 Commits (5) - [`6411f5f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6411f5fb3da0afe2821f5c7dd7d45525345a1f47) Start issue sweep 3169-3173 - [`8ba51cb`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8ba51cb54bde27441c4631640f69851cefc021bd) Fix issue sweep 3169-3173 - [`4d9bbb0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4d9bbb0902fcad20d2807d55fde924d7610ad99d) Address CodeRabbit prompt parser feedback - [`178124d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/178124d69c078d24027c0fc01899e3338d0d4c33) Merge staging into issue sweep branch - [`81867b8`](https://github.com/Pasta-Devs/Marinara-Engine/commit/81867b8c0578fe1cbeeac6983fb2ad77c4dd81a6) Address CodeRabbit sprite and captioning cleanups ### 📊 Changes **13 files changed** (+281 additions, -113 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+5 -0) 📝 `packages/client/src/components/chat/AgentAddSetupFields.tsx` (+2 -4) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+4 -11) 📝 `packages/client/src/components/chat/SpriteOverlay.tsx` (+4 -5) 📝 `packages/client/src/components/chat/SpriteSidebar.tsx` (+2 -2) 📝 `packages/client/src/components/chat/StickerPicker.tsx` (+16 -10) 📝 `packages/client/src/components/chat/sprite-placement.ts` (+9 -1) 📝 `packages/client/src/components/personas/PersonaEditor.tsx` (+9 -2) 📝 `packages/client/src/components/ui/EmojiPicker.tsx` (+24 -17) 📝 `packages/client/src/features/chat-settings/sections/AdvancedParametersSection.tsx` (+8 -29) 📝 `packages/client/src/lib/character-token-count.ts` (+2 -2) 📝 `packages/shared/src/utils/image-prompt-compiler.ts` (+147 -30) 📝 `scripts/regressions/prompt.regression.ts` (+49 -0) </details> ### 📄 Description ## Summary - Removes the Roleplay sprite owner limit from settings, agent setup, overlay rendering, sidebar rendering, and default placement fallback. - Lets Image Captioning select any non-image-generation connection, with warning copy for text-only endpoints. - Anchors emoji and sticker popovers above the mobile composer using visual-viewport-aware top placement. - Shows Persona editor textarea counters as approximate tokens instead of characters. - Preserves grouped and weighted Illustrator tags during prompt splitting, dedupe, and negative extraction. ## Issues Addresses #3169, #3170, #3171, #3172, and #3173. ## Validation - pnpm regression:prompt - pnpm --filter @marinara-engine/shared build - pnpm check ## Manual verification needed - Verify Roleplay sprite toggles allow more than three sprite owners and the overlay can arrange them. - Verify Image Captioning exposes the intended local/custom connection in the dropdown. - Verify mobile emoji/sticker popovers stay anchored above the composer while focusing the input on Android Firefox or a comparable mobile browser. - Verify Persona textarea counters show approximate token counts. - Verify Illustrator prompts preserve grouped weighted tags such as `(shaved head, bald:1.2)`. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added token-based counters in persona editing for a more accurate text estimate. * Expanded captioning connection choices to include more eligible connections. * **Bug Fixes** * Removed the three-sprite limit across chat sprite selection and display. * Improved emoji and sticker picker positioning on mobile and small viewports. * Fixed prompt cleanup so grouped weighted tags and negative clauses are preserved correctly. * **Tests** * Added regression coverage for illustration prompt compilation. <!-- 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-22 04:19:58 +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#5833
No description provided.