chat history work in new sdk