Skip to content

[BUG] Model/Session dialog truncating & incorrectly wrapping long names (#6166) #6165

Closed

Description

@CasualDeveloper

Description

Long session names in the Sessions dialog (ctrl+k) are truncated with "..." even though there's vertical space available. This makes it hard to distinguish between sessions with similar prefixes.

Current behavior

Session names are truncated at ~61 characters with ellipsis, displayed on a single line.

Proposed behavior

Allow session names to wrap to a second line (up to 2 lines max) before truncating, making better use of available space.

Fix

The fix involves:

  1. Adding flexWrap="wrap" to the option container
  2. Replacing overflow="hidden" with wrapMode="word" and maxHeight={2} on the text element
  3. Removing redundant paddingLeft={3} on the text element - this was causing opentui's flex layout to incorrectly calculate wrap width, resulting in some items displaying with double row height even when text fit on one line
  4. Increasing truncation limit from 61 to 122 characters

Screenshot

Before:

  • "Make scrollback and session list limits configurable #‍6137, ..." (truncated)
Image

After:

  • Full title visible across two lines with truncation only if exceeding ~122 chars
Image

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Dec 25, 2025
  2. changed the title [-]Session dialog truncates long names instead of wrapping[/-] [+]Model/Session dialog truncates and incorrectly wrapping long names[/+] on Dec 26, 2025
  3. changed the title [-]Model/Session dialog truncates and incorrectly wrapping long names[/-] [+]Model/Session dialog truncating/incorrectly wrapping long names[/+] on Dec 26, 2025
  4. changed the title [-]Model/Session dialog truncating/incorrectly wrapping long names[/-] [+]Model/Session dialog truncating & incorrectly wrapping long names[/+] on Dec 26, 2025
  5. changed the title [-]Model/Session dialog truncating & incorrectly wrapping long names[/-] [+][Bug] Model/Session dialog truncating & incorrectly wrapping long names (#6166)[/+] on Dec 26, 2025
  6. CasualDeveloper commented on Dec 30, 2025

    @CasualDeveloper
    ContributorAuthor

    Will continue rebasing on top of release tags as they're set.

  7. changed the title [-][Bug] Model/Session dialog truncating & incorrectly wrapping long names (#6166)[/-] [+][BUG] Model/Session dialog truncating & incorrectly wrapping long names (#6166)[/+] on Jan 25, 2026
  8. github-actions commented on Mar 27, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

  9. CasualDeveloper commented on Apr 14, 2026

    @CasualDeveloper
    ContributorAuthor

    Reopened as #22480

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

Metadata

Metadata

Assignees

Labels

opentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions