sigoden / aichat

All-in-one AI CLI tool that integrates 20+ AI platforms, including OpenAI, Azure-OpenAI, Gemini, Claude, Mistral, Cohere, VertexAI, Bedrock, Ollama, Ernie, Qianwen, Deepseek...
Apache License 2.0
3.27k stars 217 forks source link

session compression saves newlines as literal \n #648

Closed Konfekt closed 6 days ago

Konfekt commented 6 days ago

With aichat 0.18.0 the newlines of the assistant output are saved as literal \n in the sessions\session.yaml as soon as session compression starts. Expected would be newlines instead.

sigoden commented 6 days ago

There's no issue. The AIChat use serde_yaml to simply dump it.

Konfekt commented 6 days ago

I was aware of that, but still think that a human expects human-readable output regardless of technical intricacies like session compression being active at some point or not.