Why do my previous chats appear in the chat window?

If you close a chat window with a particular user during a Google Talk session, upon starting a conversation with this user again, the most recent lines of your chat will be stored locally and appear in your chat conversation window until you sign out of the application.

If you sign out of Google Talk and log in at a later time, your previous chats will not appear in the chat window.