CopilotKit and Angular, Part 5: Shared State With an Agent on the Server
Move the dashboard out of the browser and into the agent's state, stored with the conversation on the server. Reload the page, or restart the server, and the conversation and the dashboard both come back. With a guard on the server that checks every change before it is stored, and the pitfalls I found on the way.