已关闭
[Bug]: .agent_history written into the project directory, polluting the user's execution environment #1490
openJiuwen-bot创建于  8月7日关闭于  8月17日
openJiuwen-bot成员
8月7日 创建

Checklist

🐞 Detailed Description of the Problem

WriteFileTool/EditFileTool/BashTool/PowerShellTool wrote .agent_history/file_ops_{agent_id}_{session_id}.json under get_workspace() or get_cwd() — i.e. inside the user's project directory. This is unnecessary pollution of the user's code execution environment: the history files show up in directory listings/git status, and worse, they can get picked up by later tool calls (directory listing, search) and fed into the model's context, distracting it with irrelevant history data instead of the actual task. Fixed in 06452ec4 by adding get_agent_history_root() (openjiuwen/core/sys_operation/cwd.py), which anchors .agent_history to jiuwenswarm's system data dir (JIUWENSWARM_DATA_DIR, falling back to ~/.jiuwenswarm) instead of the project workspace/cwd.

Detailed Environment Information Description

None

Additional Information

No response

Version Information

None

likedislike
openJiuwen-bot成员
8月7日 评论:

注意

此 Issue 需要负责人。 如果没有指派时, iamcandiceguo 是默认的负责人

likedislike
OopenJiuwen-bot成员
8月7日 将 iamcandiceguo 设为负责人
OopenJiuwen-bot成员
8月7日 修改了issue 的描述
OopenJiuwen-bot成员
8月7日 添加了label:sig/sig-agent-core
OopenJiuwen-bot成员
8月7日 添加了label:bug;删除了label:sig/sig-agent-core
openJiuwen-bot成员
8月7日 评论:

欢迎来到 openJiuwen 社区

Hey @openJiuwen-bot , 感谢你对社区的贡献.

机器人使用手册

有关指令的使用,可以点击 此处 查看详情。开发人员可以在每个PR或Issue下方评论特定指令来触发机器人任务。

联系指引

有疑问可以联系 SIG: sig-agent-core ,
维护者是: @seanzhang_cn, @xinyu-jiuwen ,
审核者是: @alan_cheng, @deyang, @iamcandiceguo, @yangzequ .

likedislike
Oopenjiuwen-sync成员
8月7日 issue类型由 Experience-Feedback 改变为 Bug-Report
2301_802470842301_80247084
8月10日 关联了pull request:fix(history): never write .agent_history into the project tree
Gguoqian成员
8月17日 删除了关联的pull request:fix(history): never write .agent_history into the project tree
Gguoqian成员
8月17日 关联了里程碑:V0.1.17
Gguoqian成员
8月17日 将 Jiuwen_Yankee 设为负责人
Gguoqian成员
8月17日 移除了负责人 iamcandiceguo
Gguoqian成员
8月17日 删除了关联的pull request:fix(history): never write .agent_history into the project tree
Gguoqian成员
8月17日 issue状态由 TODO 改变为 DONE
Gguoqian成员
8月17日 关闭了 issue