Honor system reduced-motion preferences in the TUI (#44666)

## Why

The TUI should respect the host's accessibility preference even when `tui.animations` is enabled.

## What changed

- Read the system motion preference once at launch on macOS, Windows, and Linux. Changes to that preference require restarting the TUI.
- Suppress animations when reduced motion is requested without changing saved configuration. Preserve configured behavior when detection is unavailable, and limit the Linux portal query to 250 ms.
- Use the effective animation setting for voice controls and transcripts, and honor system reduced motion in the startup composer.

## Testing

Add tests for animation preference resolution and preservation of saved settings, plus composer snapshots without sparkles at widths of 40 and 80 columns.

GitOrigin-RevId: 3ea4e721ae23220a040a06123a27286a8c8f1c7c
This commit is contained in:
Ian MacLeod
2026-09-10 22:55:04 +00:00
committed by copyberry
parent 84ed5744d9
commit 78600239a1
15 changed files with 240 additions and 21 deletions
+1 -1
View File
@@ -514,7 +514,7 @@ fn startup_draft_bottom_pane(
enhanced_keys_supported,
placeholder_text: "Ask Codex to do anything".to_string(),
disable_paste_burst: false,
animations_enabled: true,
animations_enabled: crate::system_motion::mode() == crate::motion::MotionMode::Animated,
skills: None,
},
ChatComposerConfig::plain_text(),