Skip to content

fix: use condom to undo circumcision#20159

Open
gigamonster256 wants to merge 1 commit intoanomalyco:devfrom
gigamonster256:gigamonster256/push-ykpxrnquwkxq
Open

fix: use condom to undo circumcision#20159
gigamonster256 wants to merge 1 commit intoanomalyco:devfrom
gigamonster256:gigamonster256/push-ykpxrnquwkxq

Conversation

@gigamonster256
Copy link
Copy Markdown
Contributor

@gigamonster256 gigamonster256 commented Mar 31, 2026

Issue for this PR

Closes #11154

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

wraps the tip so it isnt cut off

the tip presented when a user opens opencode on a project is sometimes cut off if it is too long - adds word wrapping to it and removes the height=4 (forcing 3 lines of padding + 1 line of tip)

How did you verify your code works?

set tip to not be random (for testing) and verified wrapping and eventual disappearing at very small window size

note: large tips now cause slight layout shift when toggled at a very small window size vs prev impl

Screenshots / recordings

After/Before

Too small
image

Medium
image

Normal
image

Large
image

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions
Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

Potential duplicate found:

Why it's related: Both PR #20159 and PR #11548 address the same issue (#11154) regarding tip text being cut off or truncated in the TUI. This appears to be a duplicate fix for the same problem.

@gigamonster256 gigamonster256 marked this pull request as ready for review March 31, 2026 00:40
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.

[BUG] Tip text is cut off when too long in the TUI

1 participant