From 582f56e915a7c88eb0372496e298c9944f5832ae Mon Sep 17 00:00:00 2001 From: Patrick Jackson Date: Tue, 26 Mar 2024 17:00:28 -0600 Subject: feat: add `save_session` config item and `--save-session` cli option (#370) * fix: sessions should save when exiting * feat: improve save sessions * feat: do not allow saving the temp session name * feat: allow creating a session without interactive use * feat: add `save_session` config and `--save-session` option --------- Co-authored-by: sigoden --- config.example.yaml | 1 + 1 file changed, 1 insertion(+) (limited to 'config.example.yaml') diff --git a/config.example.yaml b/config.example.yaml index 2e6efed..de51d82 100644 --- a/config.example.yaml +++ b/config.example.yaml @@ -8,6 +8,7 @@ wrap_code: false # Whether wrap code block auto_copy: false # Automatically copy the last output to the clipboard keybindings: emacs # REPL keybindings. (emacs, vi) prelude: '' # Set a default role or session (role:, session:) +save_session: false # Whether to save the session automatically # Compress session if tokens exceed this value (valid when >=1000) compress_threshold: 1000 -- cgit v1.2.3