Commit b6e4325
authored
fix: hyphenate wrapped text in agent thinking output (#1597)
## 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 from `break-all` to `break-words hyphens-auto` in `ThoughtView.tsx`. This enables CSS hyphenation with proper hyphen marks at word breaks.
- `break-words` prevents mid-word breaks without indication
- `hyphens-auto` adds 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 changed1 parent fc5b70e commit b6e4325
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
0 commit comments