mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6393] [MERGED] fix: open Conversation and Roleplay chats at the latest message #7163
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#7163
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6393
Author: @SpicyMarinara
Created: 9/19/2026
Status: ✅ Merged
Merged: 9/19/2026
Merged by: @SpicyMarinara
Base:
staging← Head:codex/chat-open-latest-message📝 Commits (2)
07f420achore: begin chat opening regression fix for issue 6392411e6ebfix: keep chat openings anchored through late layout📊 Changes
5 files changed (+232 additions, -19 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)➕
e2e/chat-open-bottom.e2e.ts(+154 -0)📝
packages/client/src/components/chat/ChatArea.tsx(+24 -5)📝
packages/client/src/components/chat/ConversationView.tsx(+11 -14)➕
packages/client/src/hooks/use-chat-opening-scroll.ts(+41 -0)📄 Description
Linked issue
Closes #6392.
Why this change
Opening Conversation and Roleplay chats must show the latest sent message on desktop and mobile, including reloads and switching chats. The initial scroll previously finished after two animation frames even if the transcript had no layout box yet or its content was still resizing. A controlled delayed-image reproduction left Conversation 3,209px and Roleplay 2,302px above the bottom on the staging baseline.
What changed
Validation
pnpm checkpasses locallyCONTRIBUTING.mdAutomated results:
pnpm checkpassed, including localization, formatting, lint, TypeScript and production builds. Six opening tests passed in desktop Chromium, mobile Chromium and mobile WebKit. Eleven existing checks passed for native selection, searching unloaded history and mobile Load More. Eight more opening checks passed against the built production server in desktop Chromium/Firefox and mobile Chromium/WebKit. The unrelated existing GameNarration hook-dependency warning remains.Local CodeRabbit reviewed all five files. Its trivial suggestion to add another observer and a fixed expiry was declined: opening rows are already mounted; later insertions use existing scrolling, and a timer would restore the late-layout deadline. The limited observation scope is documented in the hook.
Manual verification notes
The exact reporter environment was not available. Ordinary plain-text baseline checks passed; the failing reproduction exercises late layout changes. Mobile results above use Playwright device emulation. The new tests also cover a viewport becoming visible after mounting.
Docs and release impact
A user-facing
[Unreleased]changelog entry is included. No documentation, translations or release version changes are needed.UI evidence (if applicable)
Before/after screenshots, reproduction logs and review notes.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.