How to erase Sublime Text 3 interesting logs
Yes, Sublime Text is logging a lot of interesting informations in its .sublime_session file like everything you search in files and the path of each files you open, forever.
How do I prevent that?
You can't. Unless by creating a symlink of the .sublime_session file to /dev/null which is, a bad practice for this software I think. Instead, I can only suggest you to execute the command below from time to time. It will securely remove the file in 7 passes.