mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-17 13:13:35 +08:00
The release push gate exposed that the MessageList scroll tests fired synthetic user scrolls before the component's programmatic auto-scroll guard had reset. Waiting for the requestAnimationFrame reset keeps the tests aligned with the runtime behavior where users cannot scroll in the same frame as mount auto-scroll. Constraint: Pre-push quality gate must pass before publishing the release tag Rejected: Bypass pre-push verification | would publish without the repo's required PR quality evidence Confidence: high Scope-risk: narrow Tested: cd desktop && bun run test -- src/components/chat/MessageList.test.tsx --run Tested: bun run check:desktop Tested: bun run check:coverage Not-tested: Full bun run quality:pr after this commit; it will run again during push