Files
codex/codex-rs/tui
Felipe Coury 333ea31947 Make sidebar file preview errors easier to act on (#62362)
## Why

When a file preview fails, the generic error can leave users guessing
which file failed, especially when the sidebar truncates the tab label.

## What changed

Show the filename and directory in the failed preview. Give users
specific guidance for missing files and permission errors, and retain
the error details for other failures. If the file link cannot be
resolved, include the original path in the chat error.

Preserve typed filesystem RPC errors so the preview can classify
failures from `fs/readFile`, and strip the server's diagnostic payload
before the errors can reach TUI logs.

## Testing

Cover narrow-pane error rendering, missing-file and permission error
classification, unresolved links, and diagnostic payload removal for
remote file reads.

GitOrigin-RevId: 1db35c831bb112d67e8c0171a85a20d02cc15a08
2026-11-18 20:58:12 +00:00
..