feat(chat): support prompt suggestions#6831
Merged
aymeric-giraudet merged 16 commits intomasterfrom Jan 6, 2026
Merged
Conversation
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 7f789be:
|
Haroenv
reviewed
Dec 17, 2025
FabienMotte
approved these changes
Dec 23, 2025
Haroenv
approved these changes
Dec 23, 2025
| {message.parts.map(renderMessagePart)} | ||
| </div> | ||
|
|
||
| {suggestionsElement} |
Contributor
There was a problem hiding this comment.
in the future, it may be interesting to add the suggestion to the message.parts directly and style it as a built-in tool, but this is the way to go for now
Comment on lines
+372
to
+376
| status === 'ready' && | ||
| message.role === 'assistant' && | ||
| index === messages.length - 1 | ||
| ? suggestionsElement | ||
| : undefined |
Contributor
There was a problem hiding this comment.
I first thought that it may make sense to remove it in the connector if it's not last, but there are probably some UIs where you keep displaying all suggestions.
c1fa2e8 to
9af869e
Compare
This was referenced Feb 5, 2026
5 tasks
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
FX-3596
Result
Screen.Recording.2025-12-17.at.11.01.21.mov