core-agent-ide/codex-rs/tui2
Josh McKinney a0b2d03302
Clear copy pill background and add snapshot test (#8777)
### Motivation
- Fix a visual bug where transcript text could bleed through the
on-screen copy "pill" overlay.
- Ensure the copy affordance fully covers the underlying buffer so the
pill background is solid and consistent with styling.
- Document the approach in-code to make the background-clearing
rationale explicit.

### Description
- Clear the pill area before drawing by iterating `Rect::positions()`
and calling `cell.set_symbol(" ")` and `cell.set_style(base_style)` in
`render_copy_pill` in `transcript_copy_ui.rs`.
- Added an explanatory comment for why the pill background is explicitly
cleared.
- Added a unit test `copy_pill_clears_background` and committed the
corresponding snapshot file to validate the rendering behavior.

### Testing
- Ran `just fmt` (formatting completed; non-blocking environment warning
may appear).
- Ran `just fix -p codex-tui2` to apply lints/fixes (completed). 
- Ran `cargo test -p codex-tui2` and all tests passed (snapshot updated
and tests succeeded).

------
[Codex
Task](https://chatgpt.com/codex/tasks/task_i_695c9b23e9b8832997d5a457c4d83410)
2026-01-06 11:21:26 -08:00
..
docs tui2: stop baking streaming wraps; reflow agent markdown (#8761) 2026-01-05 18:37:58 -08:00
frames feat(tui2): copy tui crate and normalize snapshots (#7833) 2025-12-10 22:53:46 +00:00
src Clear copy pill background and add snapshot test (#8777) 2026-01-06 11:21:26 -08:00
tests Sync tui2 with tui and keep dual-run glue (#7965) 2025-12-12 20:46:18 -08:00
Cargo.toml feat(tui2): transcript scrollbar (auto-hide + drag) (#8728) 2026-01-05 09:05:14 -08:00
prompt_for_init_command.md feat(tui2): copy tui crate and normalize snapshots (#7833) 2025-12-10 22:53:46 +00:00
styles.md Sync tui2 with tui and keep dual-run glue (#7965) 2025-12-12 20:46:18 -08:00
tooltips.txt chore: drop undo from the docs (#8431) 2025-12-22 15:09:48 +00:00