fix: hyphenate wrapped text in agent thinking output#1597
Merged
adboio merged 2 commits intoPostHog:mainfrom Apr 9, 2026
Merged
fix: hyphenate wrapped text in agent thinking output#1597adboio merged 2 commits intoPostHog:mainfrom
adboio merged 2 commits intoPostHog:mainfrom
Conversation
Changes break-all to break-words and adds hyphens-auto class on the thinking output pre element so long words wrap with proper hyphenation marks instead of breaking mid-word. Fixes PostHog#1593
adboio
approved these changes
Apr 9, 2026
Contributor
|
@reverb256 pushed a commit after running pnpm lint, the code quality check was failing because some classnames were out of order -- please be sure to run these before submitting PRs :) we have these checks set up as precommit hooks, if you run |
Contributor
Merge activity
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Agent thinking output wraps long words mid-word without hyphenation marks, making it hard to read where words break.
Fixes #1593
Solution
Changed the
<pre>className frombreak-alltobreak-words hyphens-autoinThoughtView.tsx. This enables CSS hyphenation with proper hyphen marks at word breaks.break-wordsprevents mid-word breaks without indicationhyphens-autoadds proper hyphenation marks (the<html lang="en">attribute already enables English hyphenation rules)Screenshot
Before: words break mid-character with no indication
After: words wrap with proper hyphen marks (e.g.,
hyphe-at line end)Files Changed
apps/code/src/renderer/features/sessions/components/session-update/ThoughtView.tsx— 1 line changed