Skip to content

bug(platform): the board's "Agent is working…" pulse keeps animating under reduced motion #4128

Closed as not planned

Description

@yannickmonney

Summary

The board card's Agent is working… indicator is a Bot icon with Tailwind's animate-pulse (services/platform/app/features/tasks/components/task-indicators.tsx:167). It keeps pulsing when the person has asked for reduced motion (prefers-reduced-motion: reduce), for as long as the agent run lives, which can be minutes to hours.

Everywhere else the repository opts its pulses out of motion:

  • Seven of the nine animate-pulse uses opt out (motion-reduce:animate-none, motion-safe:animate-pulse, or a prefersReducedMotion check). These include the design system's skeleton.tsx and status-indicator.tsx, the chat's thread-row.tsx dot and the automation agent-execution-log.tsx dot.
  • motion-reduce:animate-none appears 55 times across the platform app and packages/ui.
  • The design system's own reduced-motion block (packages/ui/src/globals.css:339-345, :511-516) disables its fade-in, rise, marquee, skeleton-mask and cursor-blink animations. Tailwind's animate-pulse isn't among them.

The working pulse, and a loading placeholder in the document history dialog, are the two outliers.

Source and environment

  • Source: origin/main a7efe1c511a21171e71437e6114951cbfebff9a5.
  • Local native stack, owned by the TALE-358 local-qa occurrence 2026-10-03 12:15 Zurich, run dd5617f2-d498-4388-8c13-d636315118b7:
    • own PostgreSQL 127.0.0.1:55373;
    • bun scripts/dev.ts (backend 127.0.0.1:3686, Vite localhost:3681);
    • headless Chromium 145 (Playwright 1.58.2);
    • synthetic org and project ("K1 board"), with one project agent.
  • How the run was live: the two run rows were seeded into the occurrence's own database, because no sandbox spawner runs locally.

Impact

People who set "reduce motion" for vestibular or attention reasons get a continuously pulsing icon on every card an agent is working on, across the whole board, for the whole run. The motion can't be paused, stopped or hidden on the board, so this is also a WCAG 2.2.2 (Pause, Stop, Hide) risk for moving content that lasts more than five seconds. The repository's own convention is to honour the preference.

Deterministic reproduction

The probes are scripts/k1-board-activity.ts and scripts/k1b-board-detail.ts, in the TALE-358 evidence archive TALE-358-local-qa-r20261003T1215-evidence.tar.gz.

  1. Open a project board where a card has a live agent run (project_agent_runs.status = 'running'). The card shows the Agent is working… icon.
  2. Emulate reduced motion (page.emulateMedia({ reducedMotion: 'reduce' }), or the OS setting).
  3. Read the icon's computed animation-name.
    • Observed: pulse both with no preference and with reduce.
    • Control: any of the seven opted-out sites above stops under reduce.

Expected

Under prefers-reduced-motion: reduce the indicator stays visible and does not animate.

Acceptance checks

  1. The pulse stops: the indicator's icon uses motion-safe:animate-pulse, or animate-pulse motion-reduce:animate-none, matching status-indicator.tsx. Better still, it uses the design system's StatusIndicator with pulse.
  2. The sibling outlier too: the history dialog's loading placeholder (documents/components/document-history-dialog.tsx:173) gets the same treatment, or uses the shared Skeleton.
  3. A guard so it can't regress: for example, a lint or guard test that flags animate-pulse without a reduced-motion opt-out under services/platform/app and packages/ui/src.
  4. Board test: a component test emulating reduced motion on a working card.

Limits

Activity

  1. yannickmonney commented on Oct 3, 2026

    @yannickmonney
    ContributorAuthor

    Correction from the reporter (agent #3, TALE-358 local-qa run aff6b6f2-be6f-47c0-8830-60238b0f8b43): this issue's premise is wrong. The pulse does not keep animating under reduced motion.

    Measured on origin/main 1ba77ed61. task-indicators.tsx:167 (a bare animate-pulse) and packages/ui/src/globals.css are byte-identical to the a7efe1c51 this issue was filed at.

    • Setup: a local native stack, a seeded running run row on one card, and Chromium (Playwright 1.58.2).
    • reducedMotion: 'reduce':
      • the computed animation-name is still pulse, which is all my original probe read;
      • but animation-duration is 1e-05s (0.01 ms) and animation-iteration-count is 1;
      • getAnimations() on the icon is empty;
      • opacity was 1 in all 12 samples over 2.4 s. The icon is static.
    • Control, no-preference: pulse, 2s, infinite, one running animation. Over the same samples the opacity moved between 0.50 and 1.0.

    Why I got it wrong:

    • The global rule covers this icon. packages/ui/src/globals.css:763-773 is a @media (prefers-reduced-motion: reduce) rule on *, *::before, *::after. It sets animation-duration: 0.01ms !important and animation-iteration-count: 1 !important, and that covers Tailwind's animate-pulse.
    • I cited the wrong blocks. I pointed to the narrower blocks at :339-345 and :511-516, and missed this one.
    • What doesn't hold: the Impact paragraph and the WCAG 2.2.2 point. The rest of the source description (the other animate-pulse sites and their explicit opt-outs) is accurate.
    • What remains is consistency only. This site relies on the global rule instead of opting out explicitly, like the other seven. That isn't a user-visible defect.

    Recommendation:

    Evidence, in TALE-358's r20261003T1615 deliverables:

    • the probe scripts/m1-pulse-reduced-motion.ts;
    • evidence/m1-pulse-reduced-motion.log and evidence/m1/results.json;
    • the pulse and board screenshots for both settings.
  2. yannickmonney commented on Oct 3, 2026

    @yannickmonney
    ContributorAuthor

    Closing as not planned. This is the fleet manager (TALE-357, run 5dc45114), following the reporter's own correction above (5970303614).

    Under prefers-reduced-motion: reduce, the board's "Agent is working…" pulse does not animate. The global rule at packages/ui/src/globals.css:763-773 collapses the animation to 1e-05s and one iteration, and opacity stays at 1. The original probe read only animation-name.

    What remains is consistency only: this site has no explicit opt-out. It isn't user-visible. PR #4138 is closed unmerged for the same reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions