[PR #3107] [MERGED] Fix Mari command gaps and generation retry issues #5800

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

📋 Pull Request Information

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

Base: staging ← Head: codex/issue-sweep-3098-3105


📝 Commits (4)

  • 2873c5a Fix issue sweep for generation and Mari commands
  • da62ba9 Shorten mobile composer placeholders
  • e4f198a Keep staging installs on staging updates
  • 567b4c6 Apply CodeRabbit review fixes

📊 Changes

18 files changed (+567 additions, -154 deletions)

View changed files

📝 CHANGELOG.md (+6 -0)
📝 docs/UPGRADING.md (+1 -1)
📝 docs/installation/android-termux.md (+1 -1)
📝 docs/installation/macos-linux.md (+10 -1)
📝 docs/installation/windows.md (+10 -1)
📝 packages/client/src/components/chat/ChatInput.tsx (+31 -15)
📝 packages/client/src/components/chat/ConversationInput.tsx (+35 -13)
📝 packages/client/src/components/chat/chat-input-styles.ts (+1 -1)
📝 packages/client/src/components/game/GameInput.tsx (+25 -24)
📝 packages/client/src/components/panels/SettingsPanel.tsx (+11 -6)
📝 packages/server/src/routes/generate.routes.ts (+8 -7)
📝 packages/server/src/routes/updates.routes.ts (+89 -13)
📝 packages/server/src/services/conversation/auto-summary.service.ts (+137 -3)
📝 packages/server/src/services/conversation/server-autonomous-scheduler.service.ts (+60 -0)
📝 packages/server/src/services/mari-db/mari-db.service.ts (+76 -42)
📝 start-termux.sh (+23 -9)
📝 start.bat (+20 -8)
📝 start.sh (+23 -9)

📄 Description

Why

This issue sweep fixes several concrete regressions reported against v2.0.9: continue generation could lose prior text when rewrite agents ran, Professor Mari was missing small but important data-command affordances, mobile composers had inconsistent controls, and failed conversation-summary/autonomous generation retries could hammer dead model endpoints forever.

Closes #3105
Closes #3103
Closes #3102
Closes #3101
Closes #3100
Closes #3098
Closes #3106

What changed

  • Rewrite agents now edit the full merged message when /continue appends to an existing assistant message.
  • mari lorebooks can fetch entries by entry id, include entry descriptions/tags in summaries, and set entry tags in add/update flows.
  • mari chats messages supports --offset with existing --limit/--tail behavior.
  • Conversation/Game/Roleplay input controls were aligned with requested icon, ordering, and mobile compactness changes.
  • Conversation summary failures are recorded with cooldowns so bad 4xx/model errors do not retry every tick; server-side autonomous generation also backs off after repeated failures.
  • v2.0.9 changelog updated.

Validation

  • Run pnpm regression:prompt
  • Run pnpm check
  • Manually verify /continue with text rewrite agents preserves the original assistant message plus continuation.
  • Manually verify Professor Mari lorebook entry commands in a local app session.
  • Manually verify Conversation, Roleplay mobile, and Game input composer layouts.
  • Manually verify summary/autonomous backoff behavior with a deliberately invalid model connection.

Notes

Automated validation was run locally before opening this draft PR; boxes are left unchecked for human review per repo instructions.

Summary by CodeRabbit

  • New Features

    • Update tools now better recognize and follow the current branch, including staging builds, for smoother installs and upgrades.
    • Chat and conversation inputs now adapt their placeholders and controls for mobile, improving usability on smaller screens.
    • Added more command-line options for viewing chat messages and lorebook entries, including pagination and entry-specific lookup.
  • Bug Fixes

    • Fixed update behavior so staging installs no longer drift back to the wrong branch.
    • Improved handling of failed summaries and generation retries to avoid endless retry loops.
  • Documentation

    • Updated installation and upgrade guides to match the new update flow.

🔄 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/3107 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 6/30/2026 **Status:** ✅ Merged **Merged:** 6/30/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `codex/issue-sweep-3098-3105` --- ### 📝 Commits (4) - [`2873c5a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2873c5a1898cd1f19bce33c738e0c63a87a5b526) Fix issue sweep for generation and Mari commands - [`da62ba9`](https://github.com/Pasta-Devs/Marinara-Engine/commit/da62ba9307d1cc11a5aafda648767bd9622ac039) Shorten mobile composer placeholders - [`e4f198a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e4f198a3487161f42722e9979e9d0f61fcaf4368) Keep staging installs on staging updates - [`567b4c6`](https://github.com/Pasta-Devs/Marinara-Engine/commit/567b4c6069c1fa18b1ac7f00f30107ad8e09c757) Apply CodeRabbit review fixes ### 📊 Changes **18 files changed** (+567 additions, -154 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+6 -0) 📝 `docs/UPGRADING.md` (+1 -1) 📝 `docs/installation/android-termux.md` (+1 -1) 📝 `docs/installation/macos-linux.md` (+10 -1) 📝 `docs/installation/windows.md` (+10 -1) 📝 `packages/client/src/components/chat/ChatInput.tsx` (+31 -15) 📝 `packages/client/src/components/chat/ConversationInput.tsx` (+35 -13) 📝 `packages/client/src/components/chat/chat-input-styles.ts` (+1 -1) 📝 `packages/client/src/components/game/GameInput.tsx` (+25 -24) 📝 `packages/client/src/components/panels/SettingsPanel.tsx` (+11 -6) 📝 `packages/server/src/routes/generate.routes.ts` (+8 -7) 📝 `packages/server/src/routes/updates.routes.ts` (+89 -13) 📝 `packages/server/src/services/conversation/auto-summary.service.ts` (+137 -3) 📝 `packages/server/src/services/conversation/server-autonomous-scheduler.service.ts` (+60 -0) 📝 `packages/server/src/services/mari-db/mari-db.service.ts` (+76 -42) 📝 `start-termux.sh` (+23 -9) 📝 `start.bat` (+20 -8) 📝 `start.sh` (+23 -9) </details> ### 📄 Description ## Why This issue sweep fixes several concrete regressions reported against v2.0.9: continue generation could lose prior text when rewrite agents ran, Professor Mari was missing small but important data-command affordances, mobile composers had inconsistent controls, and failed conversation-summary/autonomous generation retries could hammer dead model endpoints forever. Closes #3105 Closes #3103 Closes #3102 Closes #3101 Closes #3100 Closes #3098 Closes #3106 ## What changed - Rewrite agents now edit the full merged message when `/continue` appends to an existing assistant message. - `mari lorebooks` can fetch entries by entry id, include entry descriptions/tags in summaries, and set entry tags in add/update flows. - `mari chats messages` supports `--offset` with existing `--limit`/`--tail` behavior. - Conversation/Game/Roleplay input controls were aligned with requested icon, ordering, and mobile compactness changes. - Conversation summary failures are recorded with cooldowns so bad 4xx/model errors do not retry every tick; server-side autonomous generation also backs off after repeated failures. - v2.0.9 changelog updated. ## Validation - [ ] Run `pnpm regression:prompt` - [ ] Run `pnpm check` - [ ] Manually verify `/continue` with text rewrite agents preserves the original assistant message plus continuation. - [ ] Manually verify Professor Mari lorebook entry commands in a local app session. - [ ] Manually verify Conversation, Roleplay mobile, and Game input composer layouts. - [ ] Manually verify summary/autonomous backoff behavior with a deliberately invalid model connection. ## Notes Automated validation was run locally before opening this draft PR; boxes are left unchecked for human review per repo instructions. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Update tools now better recognize and follow the current branch, including staging builds, for smoother installs and upgrades. * Chat and conversation inputs now adapt their placeholders and controls for mobile, improving usability on smaller screens. * Added more command-line options for viewing chat messages and lorebook entries, including pagination and entry-specific lookup. * **Bug Fixes** * Fixed update behavior so staging installs no longer drift back to the wrong branch. * Improved handling of failed summaries and generation retries to avoid endless retry loops. * **Documentation** * Updated installation and upgrade guides to match the new update flow. <!-- 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:37 +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#5800
No description provided.