[GH-ISSUE #1787] [Issue]: Chat parity regressions in summaries, branching, and memory recall #869

Closed
opened 2026-10-21 05:22:38 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Xelvanis on GitHub (Jun 1, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1787

Originally assigned to: @cha1latte on GitHub.

Summary

The refactor branch appears to have several chat parity regressions compared with the legacy chat implementation. The highest-impact gaps are around summary management, summary prompt routing, branch metadata cleanup, memory recall refresh, and day/week summary prompt compaction.

Expected behavior

Chat behavior should preserve the legacy workflow where users can manage structured summary entries and prompt templates, generated summaries use the configured chat-summary/default agent routing, legacy summary text is preserved when structured entries are introduced, branches do not inherit stale future-facing summary metadata, Memory Recall can stay current after generation, and day/week summaries compact prompt history instead of only being appended as metadata text.

Actual behavior

Static parity review found these likely regressions on the refactor branch:

  • The current summary popover only accepts and edits a single summary blob plus context size. Legacy supported structured summary entries, entry edit/delete/toggle, prompt templates, and active template selection.
  • The conversation surface does not appear to mount the summary popover, while roleplay still does. Legacy exposed summary access from the shared chat surface.
  • Summary generation no longer accepts a prompt template id and appears to use a hard-coded LLM prompt/connection path instead of the legacy chat-summary agent/default-for-agents fallback chain.
  • ChatSummaryEntryOrigin no longer includes legacy, and the refactor summary-entry normalizer does not fold an existing legacy metadata.summary blob into the first structured summary entry set.
  • Native chat branching clones the source chat metadata, which can carry summary, daySummaries, or weekSummaries into a branch created from an earlier message. Legacy branch creation intentionally stripped those summary fields.
  • Memory Recall refresh/import APIs exist, but generation does not appear to auto-chunk/embed newly generated messages the way legacy generation did.
  • summaryTailMessages and day/week summary settings are still exposed, but prompt assembly appears to stringify summaries and then include recent raw history rather than replacing summarized buckets with compact summary blocks.

Steps to reproduce

  1. Compare the refactor chat summary UI and generation path against the legacy chat implementation.
  2. Create or import a chat with existing summary metadata, then generate or append structured summaries.
  3. Branch a chat from an earlier message after summaries exist.
  4. Generate chat messages with Memory Recall enabled and inspect whether new turns become recall chunks without manual refresh.
  5. Enable day/week summary settings and inspect assembled prompt context for compressed summary buckets versus raw message history.

Impact area

  • App shell, navigation, startup, or providers
  • Catalog resources
  • Chat mode
  • Roleplay mode
  • Game mode
  • Shared mode UI
  • Runtime systems: generation, world-state, visuals, tracker, or haptics
  • Professor Mari or shell tools
  • React-free engine behavior, contracts, agents, or capability ports
  • Shared API wrapper or remote runtime routing
  • Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime
  • Docs, contributor workflow, or templates

Environment

  • Branch or commit: refactor
  • Run mode: static parity review; native behavior still needs hands-on verification
  • OS + version: not relevant
  • Node + pnpm versions: not relevant
  • Rust version, if relevant: not relevant
  • Remote Runtime URL configured? not relevant
  • Provider, model, or integration, if relevant: LLM summary generation and memory recall paths are relevant

Logs, screenshots, or video

No runtime logs yet. Static evidence areas include:

  • src/features/modes/shared/chat-ui/components/SummaryPopover.tsx
  • src/features/modes/roleplay/components/ChatRoleplaySurface.tsx
  • src/features/catalog/chats/hooks/use-chats.ts
  • src/engine/shared/text/chat-summary-entries.ts
  • src/engine/generation/prompt-assembly.ts
  • src-tauri/src/commands/storage/chats.rs

Regression notes

Legacy behavior to compare against:

  • Structured summary entries and prompt-template controls in the legacy summary popover.
  • Chat summary generation route using prompt templates and chat-summary/default-agent connection fallback.
  • Legacy summary-entry normalization preserving an existing summary blob as a legacy entry.
  • Legacy branch route dropping summary/day/week summary metadata when creating a branch.
  • Legacy generation path chunking/embedding new messages for Memory Recall after generation.
  • Legacy day/week summary prompt assembly compacting older summarized history while retaining configurable tail turns.

Additional context

Suggested fix order:

  1. Restore structured summary entries/templates UI and API parity.
  2. Restore legacy summary fallback/origin preservation.
  3. Prune summary metadata during native branch creation.
  4. Reconnect summary generation routing/templates.
  5. Decide whether Memory Recall should auto-refresh after generation or whether UI/docs should make manual refresh explicit.
  6. Rebuild day/week compressed prompt history behavior or remove misleading settings.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @Xelvanis on GitHub (Jun 1, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1787 Originally assigned to: @cha1latte on GitHub. ## Summary The refactor branch appears to have several chat parity regressions compared with the legacy chat implementation. The highest-impact gaps are around summary management, summary prompt routing, branch metadata cleanup, memory recall refresh, and day/week summary prompt compaction. ## Expected behavior Chat behavior should preserve the legacy workflow where users can manage structured summary entries and prompt templates, generated summaries use the configured chat-summary/default agent routing, legacy summary text is preserved when structured entries are introduced, branches do not inherit stale future-facing summary metadata, Memory Recall can stay current after generation, and day/week summaries compact prompt history instead of only being appended as metadata text. ## Actual behavior Static parity review found these likely regressions on the refactor branch: - The current summary popover only accepts and edits a single summary blob plus context size. Legacy supported structured summary entries, entry edit/delete/toggle, prompt templates, and active template selection. - The conversation surface does not appear to mount the summary popover, while roleplay still does. Legacy exposed summary access from the shared chat surface. - Summary generation no longer accepts a prompt template id and appears to use a hard-coded LLM prompt/connection path instead of the legacy chat-summary agent/default-for-agents fallback chain. - `ChatSummaryEntryOrigin` no longer includes `legacy`, and the refactor summary-entry normalizer does not fold an existing legacy `metadata.summary` blob into the first structured summary entry set. - Native chat branching clones the source chat metadata, which can carry `summary`, `daySummaries`, or `weekSummaries` into a branch created from an earlier message. Legacy branch creation intentionally stripped those summary fields. - Memory Recall refresh/import APIs exist, but generation does not appear to auto-chunk/embed newly generated messages the way legacy generation did. - `summaryTailMessages` and day/week summary settings are still exposed, but prompt assembly appears to stringify summaries and then include recent raw history rather than replacing summarized buckets with compact summary blocks. ## Steps to reproduce 1. Compare the refactor chat summary UI and generation path against the legacy chat implementation. 2. Create or import a chat with existing summary metadata, then generate or append structured summaries. 3. Branch a chat from an earlier message after summaries exist. 4. Generate chat messages with Memory Recall enabled and inspect whether new turns become recall chunks without manual refresh. 5. Enable day/week summary settings and inspect assembled prompt context for compressed summary buckets versus raw message history. ## Impact area - [ ] App shell, navigation, startup, or providers - [ ] Catalog resources - [x] Chat mode - [x] Roleplay mode - [ ] Game mode - [x] Shared mode UI - [x] Runtime systems: generation, world-state, visuals, tracker, or haptics - [ ] Professor Mari or shell tools - [x] React-free engine behavior, contracts, agents, or capability ports - [x] Shared API wrapper or remote runtime routing - [x] Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime - [ ] Docs, contributor workflow, or templates ## Environment - Branch or commit: `refactor` - Run mode: static parity review; native behavior still needs hands-on verification - OS + version: not relevant - Node + pnpm versions: not relevant - Rust version, if relevant: not relevant - Remote Runtime URL configured? not relevant - Provider, model, or integration, if relevant: LLM summary generation and memory recall paths are relevant ## Logs, screenshots, or video No runtime logs yet. Static evidence areas include: - `src/features/modes/shared/chat-ui/components/SummaryPopover.tsx` - `src/features/modes/roleplay/components/ChatRoleplaySurface.tsx` - `src/features/catalog/chats/hooks/use-chats.ts` - `src/engine/shared/text/chat-summary-entries.ts` - `src/engine/generation/prompt-assembly.ts` - `src-tauri/src/commands/storage/chats.rs` ## Regression notes Legacy behavior to compare against: - Structured summary entries and prompt-template controls in the legacy summary popover. - Chat summary generation route using prompt templates and chat-summary/default-agent connection fallback. - Legacy summary-entry normalization preserving an existing summary blob as a `legacy` entry. - Legacy branch route dropping summary/day/week summary metadata when creating a branch. - Legacy generation path chunking/embedding new messages for Memory Recall after generation. - Legacy day/week summary prompt assembly compacting older summarized history while retaining configurable tail turns. ## Additional context Suggested fix order: 1. Restore structured summary entries/templates UI and API parity. 2. Restore legacy summary fallback/origin preservation. 3. Prune summary metadata during native branch creation. 4. Reconnect summary generation routing/templates. 5. Decide whether Memory Recall should auto-refresh after generation or whether UI/docs should make manual refresh explicit. 6. Rebuild day/week compressed prompt history behavior or remove misleading settings. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:22:38 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@cha1latte commented on GitHub (Jun 1, 2026):

Fixed in #1825

<!-- gh-comment-id:4594876011 --> @cha1latte commented on GitHub (Jun 1, 2026): Fixed in #1825
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#869
No description provided.