[PR #835] [MERGED] Fix conversation markdown block reposting #4797

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/835
Author: @Promansis
Created: 5/14/2026
Status: ✅ Merged
Merged: 5/14/2026
Merged by: @Promansis

Base: main ← Head: fix/830-conversation-markdown-blocks


📝 Commits (1)

  • 567ed72 fix: preserve conversation markdown blocks (#830)

📊 Changes

1 file changed (+98 additions, -23 deletions)

View changed files

📝 packages/client/src/components/chat/ConversationView.tsx (+98 -23)

📄 Description

Linked issue

Closes #830

Why this change

Conversation-mode assistant messages are visually reposted as smaller chunks after streaming finishes. That line-based reposting split multi-line markdown blocks apart, so tables stopped rendering as tables after finalization, and fenced code blocks or blockquotes could lose their block formatting.

What changed

  • Added markdown-aware chunk grouping for finalized assistant messages in Conversation chat.
  • Keeps table rows, fenced code blocks, multi-line blockquotes, and list continuation lines together before rendering split visual bubbles.
  • Preserves blank lines inside fenced code blocks while keeping the existing empty-line cleanup outside code blocks.

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

  • User confirmed the fix works perfectly in local manual testing.
  • Codex ran pnpm --filter @marinara-engine/client lint successfully.
  • Codex ran pnpm check successfully.

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)

No screenshot attached. The behavior change is visible in Conversation chat message rendering after assistant markdown responses are finalized/reposted.


🔄 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/835 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 5/14/2026 **Status:** ✅ Merged **Merged:** 5/14/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `main` ← **Head:** `fix/830-conversation-markdown-blocks` --- ### 📝 Commits (1) - [`567ed72`](https://github.com/Pasta-Devs/Marinara-Engine/commit/567ed723c1d280d02f84bc1706ce4ddee73fb59e) fix: preserve conversation markdown blocks (#830) ### 📊 Changes **1 file changed** (+98 additions, -23 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/chat/ConversationView.tsx` (+98 -23) </details> ### 📄 Description ## Linked issue Closes #830 ## Why this change Conversation-mode assistant messages are visually reposted as smaller chunks after streaming finishes. That line-based reposting split multi-line markdown blocks apart, so tables stopped rendering as tables after finalization, and fenced code blocks or blockquotes could lose their block formatting. ## What changed - Added markdown-aware chunk grouping for finalized assistant messages in Conversation chat. - Keeps table rows, fenced code blocks, multi-line blockquotes, and list continuation lines together before rendering split visual bubbles. - Preserves blank lines inside fenced code blocks while keeping the existing empty-line cleanup outside code blocks. ## Validation - [x] `pnpm check` passes locally - [x] Container (Docker / Podman) built and ran without issue - [x] Ran the app, clicked through the changes manually - [x] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [x] Above manual verification completed (describe below) - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes - User confirmed the fix works perfectly in local manual testing. - Codex ran `pnpm --filter @marinara-engine/client lint` successfully. - Codex ran `pnpm check` successfully. ## Docs and release impact - [x] No docs changes needed - [x] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [x] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) No screenshot attached. The behavior change is visible in Conversation chat message rendering after assistant markdown responses are finalized/reposted. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:10:44 +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#4797
No description provided.