[PR #3175] [MERGED] [codex] Restore chat UI fixes and remove lorebook entry write cap #5828

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

📋 Pull Request Information

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

Base: staging ← Head: codex/recover-chat-ui-and-lorebook-entry-limits


📝 Commits (3)

  • 6acfc55 Fix quote formatter caret jumps
  • 9e7ba2c Restore agent UI cleanup and lorebook entry writes
  • 54d163c Merge staging into chat UI recovery branch

📊 Changes

7 files changed (+50 additions, -7 deletions)

View changed files

📝 CHANGELOG.md (+2 -0)
📝 packages/client/src/components/chat/ChatInput.tsx (+3 -1)
📝 packages/client/src/hooks/use-generate.ts (+1 -2)
📝 packages/client/src/lib/textarea-quotes.ts (+8 -1)
📝 packages/server/src/services/tools/tool-executor.ts (+1 -2)
📝 packages/shared/src/features/function-calls/tools/save-lorebook-entry/manifest.ts (+1 -1)
📝 scripts/regressions/prompt.regression.ts (+34 -0)

📄 Description

Summary

  • Recovers the quote-format caret preservation fix so typing apostrophes does not jump the cursor.
  • Restores the Roleplay send-button/agent cleanup behavior so post-generation agents such as Illustrator keep the busy spinner without keeping the live stream bubble alive as a duplicate message.
  • Removes the agent/tool write-path content cap for save_lorebook_entry and updates its tool description so large lorebook entries are preserved.
  • Adds a prompt regression covering large save_lorebook_entry content.

Why

The quote/caret and Illustrator cleanup fixes were local but not yet in staging. Users could still see the apostrophe caret jump, and Roleplay agent work could leave confusing UI state while Illustrator finished image generation.

The reported lorebook per-entry limit comes from the agent/tool write path trimming save_lorebook_entry content to 64 KiB before storage. The main lorebook editor schema and SQLite storage already allow larger content, so this removes the hidden agent-side truncation.

Validation

  • pnpm regression:prompt
  • pnpm check
  • git diff --check

Manual verification needed

  • In Roleplay mode with streaming enabled, trigger Illustrator and confirm the last text message does not appear as a duplicate while the image is generating.
  • Type apostrophes in the chat input with quote formatting enabled and confirm the caret stays in place.
  • Use an agent/tool write to save a lorebook entry larger than 64 KiB and confirm the stored entry is not truncated.

🔄 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/3175 **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/recover-chat-ui-and-lorebook-entry-limits` --- ### 📝 Commits (3) - [`6acfc55`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6acfc55ef51f154e0e767934697a338f6fe02a5b) Fix quote formatter caret jumps - [`9e7ba2c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9e7ba2c2a67da856f848ff5507fb7474e0e44319) Restore agent UI cleanup and lorebook entry writes - [`54d163c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/54d163cfbd161b7c5b0ce6a09fdac8dad5c01c4a) Merge staging into chat UI recovery branch ### 📊 Changes **7 files changed** (+50 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -0) 📝 `packages/client/src/components/chat/ChatInput.tsx` (+3 -1) 📝 `packages/client/src/hooks/use-generate.ts` (+1 -2) 📝 `packages/client/src/lib/textarea-quotes.ts` (+8 -1) 📝 `packages/server/src/services/tools/tool-executor.ts` (+1 -2) 📝 `packages/shared/src/features/function-calls/tools/save-lorebook-entry/manifest.ts` (+1 -1) 📝 `scripts/regressions/prompt.regression.ts` (+34 -0) </details> ### 📄 Description ## Summary - Recovers the quote-format caret preservation fix so typing apostrophes does not jump the cursor. - Restores the Roleplay send-button/agent cleanup behavior so post-generation agents such as Illustrator keep the busy spinner without keeping the live stream bubble alive as a duplicate message. - Removes the agent/tool write-path content cap for `save_lorebook_entry` and updates its tool description so large lorebook entries are preserved. - Adds a prompt regression covering large `save_lorebook_entry` content. ## Why The quote/caret and Illustrator cleanup fixes were local but not yet in `staging`. Users could still see the apostrophe caret jump, and Roleplay agent work could leave confusing UI state while Illustrator finished image generation. The reported lorebook per-entry limit comes from the agent/tool write path trimming `save_lorebook_entry` content to 64 KiB before storage. The main lorebook editor schema and SQLite storage already allow larger content, so this removes the hidden agent-side truncation. ## Validation - pnpm regression:prompt - pnpm check - git diff --check ## Manual verification needed - In Roleplay mode with streaming enabled, trigger Illustrator and confirm the last text message does not appear as a duplicate while the image is generating. - Type apostrophes in the chat input with quote formatting enabled and confirm the caret stays in place. - Use an agent/tool write to save a lorebook entry larger than 64 KiB and confirm the stored entry is not truncated. --- <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:56 +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#5828
No description provided.