Skip to content

Conversation

@jeanlaurent
Copy link
Member

Fix Title Length

Ensures session titles are properly truncated to 50 characters maximum, sometimes the whole plan was being outputed in the title breaking the TUI completly

Changes

• Added MaxTokens option to provider options (set to 100 for title generation) by @rumpl suggestion
• Implemented truncateTitle() function that truncates titles to 50 chars with ellipsis
• Updated title generation to apply truncation before setting session title
• Added comprehensive test coverage for title truncation edge cases

Why

Prevents overly long session titles from breaking UI/UX constraints by enforcing a 50-character limit at the runtime level.

Signed-off-by: Jean-Laurent de Morlhon <jeanlaurent@morlhon.net>
@jeanlaurent jeanlaurent requested a review from a team as a code owner November 24, 2025 16:55
@dgageot dgageot merged commit 09ef034 into docker:main Nov 25, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants