Skip to content

πŸ› Bug: Generative UI not working properly with useCopilotActionΒ #2005

@rohan-nerdster

Description

@rohan-nerdster

♻️ Reproduction Steps

When using useCopilotAction with actions from a remote python endpoint or TypeScript actions with CopilotChat.

βœ… Expected Behavior

Ideally once the handler returns the response the UI should be shown persistently and the data should be added to the messages and be used by the LLM for context.

❌ Actual Behavior

The UI renders for the inProgress status but once it is complete, the result UI appears for a split second before being reset and disappearing and the response from the handler is not added to the message either.
This works with the LangGraph coagent but this is not working as expected with the other methods as mentioned above. This is despite following the code as shown in the documentation and examples.

𝌚 CopilotKit Version

1.8.13

πŸ“„ Logs (Optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions