* fix: cleaning a thread should just clear out messages * chore: clean up
* chore: managing and maintaining models and threads in the cache * test: add tests for hooks