MiniMax-AI / MiniMax-AI/minimax-code
[Feature]: 自主截图后应该主动清理干净
Open
Nobody has claimed this yet.
enhancement
needs-triage
- Dominant language
- TypeScript
- Stars
- 1.3k
- Forks
- 141
- Avg merge
- 2h 45m
- Merged PRs (30d)
- 46
Description
Problem / 你遇到的问题
Minimax Code在自主调试网页的的时候,会主动截图。表现为主动调用一个非沙盒的浏览器,浏览它生成的网站,然后截图调试。
但是这些截图被保存在了用户的目录(~)下。并且在使用结束后也没有清理。造成大量的垃圾存留。
Proposed solution / 期望方案
这些截图是典型的临时文件,应该保存在tmp下。更好的方式就是适当的时间,比如用完之后,就清理掉。我建议是保存在特定的文件夹,超过一定时间,比如24小时,就自动清理。
Platform / 平台
macOS
Additional context / 补充信息
No response
Before submitting / 提交前确认
- I have searched existing issues.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Locate the code path that launches the non-sandbox browser and saves the debugging screenshots. Trace where the temporary directory and cleanup lifecycle should be handled, then verify that screenshots no longer accumulate under the user’s home directory and that files older than the chosen retention period are removed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- macos, typescript
- Domain
- cli, tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100