What happened?
使用 qwen --resume 启动后,主进程 fork 的子进程内存占用不断上升。执行几次常规操作(如生成代码、解释脚本)后,内存就会增加几百 MB,且永远不会释放。长时间运行后进程会因内存耗尽而崩溃。似乎是会话的各种记录,工具调用的结果一直存储在内存中,没有随上下文压缩释放。
What did you expect to happen?
多次操作后,内存应该保持稳定,不会持续增长。会话记录和工具调用结果应该能被正常清理或压缩。原始的数据重要部分持久存储。
Client information
Client Information
Run qwen to enter the interactive CLI, then run the /about command.
$ qwen /about
# paste output here
状态 │
│ │
│ Qwen Code 0.16.0 (1b1f48674) │
│ 运行环境 Node.js v24.11.1 / npm unknown │
│ LSP disabled │
│ 操作系统 win32 x64 (10.0.26200) │
│ │
│ 认证 API Key - openai │
│ Base URL http://localhost:5000/v1 │
│ 模型 xf-GLM51-openai │
│ 快速模型 xf-GLM51-openai │
│ 会话 ID 34351db4-fcb2-4f0c-9e69-74bdbdbe0df6 │
│ 沙箱 no sandbox │
│ 代理 no proxy │
│ 内存使用 4.24 GB
Login information
API Config
Anything else we need to know?

What happened?
使用 qwen --resume 启动后,主进程 fork 的子进程内存占用不断上升。执行几次常规操作(如生成代码、解释脚本)后,内存就会增加几百 MB,且永远不会释放。长时间运行后进程会因内存耗尽而崩溃。似乎是会话的各种记录,工具调用的结果一直存储在内存中,没有随上下文压缩释放。
What did you expect to happen?
多次操作后,内存应该保持稳定,不会持续增长。会话记录和工具调用结果应该能被正常清理或压缩。原始的数据重要部分持久存储。
Client information
Client Information
Run
qwento enter the interactive CLI, then run the/aboutcommand.Login information
API Config
Anything else we need to know?