aboutsummaryrefslogtreecommitdiff
path: root/docs/design
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-16 17:39:56 -0500
committerCraig Jennings <c@cjennings.net>2026-05-16 17:39:56 -0500
commit27f49a8c23153b375313ee184652f22c4b93743d (patch)
treede328921f5da8e6a62c8390b3094247dfdc817d4 /docs/design
parent49e6dc25f31af9ce35dae7c7ca541491e7035209 (diff)
downloaddotemacs-27f49a8c23153b375313ee184652f22c4b93743d.tar.gz
dotemacs-27f49a8c23153b375313ee184652f22c4b93743d.zip
feat(ai-conversations): autosave on a periodic timer
The existing autosave only fired after gptel-send returned, so a conversation paused mid-thought wasn't on disk if Emacs crashed. I added a buffer-local repeating timer that calls cj/gptel--save-buffer-to-file every cj/gptel-autosave-interval seconds (default 60) for as long as cj/gptel--autosave-active-p holds. Toggle-off and kill-buffer-hook cancel it cleanly. Tests cover start/stop idempotency, the active-p predicate, the kill-buffer cleanup hook, and the toggle integration.
Diffstat (limited to 'docs/design')
0 files changed, 0 insertions, 0 deletions