Skip to content

fix: resolve truncation in <DiffFileHeader /> - #31887

Merged
jakehwll merged 1 commit into
mainfrom
jakehwll/add-truncation-to-diff-file-header
Nov 9, 2026
Merged

jakehwll merged 1 commit into
mainfrom
jakehwll/add-truncation-to-diff-file-header

Conversation

@jakehwll

@jakehwll jakehwll commented Nov 7, 2026

Copy link
Copy Markdown
Collaborator

Noticed that these can push the diff off the screen.

Old New
image image

@jakehwll
jakehwll requested a review from a team as a code owner November 7, 2026 07:41
@jakehwll
jakehwll temporarily deployed to main November 7, 2026 07:41 — with GitHub Actions Inactive
@jakehwll
jakehwll temporarily deployed to main November 7, 2026 07:41 — with GitHub Actions Inactive
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-07T07:44:03.928400Z 8379717 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 83797171b9

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +80 to +81
? "max-h-[80vh] [&>div]:block!"
: "max-h-64 [&>div]:block!"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Apply the viewport fix to every diff-header caller

When write_file or the generic file viewer renders a long path, its Radix viewport child retains display: table because this override is added only to EditFilesTool. Both callers render the same DiffFileHeader, so the filename can still determine the wrapper's intrinsic width and push the tool card offscreen. Move this override into the shared scrollable/header setup or apply it to WriteFileTool and ToolFileViewer as well.

Useful? React with 👍 / 👎.

@jakehwll
jakehwll merged commit 58886fc into main Nov 9, 2026
48 of 49 checks passed
@jakehwll
jakehwll deleted the jakehwll/add-truncation-to-diff-file-header branch November 9, 2026 10:09

This branch was previously deployed

1 inactive deployment
main — 83797171 Deployed Nov 7, 2026 by jakehwll via community-label #252066
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants