You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(web): busy fork button stops pulsing when reduced motion is enabled - #47983
Clicking Fork from this response on an assistant message pulsed the fork icon using a raw animate-pulse class, which kept animating even when prefers-reduced-motion: reduce was enabled.
What changed
TimelineAssistantRows.tsx: Gated the busy pulse with motion-safe:animate-pulse (keeping <GitForkIcon> and its sizing unchanged).
MessagesTimeline.browser.test.tsx: Added a reduced-motion regression test verifying animationName === "none" while busy.
Validation
vp run check:changed: format, lint, knip, typecheck, React Compiler, and 110/110 tests in MessagesTimeline.browser.test.tsx pass.
(Replaces #47896, dropping the output skeleton experiment so this PR stays focused on the reduced-motion fix.)
Macroscope's review found this PR approvable — The busy fork icon now respects reduced-motion preferences while retaining its existing behavior otherwise. Fork functionality and busy-state protection are unchanged.
Notes:
All code in this push has already been reviewed. Approvability was decided on eligibility alone.
No code changes detected at a36a000. Prior analysis still applies.
You can add or adjust custom eligibility rules. Learn more.
Reviewing files that changed from the base of the PR and between 874e0b7 and a36a000.
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
Trigger review
No actionable comments were generated in the recent review.
Walkthrough
The busy fork icon now uses a motion-safe animation utility. A browser test enables reduced motion and checks that the icon does not animate while the fork action is pending.
Changes: Fork action motion behavior
Layer / File(s)
Summary
Apply and verify reduced-motion behavior apps/web/src/components/chat/TimelineAssistantRows.tsx, apps/web/src/components/chat/MessagesTimeline.browser.test.tsx
The busy fork icon uses motion-safe:animate-pulse. The browser test checks that the button is disabled and the icon has no animation while the fork promise is pending under reduced motion.
This change makes the busy fork icon stop pulsing when reduced motion is enabled, and a test covers it. No merge-blocking risk is evident.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the fix: the busy fork button should stop pulsing when reduced motion is enabled. The raw summary confirms the change swaps animate-pulse for motion-safe:animate-pulse on the fork icon…
Description check
The description follows the template's main sections. It states the problem (the raw animate-pulse class ignores prefers-reduced-motion) and the change (motion-safe:animate-pulse plus a regression tes…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the fix: the busy fork button should stop pulsing when reduced motion is enabled. The raw summary confirms the change swaps animate-pulse for motion-safe:animate-pulse on the fork icon in TimelineAssistantRows.tsx, and a regression test covers it. The title is specific and matches the main change. It uses the conventional commit format.
Full details: Description check
Explanation
The description follows the template's main sections. It states the problem (the raw animate-pulse class ignores prefers-reduced-motion) and the change (motion-safe:animate-pulse plus a regression test). It gives validation results. The Scope section is missing: it does not link an issue that shows the bug, and it does not explain why no issue is needed. The Verification section reports the check run and test counts, but it does not describe the observed result for the changed behavior or state any checks that were not run. The template also asks for an agent/model attribution line, which the description includes in a footer. The description lacks a screenshot or recording, but this change is a motion change, so a short recording would help demonstrate it.
Resolution
Add a Scope section that links the issue showing the bug, or explains why a small obvious fix needs no issue. Expand Verification to state the observed result for the reduced-motion behavior, not only the check counts. Add a short recording or before/after evidence, since the change concerns motion. State anything that was not checked.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review.
Environment: real web dev app in Chromium, 1280×800, dark theme, fresh synthetic Replay data on each commit.
On each commit, seed a fresh demo project and one completed Multi turn Replay response, open its thread directly, emulate reduced motion, click Fork from this response, and hold the outgoing thread.fork dispatch. Confirm the button stays disabled, record 2.2 seconds of icon opacity, and capture it. Switch to no-preference and record the same busy icon for 2.2 seconds as a control.
Scenario: Busy fork respects reduced motion and keeps its normal-motion pulse
Base reduced-motion opacity ranged 0.505–0.999 with animationName: pulse. Head reduced-motion opacity stayed 1.0 in all 11 samples with animationName: none. Both sides stayed disabled; both normal-motion controls pulsed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
size:XS0-9 changed lines (additions + deletions).vouch:trustedAuthor is trusted by repo permissions or the VOUCHED list.
2 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
🤖 Gemini 4 Neon on behalf of Oliver
Clicking Fork from this response on an assistant message pulsed the fork icon using a raw
animate-pulseclass, which kept animating even whenprefers-reduced-motion: reducewas enabled.What changed
TimelineAssistantRows.tsx: Gated the busy pulse withmotion-safe:animate-pulse(keeping<GitForkIcon>and its sizing unchanged).MessagesTimeline.browser.test.tsx: Added a reduced-motion regression test verifyinganimationName === "none"while busy.Validation
vp run check:changed: format, lint, knip, typecheck, React Compiler, and 110/110 tests inMessagesTimeline.browser.test.tsxpass.(Replaces #47896, dropping the output skeleton experiment so this PR stays focused on the reduced-motion fix.)
Visual audit: GPT-6.2 Sol (Codex) · Implementation & PR: Gemini 4 Neon (Antigravity)