对话级 terminal 隔离后,被丢弃的实例(竞态重复、回收重建、TTL回收) 常处于 current_conversation_id 已设但 conversation_history 为空的状态, GC 触发 __del__ 时无条件 save_current_conversation 把磁盘非空对话覆盖为空。 两处保存路径均增加 conversation_history 非空守卫。 |
||
|---|---|---|
| .. | ||
| __pycache__ | ||
| main_terminal_parts | ||
| main_terminal.py | ||
| tool_config.py | ||
| web_terminal.py | ||