Files
codex/codex-rs/tui/src
Felipe Coury be5db96264 Add read-only document previews to the TUI sidebar (#61888)
## What changed

- Open transcript file links in sidebar tabs when the TUI workspace is enabled, resolving and reading files through the focused thread's app server and rendering their contents as Markdown.
- Support pager keys, mouse scrolling, switching between document and chat tabs, and closing previews with `Esc`. Reuse existing previews and allow failed opens to be retried.
- Show loading and error states, and prevent late document results from taking focus back after the user switches views.
- Adapt tab widths to the available space, preserve filename extensions in truncated labels, and keep divider dragging aligned to exact terminal columns.

## Testing

Add coverage for workspace-gated link opening, loading and error states, retrying, custom pager bindings, multiple previews, tab reuse, closing during loading, and preserving focus when results arrive late. Update tab and divider assertions and snapshots.

GitOrigin-RevId: e979b757c623c29a8ed50277ec929655d783ad18
2026-11-16 21:49:03 +00:00
..
…
…