Skip to content

fix(opencode): handle newFileName correctly with fallback if path is /dev/null#13482

Open
OpeOginni wants to merge 5 commits intoanomalyco:devfrom
OpeOginni:fix/deleted-file-display-name
Open

fix(opencode): handle newFileName correctly with fallback if path is /dev/null#13482
OpeOginni wants to merge 5 commits intoanomalyco:devfrom
OpeOginni:fix/deleted-file-display-name

Conversation

@OpeOginni
Copy link
Copy Markdown
Contributor

What does this PR do?

Fixes #13481

Skip /dev/null in parsed patch filenames so deleted files show their actual path (use old filename when the new path is /dev/null).

How did you verify your code works?

Tested on my local

Screen.Recording.2026-02-13.at.15.12.15.mov

@OpeOginni OpeOginni changed the title fix(cli): handle newFileName correctly with fallback if path is /dev/null fix(opencode): handle newFileName correctly with fallback if path is /dev/null Feb 13, 2026
@OpeOginni
Copy link
Copy Markdown
Contributor Author

Added some nice UX update, rather than show the whole lines removed, a deleted message would be best just like in the desktop app.

Screen.Recording.2026-04-10.at.10.13.45.mov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

/dev/null file type shown when reverting message with file creation

1 participant