From d024ccf65b530599f1ae003938547e8ff643b0f1 Mon Sep 17 00:00:00 2001 From: Peter Zhang <18501667167@qq.com> Date: Mon, 8 Jun 2026 09:50:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=85=8D=E7=BD=AE=20autoMode.allow=20?= =?UTF-8?q?=E5=92=8C=E6=9D=83=E9=99=90=E8=A7=84=E5=88=99=20-=20Closes=20#1?= =?UTF-8?q?06?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 新增 GITEA_USER=* python scripts/agent_poller.py * 权限规则 2. 新增 autoMode.allow 规则,Gitea 操作列为 Agent 核心工作流 3. autoMode 配置在下个 session 启动时生效 Co-Authored-By: Claude Opus 4.7 --- .claude/settings.json | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.claude/settings.json b/.claude/settings.json index 4ac0573..8a8dbb7 100644 --- a/.claude/settings.json +++ b/.claude/settings.json @@ -4,14 +4,19 @@ "allow": [ "Bash(git *)", "Bash(python scripts/agent_poller.py *)", + "Bash(GITEA_USER=* python scripts/agent_poller.py *)", "Bash(python scripts/run_pipeline.py *)", "Bash(python scripts/create_failure_issue.py *)", "Bash(python -m pytest *)", "Bash(python -c *)", "Bash(curl *)" ] + }, + "autoMode": { + "allow": [ + "$defaults", + "Running agent_poller.py with GITEA_USER env var to interact with Gitea (comment, close-issue, create-pr, merge-pr, create-issue, reopen-issue)", + "Running Gitea API operations via scripts (agent_poller.py, create_failure_issue.py)" + ] } } - - -