**Steps to reproduce:** 1. Navigate to the agent interface. 2. Delete a user message or an AI response from the conversation. 3. Ask a question that references the deleted context. 4. Observe the agent's history for the deleted messages. **Actual results:** - The deleted messages are retained in the context and are still visible in the agent's history. https://github.com/user-attachments/assets/70be8a7f-1208-4c21-b36f-4320e3053970 <img width="793" height="502" alt="Image" src="https://github.com/user-attachments/assets/e3c8641e-2235-4345-9aec-f209d537a5b4" /> **Expected results:** - Deleted messages should be removed from both the context and the agent's history, ensuring they do not influence subsequent interactions. **Other info** The issue is not reproduced in chat-conversations