[PR #2628] [MERGED] [codex] Address user-reported chat and settings issues #5693

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/2628
Author: @SpicyMarinara
Created: 6/18/2026
Status: ✅ Merged
Merged: 6/18/2026
Merged by: @SpicyMarinara

Base: staging ← Head: codex/user-report-fixes-settings-polish


📝 Commits (2)

  • 1dc5000 Address user-reported chat and settings issues
  • 4cff782 Address CodeRabbit review feedback

📊 Changes

60 files changed (+2460 additions, -245 deletions)

View changed files

📝 .env.example (+3 -0)
📝 docs/CONFIGURATION.md (+2 -0)
📝 packages/client/src/components/agents/ToolEditor.tsx (+37 -1)
📝 packages/client/src/components/characters/CharacterLibraryView.tsx (+78 -33)
📝 packages/client/src/components/chat/ChatArea.tsx (+3 -8)
📝 packages/client/src/components/chat/ChatGallery.tsx (+142 -3)
📝 packages/client/src/components/chat/ChatGalleryDrawer.tsx (+1 -1)
📝 packages/client/src/components/chat/ChatInput.tsx (+32 -0)
📝 packages/client/src/components/chat/ChatMessage.tsx (+47 -8)
📝 packages/client/src/components/chat/ConversationInput.tsx (+32 -0)
📝 packages/client/src/components/chat/ConversationMessage.tsx (+36 -4)
📝 packages/client/src/components/chat/HomeProfessorMariChat.tsx (+35 -2)
📝 packages/client/src/components/chat/SpriteOverlay.tsx (+22 -13)
📝 packages/client/src/components/game/GameNarration.tsx (+4 -23)
📝 packages/client/src/components/lorebooks/LorebookEditor.tsx (+30 -1)
📝 packages/client/src/components/panels/CharactersPanel.tsx (+66 -10)
📝 packages/client/src/components/panels/PresetsPanel.tsx (+2 -0)
📝 packages/client/src/components/panels/SettingsPanel.tsx (+8 -0)
📝 packages/client/src/components/presets/ChoiceSelectionModal.tsx (+72 -9)
📝 packages/client/src/components/presets/PresetEditor.tsx (+190 -2)

...and 40 more files

📄 Description

Linked issue

No linked issue. This is a maintainer-provided batch of user reports; a tracking issue should be opened before merge if required.

Why this change

Users reported several rough edges across chat, game mode, storage recovery, imports, preset variables, local assets, custom tools, lorebook limits, and list/search persistence. This PR batches the fixes so the current staging branch can receive CodeRabbit review as one coherent maintenance pass.

What changed

  • Added safer file-backed storage recovery/quarantine behavior and Windows-friendly fsync handling.
  • Made tool round limits and tool timeouts configurable, including per-tool timeout support.
  • Added local card asset image links, gallery browsing support, PDF attachment handling, and basic LaTeX symbol cleanup.
  • Fixed chat-summary bleed, edit/swipe preservation, macro resolution in prompt context, and game sprite expression fallbacks.
  • Added lorebook entry limits, custom tool hidden macro context, import duplicate-key handling, and profile import safety.
  • Improved preset variable UX with dropdown/listbox presentation, alphabetical display, and option reordering.
  • Persisted library sort/scroll state and app location state for refresh recovery.
  • Confirmed stale ChatSetupWizard.tsx unused-var diagnostics no longer exist on disk or in file-scoped ESLint.

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

Manual verification notes

  • Ran pnpm --filter @marinara-engine/client exec eslint src/components/chat/ChatSetupWizard.tsx to verify the reported unused symbols do not appear in ESLint output.
  • Ran git diff --check origin/staging..HEAD.
  • Ran pnpm check after rebasing onto current origin/staging.
  • Manual browser/app click-through was not completed in this PR pass.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

Not captured in this pass.

Summary by CodeRabbit

  • New Features

    • Added asset browser for chat galleries in roleplay mode with image search and insertion.
    • Introduced per-lorebook entry limits to control active entries during generation.
    • Added customizable preset choice presentation (buttons/listbox display modes and alphabetical sorting).
    • Added LaTeX symbol conversion option in settings.
    • Enhanced character library with sorting and scroll position restoration.
    • Tool editor now supports hidden Marinara context configuration.
  • Configuration

    • New environment variables for tool execution limits and timeouts.

🔄 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/2628 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 6/18/2026 **Status:** ✅ Merged **Merged:** 6/18/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `codex/user-report-fixes-settings-polish` --- ### 📝 Commits (2) - [`1dc5000`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1dc500026df1f1d3b049f1eceaa60847600f8f3f) Address user-reported chat and settings issues - [`4cff782`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4cff7829975470d702b259949770a025160e3f8b) Address CodeRabbit review feedback ### 📊 Changes **60 files changed** (+2460 additions, -245 deletions) <details> <summary>View changed files</summary> 📝 `.env.example` (+3 -0) 📝 `docs/CONFIGURATION.md` (+2 -0) 📝 `packages/client/src/components/agents/ToolEditor.tsx` (+37 -1) 📝 `packages/client/src/components/characters/CharacterLibraryView.tsx` (+78 -33) 📝 `packages/client/src/components/chat/ChatArea.tsx` (+3 -8) 📝 `packages/client/src/components/chat/ChatGallery.tsx` (+142 -3) 📝 `packages/client/src/components/chat/ChatGalleryDrawer.tsx` (+1 -1) 📝 `packages/client/src/components/chat/ChatInput.tsx` (+32 -0) 📝 `packages/client/src/components/chat/ChatMessage.tsx` (+47 -8) 📝 `packages/client/src/components/chat/ConversationInput.tsx` (+32 -0) 📝 `packages/client/src/components/chat/ConversationMessage.tsx` (+36 -4) 📝 `packages/client/src/components/chat/HomeProfessorMariChat.tsx` (+35 -2) 📝 `packages/client/src/components/chat/SpriteOverlay.tsx` (+22 -13) 📝 `packages/client/src/components/game/GameNarration.tsx` (+4 -23) 📝 `packages/client/src/components/lorebooks/LorebookEditor.tsx` (+30 -1) 📝 `packages/client/src/components/panels/CharactersPanel.tsx` (+66 -10) 📝 `packages/client/src/components/panels/PresetsPanel.tsx` (+2 -0) 📝 `packages/client/src/components/panels/SettingsPanel.tsx` (+8 -0) 📝 `packages/client/src/components/presets/ChoiceSelectionModal.tsx` (+72 -9) 📝 `packages/client/src/components/presets/PresetEditor.tsx` (+190 -2) _...and 40 more files_ </details> ### 📄 Description ## Linked issue No linked issue. This is a maintainer-provided batch of user reports; a tracking issue should be opened before merge if required. ## Why this change Users reported several rough edges across chat, game mode, storage recovery, imports, preset variables, local assets, custom tools, lorebook limits, and list/search persistence. This PR batches the fixes so the current staging branch can receive CodeRabbit review as one coherent maintenance pass. ## What changed - Added safer file-backed storage recovery/quarantine behavior and Windows-friendly fsync handling. - Made tool round limits and tool timeouts configurable, including per-tool timeout support. - Added local card asset image links, gallery browsing support, PDF attachment handling, and basic LaTeX symbol cleanup. - Fixed chat-summary bleed, edit/swipe preservation, macro resolution in prompt context, and game sprite expression fallbacks. - Added lorebook entry limits, custom tool hidden macro context, import duplicate-key handling, and profile import safety. - Improved preset variable UX with dropdown/listbox presentation, alphabetical display, and option reordering. - Persisted library sort/scroll state and app location state for refresh recovery. - Confirmed stale `ChatSetupWizard.tsx` unused-var diagnostics no longer exist on disk or in file-scoped ESLint. ## 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` ### Manual verification notes - Ran `pnpm --filter @marinara-engine/client exec eslint src/components/chat/ChatSetupWizard.tsx` to verify the reported unused symbols do not appear in ESLint output. - Ran `git diff --check origin/staging..HEAD`. - Ran `pnpm check` after rebasing onto current `origin/staging`. - Manual browser/app click-through was not completed in this PR pass. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) Not captured in this pass. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added asset browser for chat galleries in roleplay mode with image search and insertion. * Introduced per-lorebook entry limits to control active entries during generation. * Added customizable preset choice presentation (buttons/listbox display modes and alphabetical sorting). * Added LaTeX symbol conversion option in settings. * Enhanced character library with sorting and scroll position restoration. * Tool editor now supports hidden Marinara context configuration. * **Configuration** * New environment variables for tool execution limits and timeouts. <!-- 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:18:36 +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#5693
No description provided.