#9936·AstrBot

[错误] 上下文压缩/裁剪导致对话历史丢失和对话遗忘

作者: lingyun14beta创建于 2026年9月3日更新于 2026年9月28日
  1. Set the "maximum number of conversation rounds to keep before compression" to a small value (such as 6), or perform a long conversation with the main model's "max_context_tokens" not explicitly configured (falling back to the default of 128000).
  2. Initiate a long task that requires a large number of tool calls (such as chunked file reading, multiple code searches, browser-like MCP).
  3. After the task is completed, check the "conversation history" in the Dashboard: the persistent history is truncated/overwritten, and only the last few rounds are retained.
  4. Send a message again: the robot "forgets" the previous content.

内容来源: AstrBotDevs/AstrBot