mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8896] [MERGED] fix(client): chat list scrolls to the open chat when its data arrives late; two test races #8870
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#8870
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/8896
Author: @SpicyMarinara
Created: 11/5/2026
Status: ✅ Merged
Merged: 11/5/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/v252-drag-dice-glb📝 Commits (1)
0f8e2c8fix(client): the chat list scrolls to the open chat even when its data arrives late📊 Changes
3 files changed (+26 additions, -9 deletions)
View changed files
📝
e2e/drag-list-scroll.e2e.ts(+11 -1)📝
e2e/game-one-request-dice.e2e.ts(+4 -2)📝
packages/client/src/components/layout/ChatSidebar.tsx(+11 -6)📄 Description
Linked issue
Refs #8887 (the v2.5.2 promotion's browser-matrix failures).
Why this change
The full matrix on #8878 failed
drag-list-scroll :25on Chromium in both runs, once in the persona variant and once in the chat variant, and failedgame-one-request-dice :48on WebKit. The Playwright pin in #8894 doesn't cover either. Tracing the chat variant turned up a real bug in the chat list.What changed
ChatSidebar.tsx): the list scrolls the open chat's row into view 200 ms after its tab and folder settle. Two problems:document.querySelector, which could find the chat's composer first, because the composer carries the samedata-chat-id. It now looks only inside the chat list.hover()found the row still moving and retried. The retry scrolls the row to the list's bottom edge (in the CI trace, y 512 → 862), and the held drag then auto-scrolled against the wheel. The test now usesscrollIntoViewIfNeeded(), which waits without forcing a scroll.dice-roll-card--gameclass (AnimatedSkillCheckResult). The CI snapshot shows "Stealth Check / DC 15" inside it. The "no stand-alone dice card for a placeholder roll" assertion only passed while it ran before the banner appeared. The count now leaves out the banner's tray, and the assertion's meaning is unchanged.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Agent-run checks:
--repeat-each=3passed 9/9 on desktop-chromium and 9/9 on mobile-chromium, and passed on mobile-webkit. Other specs that use the chat list (chat-open-bottom, panel-keyboard-import, five core-flows tests, marinara-host-namespace :335) passed on all three projects.tsc --noEmit,check:e2e-typesand Prettier on the three files: pass.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.