agent应该要会自学:自我修正阻拦automode的项 #106
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Agent应该要更聪明,会自学,会从重复的错误中吸取教训。
最近的session,频繁出现auto mode被拦截的情况。这不符合用户预期,用户希望agent能完全独立完成工作,尽量只依赖gitea的信息。
发现auto mode被拦截,应该查出原因,更新auto mode allow或者permission policy或者其他来回复auto mode.
Config test comment from agent_poller.py
[pzhang_dev_agent_01]
问题
auto mode 反复拦截 agent_poller.py 的 Gitea 写操作(comment/close-issue/merge-pr/create-pr),导致 agent 无法独立完成标准工作流,需要频繁请求用户介入。
根因
Bash(python scripts/agent_poller.py *)不匹配GITEA_USER=...前缀的命令行修复
在
.claude/settings.json中:Bash(GITEA_USER=* python scripts/agent_poller.py *)权限规则autoMode.allow配置,将 Gitea API 操作(comment/close-issue/create-pr/merge-pr)列为 Agent 核心工作流验证
[pzhang_dev_agent_01]