mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
6f640f7eb1
## Summary `shared-state-read-write` pills showed **no chat responses** on staging. ### Cause #6227 wired deterministic replies for the suggestion pills, but those updates were emitted as: ```csharp new AgentRunResponseUpdate { Contents = [new TextContent(...)] } ``` without `Role = ChatRole.Assistant`. AG-UI's .NET adapter only turns assistant-role text into `TEXT_MESSAGE_*` events, so the frontend dropped every pill reply. Notes snapshots could still land; chat looked dead. ### Fix - Set `Role = ChatRole.Assistant` on deterministic text updates - Prefer `message.Text` when resolving the latest user message - Broaden pill matching for greet / weekend / remember-something copy ## Test plan - [x] `dotnet build` ms-agent-dotnet agent - [ ] Staging after deploy: Greet / Remember something / Plan a weekend all show assistant text; Remember something updates the notes panel