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

2.3 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/; the combined APK is building. Actual device behavior unverified.
  • Focused exact scroll-roundtrip/system-Back tests also pass with the processing animation running at both 390/840 widths; it cannot hold the chat route open.
  • ./install --web succeeded and the combined bundle is public, with rollback app/build/web-before-stop-rotation-1792844021/. Authenticated public downloads on HTTPS 8443/8096 match installed JS SHA256 64fb0864ef9a9b92b740541b079b7329368894b47b8b1283a3e9adf6d03ae69d.