mirror of
https://github.com/openai/codex.git
synced 2026-11-18 22:20:48 +00:00
## 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