Edit tool diff crops "-" character #3506

Open
opened 2026-02-16 17:40:24 -05:00 by yindo · 1 comment
Owner

Originally created by @emincangencer on GitHub (Dec 12, 2025).

Originally assigned to: @kommander on GitHub.

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

Originally created by @emincangencer on GitHub (Dec 12, 2025). Originally assigned to: @kommander on GitHub. ### 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. <img width="1375" height="363" alt="Image" src="https://github.com/user-attachments/assets/aebab3f3-3e8f-4085-a8b3-439c5aff98e3" /> When I do full screen I see the double dash on the right: <img width="1386" height="346" alt="Image" src="https://github.com/user-attachments/assets/e6598d25-7c2a-494b-a6c2-0c13d2f58272" /> ### OpenCode version 1.0.150 ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System arch linux hyprland ### Terminal alacritty
yindo added the opentuibug labels 2026-02-16 17:40:24 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 12, 2025):

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] commented on GitHub (Dec 12, 2025): 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!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3506