anthropics / anthropics/claude-code

Scheduled tasks: expose a per-task directory-access grant (parity with local-agent-mode's userSelectedFolders)

Đang mở
#92,357 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
area:permissions area:routines area:security enhancement
Ngôn ngữ chính
Python
Star
145k
Fork
23.1k
Chỉ số merge pull request
Chỉ số pull request đang chờ

Mô tả

Local-agent-mode scheduled tasks (`~/Library/Application Support/Claude/local-agent-mode-sessions//scheduled-tasks.json`) record a static `userSelectedFolders` array per task — an explicit, auditable list of which directories that task can reach.

Claude Code CLI's own scheduled-tasks feature (`mcp__scheduled-tasks__*`, registry at `~/Library/Application Support/Claude/claude-code-sessions//scheduled-tasks.json`) has no equivalent field — every task shows `userSelectedFolders: null`. Actual file access for these tasks is governed by `cwd` plus an `approvedPermissions` list, but that list only records approved **Bash** command strings; Read/Edit/Write access to paths outside `cwd` isn't recorded anywhere in the task JSON, even though it demonstrably works (granted dynamically per session).

This makes it impossible to audit "what directories can this scheduled task actually reach" from the registry alone for CLI-scheduled tasks, unlike local-agent-mode tasks. Requesting an explicit per-task directory-grant field (or at minimum, exposing accumulated Read/Edit/Write directory access the same way Bash commands are exposed via `approvedPermissions`) for parity and auditability.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Start with the mcp__scheduled-tasks__* entry points and compare the CLI registry at ~/Library/Application Support/Claude/claude-code-sessions//scheduled-tasks.json with the local-agent-mode registry. Trace how cwd, approvedPermissions, and dynamic Read/Edit/Write access are represented. Done means each CLI-scheduled task exposes an explicit, auditable directory grant in its task JSON.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
python
Lĩnh vực
cli, security
Loại issue
Tính năng
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức độ hoạt động
Sôi nổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
45/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.