feat(chat): render reasoning parts - #7135
Closed
anjola-adeuyi wants to merge 16 commits into
Closed
Conversation
More templates
algoliasearch-helper
instantsearch-ui-components
instantsearch.css
instantsearch.js
react-instantsearch
react-instantsearch-core
react-instantsearch-nextjs
react-instantsearch-router-nextjs
vue-instantsearch
commit: |
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 26 |
TIP This summary will be updated as you push new changes.
|
Size Change: +4.65 kB (+0.39%) Total Size: 1.2 MB 📦 View Changed
ℹ️ View Unchanged
|
|
Size Change: +15.6 kB (+1.31%) Total Size: 1.21 MB 📦 View Changed
ℹ️ View Unchanged
|
Contributor
Author
|
Superseded by #7139 which contains the corrected rendering-only implementation |
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.
Summary
Adds opt-in rendering for Chat reasoning parts so the Agent Studio Dashboard can preserve its existing reasoning disclosure when moving to InstantSearch Chat.
showReasoningdefaults tofalse. When enabled, reasoning is rendered in its original message order around tool calls and the final answer, collapsed by default. Only the active reasoning part shows progress.This also keeps restored conversations stable. Replayed text, reasoning, tools and structural parts are reconciled without duplication, output guardrails stop trailing content and restored client tools retain a single callback owner.
This narrows #7105 to the rendering and stream behavior required by FX-3831. It does not add summaries, PII heuristics, loading captions, additional visibility modes or a custom Dashboard chat implementation.
Result
Enable reasoning in React:
Or InstantSearch.js:
Covered behavior includes:
Reasoning parts
Each reasoning part is rendered as an independent disclosure and keeps its open state while the response streams.
Screen.Recording.2026-07-24.at.16.30.52.mov