[PR #4137] [MERGED] fix: resolve open issue sweep and clarify prompt manager #6246

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

📋 Pull Request Information

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

Base: staging ← Head: agent/open-issue-sweep-prompts


📝 Commits (5)

  • 0ede562 fix(lorebooks): preserve markdown headings in approvals
  • b8435fb fix: resolve open UI and generation issues
  • 35b432e test: disambiguate new chat action labels
  • 2ca3d7c fix: harden version resets and lorebook approvals
  • 4864de3 fix: require complete lorebook approval delimiters

📊 Changes

15 files changed (+562 additions, -46 deletions)

View changed files

📝 docs/characters/creating-and-editing-characters.md (+3 -1)
📝 docs/characters/personas.md (+5 -2)
📝 docs/prompts/presets.md (+1 -1)
📝 e2e/core-flows.e2e.ts (+5 -3)
📝 packages/client/src/components/characters/CharacterEditor.tsx (+99 -8)
📝 packages/client/src/components/panels/ConnectionsPanel.tsx (+12 -5)
📝 packages/client/src/components/panels/PresetsPanel.tsx (+1 -1)
📝 packages/client/src/components/personas/PersonaEditor.tsx (+104 -9)
📝 packages/client/src/hooks/use-characters.ts (+47 -0)
📝 packages/client/src/localization/locales/en.json (+15 -0)
📝 packages/server/src/routes/characters.routes.ts (+35 -0)
📝 packages/server/src/routes/game.routes.ts (+31 -14)
📝 packages/server/src/routes/generate/agent-write-approval.ts (+10 -2)
📝 packages/server/src/services/storage/characters.storage.ts (+51 -0)
📝 scripts/regressions/open-issues.regression.ts (+143 -0)

📄 Description

Linked issues

Closes #4127
Closes #4128
Closes #4130
Closes #4135

Why this change

  • Game session conclusions bypassed the configured chat timeout, narrow LinkAPI panels overflowed, card histories lacked correction controls, and Markdown headings could split Lorebook Keeper approvals into unintended entries.
  • The prompt-manager panel also needed a clearer Prompts section label alongside Regexes and Functions.

What changed

  • Scoped Game conclusion and conclusion-regeneration provider requests and watchdogs to CHAT_GENERATION_TIMEOUT_MS.
  • Made LinkAPI actions share the notice width with compact ellipsized labels.
  • Added rename and destructive reset-to-0.0 controls to Character and Persona version histories, including unsaved-edit protection and named confirmations.
  • Made Lorebook Keeper approval parsing recognize only metadata-backed entry headings, preserving Markdown headings inside entry content.
  • Renamed the inner Presets-panel section to Prompts and updated the English guides.
  • Hardened affected Playwright selectors now that Version history has its own Reset action.
  • Added Spanish documentation companion #4138. Long-Term Memory documentation is intentionally excluded and remains owned by Promansis.

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

Automated verification notes

  • pnpm check
  • pnpm regression:issues
  • pnpm regression:prompt
  • Full Playwright smoke corpus: 132 passed, 70 intentionally skipped; the only two failures were an in-scope non-exact locator collision, then the corrected desktop/mobile cases passed in a focused rerun.
  • Focused Character/Persona editor and Conversation setup cases: 3 passed, 1 viewport skip.
  • Focused chat-mode navigation cases after exact-label hardening: 2 passed.

Manual verification notes

  • Manual in-app click-through remains for a human reviewer because the connected browser runtime was unavailable in this session.
  • Manually verify the LinkAPI notice at narrow and standard panel widths.
  • Manually verify Character and Persona saved-version rename/reset flows.
  • Manually verify the Presets panel headings read Prompts, Regexes, and Functions.

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] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

UI evidence

  • Before reference for the LinkAPI overflow is attached to #4128.
  • Runtime UI evidence is covered by the desktop/mobile Playwright editor checks; manual screenshots remain a reviewer task.

Summary by CodeRabbit

  • New Features
    • Added rename and reset controls for saved character/persona versions (rename for non-current versions) with a confirmation-based Reset, plus clearer pending/loading and disabled states when edits are unsaved.
  • Bug Fixes
    • Improved lorebook keeper approval-text formatting/parsing so Markdown headings are treated as literal content.
    • Applied dynamic chat timeouts to game conclusion/regeneration.
    • Refreshed the LinkAPI recommendation banner layout and styling.
  • Documentation
    • Expanded character/persona version-history guidance for restoring, renaming, deleting, and Reset behavior.
  • Tests
    • Updated end-to-end assertions to match the refined UI queries/controls.

🔄 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/4137 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/26/2026 **Status:** ✅ Merged **Merged:** 7/26/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/open-issue-sweep-prompts` --- ### 📝 Commits (5) - [`0ede562`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0ede56268439ad1ea5529f3ff99184f4e0e8d05e) fix(lorebooks): preserve markdown headings in approvals - [`b8435fb`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b8435fb7aaaf4f9b601e4958f0ee9a9fedb507ca) fix: resolve open UI and generation issues - [`35b432e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/35b432e40771da4456345c6bad035d6c3b37549a) test: disambiguate new chat action labels - [`2ca3d7c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2ca3d7ce2ff8770d13220302f9bff23ffc18917b) fix: harden version resets and lorebook approvals - [`4864de3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4864de372308fa5485109091422e9104201b3444) fix: require complete lorebook approval delimiters ### 📊 Changes **15 files changed** (+562 additions, -46 deletions) <details> <summary>View changed files</summary> 📝 `docs/characters/creating-and-editing-characters.md` (+3 -1) 📝 `docs/characters/personas.md` (+5 -2) 📝 `docs/prompts/presets.md` (+1 -1) 📝 `e2e/core-flows.e2e.ts` (+5 -3) 📝 `packages/client/src/components/characters/CharacterEditor.tsx` (+99 -8) 📝 `packages/client/src/components/panels/ConnectionsPanel.tsx` (+12 -5) 📝 `packages/client/src/components/panels/PresetsPanel.tsx` (+1 -1) 📝 `packages/client/src/components/personas/PersonaEditor.tsx` (+104 -9) 📝 `packages/client/src/hooks/use-characters.ts` (+47 -0) 📝 `packages/client/src/localization/locales/en.json` (+15 -0) 📝 `packages/server/src/routes/characters.routes.ts` (+35 -0) 📝 `packages/server/src/routes/game.routes.ts` (+31 -14) 📝 `packages/server/src/routes/generate/agent-write-approval.ts` (+10 -2) 📝 `packages/server/src/services/storage/characters.storage.ts` (+51 -0) 📝 `scripts/regressions/open-issues.regression.ts` (+143 -0) </details> ### 📄 Description ## Linked issues Closes #4127 Closes #4128 Closes #4130 Closes #4135 ## Why this change - Game session conclusions bypassed the configured chat timeout, narrow LinkAPI panels overflowed, card histories lacked correction controls, and Markdown headings could split Lorebook Keeper approvals into unintended entries. - The prompt-manager panel also needed a clearer Prompts section label alongside Regexes and Functions. ## What changed - Scoped Game conclusion and conclusion-regeneration provider requests and watchdogs to `CHAT_GENERATION_TIMEOUT_MS`. - Made LinkAPI actions share the notice width with compact ellipsized labels. - Added rename and destructive reset-to-0.0 controls to Character and Persona version histories, including unsaved-edit protection and named confirmations. - Made Lorebook Keeper approval parsing recognize only metadata-backed entry headings, preserving Markdown headings inside entry content. - Renamed the inner Presets-panel section to Prompts and updated the English guides. - Hardened affected Playwright selectors now that Version history has its own Reset action. - Added Spanish documentation companion #4138. Long-Term Memory documentation is intentionally excluded and remains owned by Promansis. ## 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` ### Automated verification notes - `pnpm check` - `pnpm regression:issues` - `pnpm regression:prompt` - Full Playwright smoke corpus: 132 passed, 70 intentionally skipped; the only two failures were an in-scope non-exact locator collision, then the corrected desktop/mobile cases passed in a focused rerun. - Focused Character/Persona editor and Conversation setup cases: 3 passed, 1 viewport skip. - Focused chat-mode navigation cases after exact-label hardening: 2 passed. ### Manual verification notes - Manual in-app click-through remains for a human reviewer because the connected browser runtime was unavailable in this session. - Manually verify the LinkAPI notice at narrow and standard panel widths. - Manually verify Character and Persona saved-version rename/reset flows. - Manually verify the Presets panel headings read Prompts, Regexes, and Functions. ## 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]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence - Before reference for the LinkAPI overflow is attached to #4128. - Runtime UI evidence is covered by the desktop/mobile Playwright editor checks; manual screenshots remain a reviewer task. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added rename and reset controls for saved character/persona versions (rename for non-current versions) with a confirmation-based Reset, plus clearer pending/loading and disabled states when edits are unsaved. * **Bug Fixes** * Improved lorebook keeper approval-text formatting/parsing so Markdown headings are treated as literal content. * Applied dynamic chat timeouts to game conclusion/regeneration. * Refreshed the LinkAPI recommendation banner layout and styling. * **Documentation** * Expanded character/persona version-history guidance for restoring, renaming, deleting, and Reset behavior. * **Tests** * Updated end-to-end assertions to match the refined UI queries/controls. <!-- 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:35 +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#6246
No description provided.