anthropics / anthropics/claude-code

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

Offen
#92,357 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
area:permissions area:routines area:security enhancement
Vorherrschende Sprache
Python
Sterne
145k
Forks
23.1k
PR-Merge-Kennzahlen
PR-Kennzahlen ausstehend

Beschreibung

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.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python
Bereich
cli, security
Issue-Typ
Feature
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Aktiv
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.