diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-16 17:39:56 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-16 17:39:56 -0500 |
| commit | 1fef9aed248aaf7586950475aa22849e413f1c04 (patch) | |
| tree | cd7b101163e445d8eab6134b61841022afdaeb5d /tests/test-coverage-summary.el | |
| parent | 43022b56569717f28fa16284f7092f2bbe0830ad (diff) | |
| download | dotemacs-1fef9aed248aaf7586950475aa22849e413f1c04.tar.gz dotemacs-1fef9aed248aaf7586950475aa22849e413f1c04.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 'tests/test-coverage-summary.el')
0 files changed, 0 insertions, 0 deletions
