Use environment variable for default agent card URL and implement message deduplication to add streaming support#2
Open
alamkanak wants to merge 1 commit intoa2anet:mainfrom
Conversation
…e deduplication in Chat component
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.
This pull request introduces two main improvements: it makes the default agent card URL configurable via an environment variable, and it adds deduplication logic to the chat message list to support streaming messages.
Configuration improvements:
AddAgentModalis now set from theNEXT_PUBLIC_DEFAULT_AGENT_CARDS_URLenvironment variable, falling back to the previous hardcoded value if the variable is not set. This change affects both the initial state and the reset behavior when the modal is closed.Chat message deduplication:
messageId, ensuring that only the latest occurrence of each message is shown. Non-message items (such as task dividers, tool-calls, and artifacts) are always included. This allows for streaming messages