[PR #1448] [MERGED] Fix typing-triggered chat timeline renders #5093

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

📋 Pull Request Information

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

Base: refactor ← Head: fix/chat-typing-freeze


📝 Commits (2)

  • a0bef2e chat: reduce typing-triggered timeline renders
  • aca2ae6 Merge branch 'refactor' into fix/chat-typing-freeze

📊 Changes

3 files changed (+7 additions, -10 deletions)

View changed files

📝 src/features/modes/conversation/components/ConversationMessage.tsx (+1 -3)
📝 src/features/modes/shared/chat-ui/components/ChatMessage.tsx (+1 -3)
📝 src/features/modes/shared/chat-ui/hooks/use-chat-timeline-actions.ts (+5 -4)

📄 Description

Linked issue

Closes #1446

Why this change

  • Message rows and timeline actions subscribed to draft input changes, so typing in a large chat could re-render the timeline and make the composer feel frozen.

What changed

  • Remove draft-input subscriptions from conversation and shared chat message rows.
  • Keep regenerate button state tied to the guided-generation setting instead of the live draft input.
  • Read the latest draft input only when regenerate is clicked, preserving guided regenerate behavior without timeline-wide keystroke renders.

Refactor impact

Primary owner:

Chat mode / shared mode UI

Impact areas reviewed:

  • Conversation message actions
  • Shared chat message actions
  • Shared timeline regenerate action

Boundary notes:

  • Feature/UI-only change in src/features/modes; no engine, shared API, Rust, storage, provider, or remote-runtime boundary changes.

Pressure points touched:

  • Shared mode UI message rows
  • Shared chat timeline actions

Validation

  • pnpm check passes locally
  • pnpm typecheck passes locally
  • pnpm build passes locally
  • pnpm check:architecture passes locally
  • pnpm check:docs passes locally
  • cargo check --manifest-path src-tauri/Cargo.toml --workspace passes locally
  • Rust clippy/tests were run for Rust behavior changes
  • Browser or Tauri app manual verification completed
  • Playwright, screenshot, or recording evidence added for UI changes
  • Remote runtime smoke checked when relevant

Manual verification notes

  • Agent ran pnpm typecheck locally after rebasing this branch onto upstream/refactor; checkbox left unchecked per template instruction to keep boxes unchecked until human verification.
  • No browser/Tauri manual verification, screenshots, or recordings were captured.

Docs and release impact

  • No docs changes needed
  • Updated README.md
  • Updated CONTRIBUTING.md
  • Updated docs/developer/
  • Updated repo skills or AGENTS.md
  • Confirmed this PR does not restore old staging/package-workspace/release claims

UI evidence

Not captured.

Summary by CodeRabbit

  • Bug Fixes
    • Improved guided regeneration behavior to work independently of current input state in conversation and chat UI components.

Review Change Stack


🔄 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/1448 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 5/28/2026 **Status:** ✅ Merged **Merged:** 5/28/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `refactor` ← **Head:** `fix/chat-typing-freeze` --- ### 📝 Commits (2) - [`a0bef2e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a0bef2e6126279963a0497e184f50868efbd4da7) chat: reduce typing-triggered timeline renders - [`aca2ae6`](https://github.com/Pasta-Devs/Marinara-Engine/commit/aca2ae6a781749a3f68a56293467e8599981741b) Merge branch 'refactor' into fix/chat-typing-freeze ### 📊 Changes **3 files changed** (+7 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `src/features/modes/conversation/components/ConversationMessage.tsx` (+1 -3) 📝 `src/features/modes/shared/chat-ui/components/ChatMessage.tsx` (+1 -3) 📝 `src/features/modes/shared/chat-ui/hooks/use-chat-timeline-actions.ts` (+5 -4) </details> ### 📄 Description ## Linked issue <!-- Every user-facing PR should reference a feature request or issue report when practical. --> Closes #1446 ## Why this change <!-- What user problem, bug, refactor goal, or maintenance need does this solve? --> - Message rows and timeline actions subscribed to draft input changes, so typing in a large chat could re-render the timeline and make the composer feel frozen. ## What changed <!-- List the key changes in this PR. --> - Remove draft-input subscriptions from conversation and shared chat message rows. - Keep regenerate button state tied to the guided-generation setting instead of the live draft input. - Read the latest draft input only when regenerate is clicked, preserving guided regenerate behavior without timeline-wide keystroke renders. ## Refactor impact Primary owner: <!-- Examples: app shell, catalog, chat mode, roleplay mode, game mode, runtime generation, world-state, shared API, engine generation, Rust storage, imports, remote runtime. --> Chat mode / shared mode UI Impact areas reviewed: - Conversation message actions - Shared chat message actions - Shared timeline regenerate action Boundary notes: <!-- Note engine/shared-api/feature/Rust/remote-runtime boundaries. Say "none" only if you checked. --> - Feature/UI-only change in `src/features/modes`; no engine, shared API, Rust, storage, provider, or remote-runtime boundary changes. Pressure points touched: <!-- Mention ModeSurface, GameSurface, shared mode UI, src-tauri/src/lib.rs command registration, or import modules if touched. --> - Shared mode UI message rows - Shared chat timeline actions ## Validation <!-- Check only what you personally ran or manually verified. Treat unchecked items as explicit TODOs. --> - [x] `pnpm check` passes locally - [x] `pnpm typecheck` passes locally - [x] `pnpm build` passes locally - [x] `pnpm check:architecture` passes locally - [x] `pnpm check:docs` passes locally - [x] `cargo check --manifest-path src-tauri/Cargo.toml --workspace` passes locally - [x] Rust clippy/tests were run for Rust behavior changes - [ ] Browser or Tauri app manual verification completed - [x] Playwright, screenshot, or recording evidence added for UI changes - [x] Remote runtime smoke checked when relevant ### Manual verification notes <!-- Describe exactly what you tested in a real browser/app/runtime, step by step. If an AI agent filled this out, verify it yourself before ticking boxes. --> - Agent ran `pnpm typecheck` locally after rebasing this branch onto `upstream/refactor`; checkbox left unchecked per template instruction to keep boxes unchecked until human verification. - No browser/Tauri manual verification, screenshots, or recordings were captured. ## Docs and release impact - [x] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [ ] Updated `docs/developer/` - [ ] Updated repo skills or `AGENTS.md` - [ ] Confirmed this PR does not restore old staging/package-workspace/release claims ## UI evidence <!-- Add before/after screenshots or recordings for visible UI changes. --> Not captured. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved guided regeneration behavior to work independently of current input state in conversation and chat UI components. <!-- review_stack_entry_start --> [![Review Change Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/Pasta-Devs/Marinara-Engine/pull/1448?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack) <!-- review_stack_entry_end --> <!-- 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:13:10 +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#5093
No description provided.