Files from Task 01 when selectors or helper types need final adjustment.
Dependencies
Task 01 must record the expected red tests.
Risks
Reading computed CSS colors too early can apply the previous theme.
Recreating xterm can interrupt active commands and erase the scrollback buffer.
A palette correction can reduce the distinction between ANSI hues after contrast adjustment.
Parallelism
sequential
Inputs
Task 01 failure evidence.
REQ-UI-TERMINAL-RENDERING-001
docs/specs/ui/system-design/terminal-rendering.md
All three current xterm constructor paths.
Results
Implemented the shared light and dark palettes, xterm minimum contrast
setting, adaptive live-theme synchronization, and fixed-dark PTY theme. The
root theme now applies before descendant terminal construction effects, and
the light bright variants remain visually distinct. The existing terminal
instance, buffer, WebSocket, focus, scroll position, running command, and
mobile composition remain unchanged. Unit, typecheck, targeted lint, desktop
production E2E, and Pixel 5 production E2E verification all pass.