MiMo-Code icon indicating copy to clipboard operation
MiMo-Code copied to clipboard

日志疯狂记录-bug

Open Githantao opened this issue 5 months ago • 1 comments

Description

0.1.0版本-
mimocode 的日志在疯狂重复写入同一条消息,导致单个日志文件膨胀到 83GB。

具体情况:

- ~/.local/share/mimocode/log/2026-06-12T141027.log → 83GB(单文件)
- ~/.local/share/mimocode/log/2026-06-12T231216.log → 3GB(单文件)
- 其他日志都很小

从日志内容看,这是 mimocode 客户端 运行时的全量日志,记录每次 LLM 调用(message.part.delta)、session 状态变化、工具调用等。问题是:
1. 日志级别是 INFO,记录了所有细节(包括每个 delta 输出流)
2. 日志文件没有轮转/分割,一个会话从头写到尾
3. 从 2026-06-12T141027.log 的时间戳看,这个日志从 6月12日 14:10:27 开始写,一直写到 6月13日 07:11,连续写了 17 个小时,中间没有截断。

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Githantao avatar Jun 13 '26 02:06 Githantao

这确实是个非常严重的bug,我也遇到了

DaweiTian avatar Jun 13 '26 03:06 DaweiTian