HF RL Explorer

fix: keep agent chat history when CopilotKit clobbers the message state

fix: keep agent chat history when CopilotKit clobbers the message state: a task in github-trending-environments-10k (Harbor dataset). Title: fix: keep agent chat history when CopilotKit clobbers the message state

The task

**Title:** fix: keep agent chat history when CopilotKit clobbers the message state

Part of scalingX/github-trending-environments-10k.