Skip to content

feat(ui): add collapsible reasoning summaries#29858

Open
cola0908 wants to merge 4 commits into
anomalyco:devfrom
cola0908:feat/collapsible-reasoning-summaries
Open

feat(ui): add collapsible reasoning summaries#29858
cola0908 wants to merge 4 commits into
anomalyco:devfrom
cola0908:feat/collapsible-reasoning-summaries

Conversation

@cola0908
Copy link
Copy Markdown

@cola0908 cola0908 commented May 29, 2026

Issue for this PR

Closes #15257
Closes #14405

Type of change

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

What does this PR do?

Add collapsible UI for reasoning summary parts, matching the existing "Explored" pattern. Shows "Reasoning" with shimmer animation while the model is thinking, then transitions to "Reasoning Summary" as a collapsible section (open by default) when complete.

So it basically shows:

  • Reasoning when working, animated, following the other tools like exploring, etc.
  • Reasoning Summary when it's done

Changes:

  • packages/ui/src/components/message-part.tsx: Add working prop to MessagePartProps, pass it through AssistantPartsPartReasoningPartDisplay. Wrap reasoning content in Collapsible with TextShimmer header.
  • packages/ui/src/components/message-part.css: Add styles for reasoning-part-trigger layout, reduce markdown margin-top from 16px to 4px.
  • All 18 i18n files: Add ui.sessionTurn.status.reasoning and ui.sessionTurn.status.reasoningSummary translations.

How did you verify your code works?

  • TypeScript compilation passes (tsc --noEmit)
  • All 25 existing UI tests pass

Screenshots / recordings

N/A (UI change requires running TUI to demonstrate)

Checklist

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

@github-actions github-actions Bot added needs:compliance This means the issue will auto-close after 2 hours. and removed needs:compliance This means the issue will auto-close after 2 hours. labels May 29, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

@cola0908 cola0908 marked this pull request as draft May 29, 2026 09:21
- Add Collapsible wrapper to reasoning part with TextShimmer animation
- Pass working prop through MessagePartProps to determine active state
- Show 'Reasoning' with shimmer while thinking, 'Reasoning Summary' when done
- Add i18n translations for all 18 languages
- Add CSS for reasoning-part-trigger layout
@cola0908 cola0908 marked this pull request as ready for review May 29, 2026 09:29
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.

[FEATURE]: Collapsible reasoning summaries Agent responses need collapsable button

1 participant