Skip to content

Make sidebar file preview errors easier to act on - #62362

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/1db35c831bb112d67e8c0171a85a20d02cc15a08
Nov 18, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/1db35c831bb112d67e8c0171a85a20d02cc15a08

Conversation

@copyberry

@copyberry copyberry Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Make sidebar file preview errors easier to act on

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.

## 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
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/1db35c831bb112d67e8c0171a85a20d02cc15a08 branch from e3f549d to 333ea31 Compare November 18, 2026 20:58
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor
Codex Review Summary: 🔄 Running

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-11-18T20:58:38.641265Z e3f549d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@copyberry
copyberry Bot merged commit 333ea31 into main Nov 18, 2026
11 of 24 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/1db35c831bb112d67e8c0171a85a20d02cc15a08 branch November 18, 2026 20:58
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 18, 2026

This branch was previously deployed

1 inactive deployment
issue-triage — 333ea319 Deployed Nov 18, 2026 by tkolya-dotcom via Translate non-English issue #26596
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants