Keep bidirectional TUI headers stable during shimmer (#61731)

## Why

Per-grapheme color updates can break native terminal bidirectional rendering in thinking and reasoning headers.

## What changed

Render text containing strong right-to-left characters or Arabic numbers as a single, static dimmed span in both shimmer implementations. Preserve logical text order and use one-second clock updates for these status headers when progress animation is disabled.

## Testing

Add snapshot coverage for Hebrew, Arabic, mixed-direction text, and Arabic numbers, checking that headers remain unchanged during the shimmer sweep. Add scheduling tests for static headers and active progress animation.

GitOrigin-RevId: 911abc50f00db597ae4dcfca9941e9f63547c2f9
This commit is contained in:
Eric Traut
2026-11-16 03:24:23 +00:00
committed by copyberry
parent eb53da6c3a
commit 540eb31ece
9 changed files with 107 additions and 1 deletions
+1
View File
@@ -5350,6 +5350,7 @@ dependencies = [
"tracing-appender",
"tracing-subscriber",
"two-face",
"unicode-bidi",
"unicode-linebreak",
"unicode-segmentation",
"unicode-width 0.2.1",