anthropics / anthropics/claude-code

[BUG] Cloud routine hangs on a permission prompt for the built-in Artifact tool, contradicting "routines run autonomously"

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

Mô tả

A weekday routine created at claude.ai/code/routines invokes the first-party `/morning` skill, which renders a brief and publishes it as a private artifact. Every run parks in `REQUIRES_ACTION` on a pending permission prompt — `update the artifact "Morning Brief"` — with nobody awake to answer, so the run dies there and the closing summary never arrives either.

This contradicts the documentation. Routines are described as having "no permission-mode picker and no approval prompts during a run", and the scheduling comparison table lists Cloud routines as "Permission prompts: No (runs autonomously)."

The routine's stored config carries `allowed_tools: [Bash, Read, Write, Edit, Glob, Grep, WebFetch, WebSearch]` — no `Artifact`. A routine created through the MCP `create_trigger` path instead stores `config: {}` with no tool list at all, so the restriction appears to follow the creation surface.

There is no user-facing workaround: routines expose neither a permission-mode picker nor a tool picker; project `permissions.allow` doesn't gate `Artifact` (tested); `permissions.defaultMode: auto` is documented not to take effect from project or local settings; and environments have no permission-mode variable, with setup scripts skipped whenever a cached environment exists.

**Why it matters:** the shipped `/morning` skill's own description offers to "set it up as a recurring weekday task", and its output is an artifact. So a first-party skill's advertised scheduled use case can't work on cloud routines.

**Expected:** either routines include `Artifact` in their tool set, or a run fails loudly instead of parking indefinitely on a prompt no one can answer.

Possibly related: #88731 (Artifact tool absent in `sdk-cli` entrypoint sessions), #61196 (closed; the MCP-connector analog on remote routines).

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 at the cloud routine creation path at claude.ai/code/routines and compare it with the MCP create_trigger path; inspect the stored tool configuration and reproduce the REQUIRES_ACTION state for the Artifact prompt. Done means a routine using the first-party /morning skill completes without an unanswered prompt, or fails loudly with a clear result.

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

Đánh giá

Công nghệ
cloud
Lĩnh vực
cloud
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
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
48/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.