Thanks to visit codestin.com
Credit goes to github.com

Skip to content

πŸ› Bug: Previous Agent Response duplicates on New Question with Google ADKΒ #2718

@ldessemon2

Description

@ldessemon2

♻️ Reproduction Steps

Environment: Copilotkit.ai + ADK Agent (Python)

Agent Framework: Google ADK Agent (Integrated via AG-UI middleware)

CopilotKit Version: @copilotkit/react-ui: 1.10.6

Google ADK Version/SDK: 1.18

Steps to Reproduce:

Open the CopilotKit-powered chat interface.

First Question: Ask a question that triggers a result. (Example: "generate logs from 2025/11/10 3pm to 4pm").

Wait for the response to fully complete and display (e.g., "Log Retrieval Complete" and the links).

Second Question: Immediately enter and submit a new, different question. (Example : "What is the value of gateway.public.host").

Observe: Just before the agent starts streaming the new answer, the previous response ("Log Retrieval Complete" + links) reappears momentarily, followed by the new, correct response.

Image

βœ… Expected Behavior

The chat interface should immediately clear the previous agent response or display a new, clean loading/streaming state when a new user question is submitted. The previous message content should not flash or display before the new response starts.

❌ Actual Behavior

The previous response is displayed again when the new request is initiated, causing a visual duplication.

𝌚 CopilotKit Version

β”œβ”€β”€ @copilotkit/[email protected]
β”œβ”€β”€ @copilotkit/[email protected]
β”œβ”€β”€ @copilotkit/[email protected]

πŸ“„ Logs (Optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions