Files
pipelines/app/notes/slow-stop-rotation.md
T

1.9 KiB

Slow continuous Stop rotation

User requested the Stop button rotate slowly and continuously in chat.

  • The glyph makes one linear turn every 8 seconds, repeating for as long as the processing turn keeps Stop visible. Native button geometry, semantics, tooltip, hit target and interrupt action stay stationary/unchanged; Send remains available. No transcript or transport state is driven by animation.
  • A local RepaintBoundary confines painting to the icon. TickerMode silences hidden routes; controller disposal stops animation when Stop disappears.
  • System reduced motion makes the icon static and resets its angle; re-enabling motion resumes rotation.
  • Tests cover 8-second cadence/repetition, reduced-motion toggling, hidden mode, disposal, no ancestor repaint and both native button styles/actions/geometry.
  • Functional chat tests use a scoped reduced-motion test configuration so their asynchronous pumpAndSettle remains meaningful with an intentionally infinite animation. Dedicated animation tests explicitly enable motion and pump time.
  • This exposed an existing zero-duration AnimatedSize layout mutation under reduced motion; 701449b4 skips that size animator entirely, with two regression cases for asynchronously arriving rows. Default-motion behavior is unchanged.
  • Full gate: clean analysis and 1,860 tests pass.
  • Normal-app browser probe CHECK_STOP_ROTATION=1 passes 20 checks/14 captures per host in build/stop-rotation-{material,cupertino}/. Pixel comparisons prove motion, identical hit-target geometry and static reduced-motion output. Both Material motion frames visually inspected.
  • No backend changes, service restarts or device operations. The prior stock-Back APK 29880696 finished and is preserved in build/candidates/stock-chat-back-29880696/; final combined web/APK deployment is pending. Actual device behavior unverified.