Suddenly no memory.
Author: rodolfoapCreated May 27, 2026Updated Jul 12, 2026
aichat started losing memory on one of my computers. I copied the config from the bad PC to the good one, and now, both have no memory. I've completely deleted the config dir, and the issue persists.
This occurs not only with one model, but with all, all terminals, with or without env vars, etc. See:
/home/john > /usr/local/bin/aichat --info # ALL CONFIG SEEMS TO BE IN ~/.config/aichat/
model openai:gpt-4.1
temperature null
top_p null
use_tools null
max_output_tokens null
save_session null
compress_threshold 4000
rag_reranker_model null
rag_top_k 5
dry_run false
function_calling true
stream true
save false
keybindings emacs
wrap no
wrap_code false
highlight true
theme dark
config_file /home/john/.config/aichat/config.yaml
env_file /home/john/.config/aichat/.env
roles_dir /home/john/.config/aichat/roles
sessions_dir /home/john/.config/aichat/sessions
rags_dir /home/john/.config/aichat/rags
macros_dir /home/john/.config/aichat/macros
functions_dir /home/john/.config/aichat/functions
messages_file /home/john/.config/aichat/messages.md
/home/john > ls -la /home/john/.config/aichat/ # BUT I ONLY HAVE ONE FILE THERE
total 12
drwxr-xr-x 2 john john 4096 May 27 14:38 .
drwx------ 100 john john 4096 May 27 14:26 ..
-rwxr-xr-x 1 john john 109 May 27 14:38 config.yaml
/home/john > cat /home/john/.config/aichat/config.yaml # AND IT HAS ONLY A KEY:
model: openai:gpt-4.1
clients:
- type: openai
api_key: sk-...
/home/john > /usr/local/bin/aichat # BUT WHEN I LAUNCH aichat, this occurs, with any model:
Welcome to aichat 0.30.0
Type ".help" for additional help.
> My name is joooohnny
Nice to meet you, Joooohnny! How can I help you today?
> Can you spell my name?
Of course! Please tell me your name, and I can spell it for you.Expected behavior
J-O-O-O-H-N-N-Y (or something similar)Configuration
model openai:gpt-4.1
temperature null
top_p null
use_tools null
max_output_tokens null
save_session null
compress_threshold 4000
rag_reranker_model null
rag_top_k 5
dry_run false
function_calling true
stream true
save false
keybindings emacs
wrap no
wrap_code false
highlight true
theme dark
config_file /home/john/.config/aichat/config.yaml
env_file /home/john/.config/aichat/.env
roles_dir /home/john/.config/aichat/roles
sessions_dir /home/john/.config/aichat/sessions
rags_dir /home/john/.config/aichat/rags
macros_dir /home/john/.config/aichat/macros
functions_dir /home/john/.config/aichat/functions
messages_file /home/john/.config/aichat/messages.mdEnvironment (please complete the following information):
> env -i /usr/local/bin/aichat # RUNNING WITHOUT ENV VARS
Welcome to aichat 0.30.0
Type ".help" for additional help.
> My name is johny
Hello, Johny! Nice to meet you. How can I help you today?
> Please spell my name
Of course! But I don't know your name yet. Could you please tell me your name? Then, I can spell it for you.
> cat /etc/issue
Debian GNU/Linux 13 \n \l
> # (fully updated)
> arch
x86_64Terminals: gnome-terminal, terminator, kitty
Source: sigoden/aichat