[PR #3200] [MERGED] [codex] Reduce pending generation animation load #5840

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

📋 Pull Request Information

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

Base: staging ← Head: codex/chromium-pending-generation-lag


📝 Commits (1)

  • 8b3b8cf Reduce pending generation animation load

📊 Changes

6 files changed (+44 additions, -37 deletions)

View changed files

📝 packages/client/src/components/chat/ChatArea.tsx (+2 -3)
📝 packages/client/src/components/chat/ChatMessage.tsx (+6 -10)
📝 packages/client/src/components/chat/ConversationMessageBubble.tsx (+2 -5)
📝 packages/client/src/components/chat/ConversationMessageLine.tsx (+2 -5)
📝 packages/client/src/components/chat/ConversationView.tsx (+7 -14)
➕ packages/client/src/components/chat/PendingTypingDots.tsx (+25 -0)

📄 Description

Why

Chromium-based browsers can lag or freeze during the silent pending-generation window before any assistant text arrives. Issue #3187 points at the animated waiting indicator as the active UI during that period, with no repeated render warnings.

Closes #3187

What Changed

  • Added a shared static PendingTypingDots indicator for no-content pending replies.
  • Replaced the continuously bouncing pending dots in Roleplay and Conversation message renderers.
  • Replaced the classic Conversation typing indicator dots and the unused fallback typing indicator so future reuse stays low-motion.
  • Kept the animated streaming cursor after text exists, so active typewriter feedback remains intact.

Validation

  • Manually verify a slow remote provider in Brave/Edge no longer makes video/audio playback or other tabs lag during the pre-token waiting period.
  • Manually verify pending replies still show a visible waiting indicator in Roleplay mode.
  • Manually verify pending replies still show a visible waiting indicator in Conversation bubble and classic layouts.
  • Manually verify text streaming still shows the live cursor once assistant content begins.

Local proof run: pnpm check passed on July 4, 2026.

Notes

This targets the cheapest likely client-side cause from #3187: continuous pending-state animation before content arrives. It does not claim to prove every Chromium compositor or GPU-driver-specific freeze is eliminated without manual browser reproduction.

Summary by CodeRabbit

  • New Features
    • Added a shared typing indicator with consistent three-dot animation across chat and conversation screens.
    • Improved support for different display sizes and styling so pending messages match each chat view more closely.
  • Bug Fixes
    • Replaced multiple inconsistent inline typing indicators with a single reusable version for a more uniform experience.
    • Kept the “still typing” status clear and accessible while messages are loading.

🔄 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/3200 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/4/2026 **Status:** ✅ Merged **Merged:** 7/4/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `codex/chromium-pending-generation-lag` --- ### 📝 Commits (1) - [`8b3b8cf`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8b3b8cf4fe9d937777fba04b552c0340d6b1bb86) Reduce pending generation animation load ### 📊 Changes **6 files changed** (+44 additions, -37 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/chat/ChatArea.tsx` (+2 -3) 📝 `packages/client/src/components/chat/ChatMessage.tsx` (+6 -10) 📝 `packages/client/src/components/chat/ConversationMessageBubble.tsx` (+2 -5) 📝 `packages/client/src/components/chat/ConversationMessageLine.tsx` (+2 -5) 📝 `packages/client/src/components/chat/ConversationView.tsx` (+7 -14) ➕ `packages/client/src/components/chat/PendingTypingDots.tsx` (+25 -0) </details> ### 📄 Description ## Why Chromium-based browsers can lag or freeze during the silent pending-generation window before any assistant text arrives. Issue #3187 points at the animated waiting indicator as the active UI during that period, with no repeated render warnings. Closes #3187 ## What Changed - Added a shared static `PendingTypingDots` indicator for no-content pending replies. - Replaced the continuously bouncing pending dots in Roleplay and Conversation message renderers. - Replaced the classic Conversation typing indicator dots and the unused fallback typing indicator so future reuse stays low-motion. - Kept the animated streaming cursor after text exists, so active typewriter feedback remains intact. ## Validation - [ ] Manually verify a slow remote provider in Brave/Edge no longer makes video/audio playback or other tabs lag during the pre-token waiting period. - [ ] Manually verify pending replies still show a visible waiting indicator in Roleplay mode. - [ ] Manually verify pending replies still show a visible waiting indicator in Conversation bubble and classic layouts. - [ ] Manually verify text streaming still shows the live cursor once assistant content begins. Local proof run: `pnpm check` passed on July 4, 2026. ## Notes This targets the cheapest likely client-side cause from #3187: continuous pending-state animation before content arrives. It does not claim to prove every Chromium compositor or GPU-driver-specific freeze is eliminated without manual browser reproduction. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added a shared typing indicator with consistent three-dot animation across chat and conversation screens. * Improved support for different display sizes and styling so pending messages match each chat view more closely. * **Bug Fixes** * Replaced multiple inconsistent inline typing indicators with a single reusable version for a more uniform experience. * Kept the “still typing” status clear and accessible while messages are loading. <!-- 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:20:03 +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#5840
No description provided.