Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Workspace namespaces: more than one Workspace per Durable Object storage

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

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

@aron-cf đang làm issue này rồi.

Từ ngày 8/10/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

enhancement

A Durable Object's storage holds exactly one Workspace, because the vfs_* table names are fixed. @cloudflare/shell in cloudflare/agents had a namespace option that gave each Workspace its own tables. That let one agent keep separate workspaces side by side, for example a scratch area and a durable project, or one per sub-task.

We're deprecating Shell for Computer. Nobody is blocked on this today, but I'm filing it so it's tracked.

Proposal
  • Add an optional namespace to WorkspaceOptions. Its default would keep today's table names, so existing data doesn't move.
  • A namespace prefixes every vfs_* / _vfs_* table, along with the execution-runtime tables.
  • Validate it strictly (for example ^[a-z][a-z0-9_]*$), because it goes into table names as text.
  • Two Workspaces with different namespaces on the same storage must not see each other's files, changes, sync cursors, or mounts.

A different option is to say "one workspace per Durable Object" and point people at facets or child DOs. If that's the intended model, document it and close this.

Ngôn ngữ chính
TypeScript
Star
9.5k
Fork
552
Merge trung bình
2 ngày 4 giờ
Pull request đã merge (30 ngày)
49

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/computer

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

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.