MiniMax-AI / MiniMax-AI/minimax-code

[Feature]: 自主截图后应该主动清理干净

Open
#68 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.