Cloudflare Workers dashboard shows “Unknown” as the source of cf CLI deployments

Đang mở
#475 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
30/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
cloud, devtools

Hướng nghiên cứu

The report is about the dashboard's Source column showing Unknown for deployments whose API metadata reports cf_cli, so the cause may lie outside this repository. Start in packages/cli/src/version.ts, where USER_AGENT is defined, and in packages/cli/src/lib/deploy-context.ts, where it reaches the deployment request. Done means confirming which metadata field the dashboard reads and whether the CLI sends it; the issue itself says the dashboard mapping is not established.

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

Mô tả

upstream
Summary of the issue

After a successful cf deploy --prebuilt --mode production with [email protected], the Workers dashboard's Deployments → Deployment activity → Source column displays Unknown.

Affected page: Cloudflare dashboard → select an account → Workers & Pages → select a Worker → Production → Deployments. Within Deployment activity, the Source column displays Unknown.

Page URL pattern (account and Worker identifiers replaced with placeholders):

https://dash.cloudflare.com/<account-id>/workers/services/view/<worker-name>/production/deployments
Cloudflare Workers Deployments page in light mode showing Ready deployments with source Unknown

Screenshot captured in Cloudflare dashboard Light mode during a follow-up check on 2026-11-02. Cropped to exclude the account URL, Worker name and version IDs; the Deployments navigation and the Ready / Unknown values are unchanged.

For the same version, both the newer Workers API (read through cf workers versions get) and the script-versions REST API report cf_cli. The deployment record also reports cf_cli.

Rechecked on 2026-11-02 at approximately 05:01 UTC, about 15 minutes after deployment, in a newly opened dashboard tab. The version ID shown in the dashboard matches the API responses. The same symptom occurred with 1.0.0-beta.24 before upgrading and redeploying.

Deployment succeeds, the new version serves 100% of traffic, and the application responds over HTTPS. This report concerns the displayed deployment source: it makes a deployment from the official CLI look unrecognized.

Expected behaviour

Display a recognizable label such as Cloudflare CLI for a version whose source is cf_cli.

If additional metadata is required, please document it or have cf deploy supply it. I could not find a source-label option in the deploy command. Please route this to the dashboard/API owners if that is where the discrepancy belongs; I have not established which internal component causes it.

Version of cf used

1.0.0-beta.26 (also observed with 1.0.0-beta.24).

System information and package versions
  • macOS 27.2, arm64
  • Node.js 26.12.1
  • @cloudflare/vite-plugin: 2.0.0-beta.v.8
  • Vite: 7.3.7
  • Project configuration: cloudflare.config.ts
  • Authentication: API token
  • Deployment path: prebuilt output published by the locally installed cf binary
Reproduction (optional)

These are the steps used with an existing application; I have not reduced it to a minimal public repository or tested the non-prebuilt path.

  1. Build and publish the configured Worker:
    cf build --mode production
    cf deploy --prebuilt --mode production
    
  2. Read the active deployment and its version:
    cf workers deployments list --worker <worker-name> --mode production
    cf workers versions get <version-id> --worker-id <worker-name> --mode production
    
  3. Cross-check that same version with:
    GET /accounts/{account_id}/workers/scripts/{script_name}/versions/{version_id}
    
  4. Open the Cloudflare dashboard page using the navigation path above and compare the matching version’s Source column in Deployment activity.
Relevant error logs (optional)

No deployment error. Selected response fields only; identifiers, bindings and author information are omitted:

Surface Observed value
cf workers deployments list: matching deployment's source cf_cli
cf workers versions get: matching version's source cf_cli
Script-versions REST API: result.metadata.source cf_cli (HTTP 200, success: true)
Dashboard: same version's Source Unknown
Dashboard: Status / Triggered by Ready / by API token

The script-versions API reference explicitly lists cf_cli as a supported source, distinct from unknown.

The beta.26 source defines USER_AGENT = cf-cli/${VERSION} and passes it through the deployment request context. This supports checking the CLI/dashboard integration, but does not establish a specific dashboard mapping or caching bug.

Ngôn ngữ chính
TypeScript
Star
993
Fork
65
Merge trung bình
18 giờ 28 phút
Pull request đã merge (30 ngày)
207

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của cloudflare/cf

Tất cả issue của cloudflare/cf

Issue tương tự

Thêm issue về TypeScript

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.