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

会生产巨大的log文件,并且生成时会导致电脑卡顿

Open wekerSnail opened this issue 5 months ago • 4 comments

Description

Image

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

wekerSnail avatar Jun 11 '26 10:06 wekerSnail

无限上下文的代价?

albinhdk avatar Jun 11 '26 11:06 albinhdk

I ran into the same issue on Windows. In less than 8 hours, the log folder generated around 200GB of log files.

Even after deleting some files, the folder still takes up over 43GB with only 11 files (which means each log file is extremely large).

  • OS: Windows 11
  • Path: C:\Users\<username>\.local\share\mimocode\log

Here is the screenshot of my log directory properties:

Image

chenyi720 avatar Jun 11 '26 12:06 chenyi720

无限上下文的代价?

这应该不是上下文的问题,上下文是文本,文本不可能会这么大。更有可能是写入log的时候出现了错误。

Jieyi-Jiang avatar Jun 11 '26 14:06 Jieyi-Jiang

这个 bug 需要 MiMoCode 开发团队修复。问题在于 service=permission 日志记录了完整的 ruleset JSON(每条约 65KB),而你有几百个 skill,导致单次启动就产生 几百兆MB 日志。

MiMoCode 启动时 service=permission 日志记录了完整的 JSON ruleset(~65KB/条),13,000+ 条 skill/task 权限日志导致单个日志文件达到 几百兆MB。建议只记录决策结果或将详细规则放到 DEBUG 级别。

AChou-YUN avatar Jun 11 '26 16:06 AChou-YUN