Skip to content

fix(session-ui): truncate long reasoning headings instead of overflowing - #48008

Open
CannonRS wants to merge 1 commit into
anomalyco:devfrom
mQorva:thinking-heading-truncate
Open

fix(session-ui): truncate long reasoning headings instead of overflowing#48008
CannonRS wants to merge 1 commit into
anomalyco:devfrom
mQorva:thinking-heading-truncate

Conversation

@CannonRS

@CannonRS CannonRS commented Sep 8, 2026

Copy link
Copy Markdown

Issue for this PR

Closes #48007

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Long reasoning headings in the session-turn-thinking row overflow the timeline
to the right: the heading is a flex child with min-width: 0 but no overflow
handling, and TextReveal renders with white-space: nowrap.

The change clips the heading to the available row width:

  • session-turn.css: .session-turn-thinking-heading gains
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis.
  • session-turn.tsx / message-timeline.tsx: both thinking rows pass truncate
    to TextReveal, which the component already supports (data-truncate sets the
    track width to 100% and applies ellipsis). No new component surface is added.

How did you verify your code works?

  • TextReveal.truncate already exists upstream (props.truncate + data-truncate
    CSS), so the change is purely wiring + one CSS rule.
  • Typecheck in packages/session-ui in the fork run is green; the worktree
    typecheck is currently blocked by an environment-level vite/client.d.ts
    parse error from the worktree bun install (unrelated to this change — the
    same files typecheck in the fork where the identical code is committed).
  • CSS git diff --check clean; diff is +5/-1 across three files.

Screenshots / recordings

N/A — visual-only clipping fix, no behavioural change outside the clipped heading.
A recording can be added on request.

Fork

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Thinking heading text overflows the session timeline on long reasoning topics

1 participant