Skip to content

[QUESTION] Allow two-line session titles in TUI Sessions dialog (#6166) #22480

Closed as not planned

Description

@CasualDeveloper

Question

Replacement for #6165, which was closed as stale.

Would maintainers accept letting long titles wrap to two lines in the TUI Sessions dialog?

The linked PR keeps the scope narrow:

  • DialogSelect stays single-line by default
  • only the Sessions dialog opts into maxLines={2}
  • wrapping/truncation is display-width-aware for Unicode/CJK text
  • workspace footers reserve their display width so titles do not overlap them

PR: #6166

Before:
before

After:
after

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Apr 14, 2026
  2. kommander commented on Apr 15, 2026

    @kommander
    Contributor

    I could see that working with a switch in the tui config, default off to not disrupt.

  3. CasualDeveloper commented on Apr 15, 2026

    @CasualDeveloper
    ContributorAuthor

    I could see that working with a switch in the tui config, default off to not disrupt.

    @kommander hmm. is a switch necessary? the session dialog already reserves two lines when the session names are too long. it just doesn't let the text the continue to the second line, per the screenshots.

    my changes wouldnot change the amount of lines reserved, just allow the names the continue into the second line, and if it cant fit, follow existing behaviour to truncate with a ...

  4. kommander commented on Apr 16, 2026

    @kommander
    Contributor

    Ah, I thought it was using Opentui text wrapping. I think it is okay then. It probably currently breaks for CJK/Unicode though if it's manual wrapping and truncation.

  5. CasualDeveloper commented on Apr 17, 2026

    @CasualDeveloper
    ContributorAuthor

    Ah, I thought it was using Opentui text wrapping. I think it is okay then. It probably currently breaks for CJK/Unicode though if it's manual wrapping and truncation.

    Thanks @kommander, good catch.

    I rebased #6166 onto the latest dev and updated the implementation to use display-width-aware wrapping/truncation instead of raw string length, so the CJK/Unicode case should be in much better shape now.

    Current scope is still the same:

    • Sessions dialog only
    • other dialogs remain single-line by default
    • focused tests added for Unicode/CJK, footer reservation, and truncation behavior

    If you have a preferred direction beyond that, happy to rework it further.

  6. changed the title [-][QUESTION] Allow two-line session titles in TUI Sessions dialog[/-] [+][QUESTION] Allow two-line session titles in TUI Sessions dialog (#6166)[/+] on Apr 18, 2026
  7. removed
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on May 3, 2026
  8. CasualDeveloper commented on Jun 6, 2026

    @CasualDeveloper
    ContributorAuthor

    Quick update: the fork branch has been refreshed and synced to origin/dev at 4519a1d.

  9. rekram1-node commented on Jun 23, 2026

    @rekram1-node
    Contributor

    Automated: closing question issues.

    GitHub Issues are for bug reports and feature requests only — questions / support are no longer tracked here.

    If this is a bug or feature request, please open a new issue with the appropriate template.

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