Watches the messages array for new delivered assistant responses.
The first save creates a new note via uploadFile, subsequent saves
update via modifyFile. No timers or debouncing — saves trigger
immediately on each new response.
The hook is a no-op when enabled is false or client is null.
Auto-save AI chat conversations as Notes to file storage.