opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Edit tool diff crops "-" character

Open emincangencer opened this issue 1 month ago • 1 comments

Description

When not in full screen window, you can see "userDataDir" not having double dash and instead single dash on the right while it's fine on the left.

Image

When I do full screen I see the double dash on the right:

Image

OpenCode version

1.0.150

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

arch linux hyprland

Terminal

alacritty

emincangencer avatar Dec 12 '25 18:12 emincangencer

This issue might be a duplicate of existing issues. Please check:

  • #3711: Syntax highlighting is broken (mentions + and - from diff not rendering correctly)
  • #4761: Edit tool diff view isn't colored (specifically about Edit tool diff rendering)
  • #4831: Diffs are shown as + and - without colors (directly related to diff character display)
  • #3775: Text and Boxes need flexShrink=0 where they should not shrink (character cropping/layout issue)

These issues appear to be related to text rendering and cropping in diffs, particularly with opentui. Feel free to ignore if your specific case differs from these!

github-actions[bot] avatar Dec 12 '25 18:12 github-actions[bot]