Skip to content

[BUG]: Tui tips don't render correctly when too long #25279

Description

@TO19

Description

Tips longer than 69 visible characters get cut off at the end.

Image

Five tips currently exceed 69 chars. On a wide terminal the bug only shows when one of those is randomly selected, so it's intermittent.

Previously reported as #11154. Reopening because the bug is still present on dev.

OpenCode version

1.14.28

Steps to reproduce

  1. Make sure your connected to a provider and Tips are enabled in your config
  2. in tui/feature-plugins/home/tips-view.tsx L37 Replace randomTip with "This is a {highlight}long tip{/highlight}! This tip is way to long to render on a 75 wide parent"
  3. Launch the TUI bun dev

Screenshot and/or share link

Image

Operating System

26.4.1

Terminal

Ghostty

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions