Repository navigation
Preview tools can't emulate prefers-reduced-motion #25654
juliusmarminge
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
What happened
Agents can't emulate
prefers-reduced-motionin a preview tab.preview_set_appearanceonly setsprefers-color-scheme, and the server browser applies onlycolorSchemethroughpage.emulateMedia. So bugs that only appear with reduced motion can't be reproduced or verified with the preview tools.Fleet evidence: 44 friction entries from 2026-10-24 to 10-26 ("Preview lacks reduced-motion emulation", "Required reduced-motion emulation unavailable"). The issue lead for https://git.cafe/pingdotgg/t3code/issues/24183 parked on it in 40 rounds.
Expected
preview_set_appearance(or a sibling option) acceptsreducedMotion: "reduce" | "no-preference" | "system"and applies it on both the server browser (emulateMedia({ reducedMotion })) and the desktop browser (Emulation.setEmulatedMediafeatures).Where (origin/main
fe507c5a1e)apps/server/src/mcp/toolkits/preview/tools.ts:120:preview_set_appearanceinput is color scheme only.apps/server/src/preview/ServerBrowser.ts:642-653applyRendering:emulateMedia({ colorScheme })only.apps/desktop/src/preview/Manager.ts:2283,:2312: the desktop browser sendsEmulation.setEmulatedMediawithprefers-color-schemeonly.All reactions