[Bug]: Settings → Projects → All projects no longer shows Actions, so machine-wide default actions can't be edited

Đang mở Phù hợp với người mới
#32,519 0 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ó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
76/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
react, typescript
Lĩnh vực
desktop, frontend

Hướng nghiên cứu

Bắt đầu trong apps/web tại trang cài đặt Projects và so sánh chế độ xem All projects với chế độ xem một dự án, nơi Actions hiện được hiển thị. Đọc cách xử lý defaultProjectScripts và các thay đổi liên quan trong #9754 và #6523. Công việc hoàn tất khi người dùng có thể thêm và chỉnh sửa các action mặc định áp dụng toàn máy trong All projects, đồng thời các dự án không có ghi đè vẫn tiếp tục kế thừa chúng.

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

Mô tả

Before submitting
  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.
Area

apps/web

Steps to reproduce
  1. Open Settings → Projects.
  2. Set the "Project scope" picker to All projects.
  3. Look for the Actions section to add an action that applies to every project.
Expected behavior

With All projects selected, the page shows an Actions section that edits the machine-wide default actions (defaultProjectScripts), as introduced in #9754 ("All projects edits machine-wide defaults"; screenshot "all projects defaults"). Projects without their own action list then inherit these defaults. This is also how #6523 (user-level actions for every project) was resolved.

Actual behavior

With All projects selected, the page only shows "Choose a project to manage its name, icon, checkouts and actions." There is no Actions section and no "Add action" button. The Actions section only renders inside the single-project view.

The setting itself still exists and is still resolved: the client resolver falls back to settings.defaultProjectScripts when a project has no override, and the settings search entry "Actions" still points to /settings/projects. So the machine-wide default is still used at runtime, but there is no UI left to create or edit it. The only way to set it is to hand-edit ~/.t3/userdata/settings.json.

Users who run the same actions in many projects now have to recreate them per project.

Impact

Major degradation or frequent failure

Version or commit

0.1.8-nightly.20261105.4218 (desktop, nightly channel)

Environment

macOS 27.2, T3 Code desktop app (Nightly)

Workaround

Add each action per project via Settings → Projects → (pick a project) → Actions → Add action, or hand-edit defaultProjectScripts in settings.json.

Ngôn ngữ chính
TypeScript
Star
24.8k
Fork
6.4k
Merge trung bình
10 giờ 38 phút
Pull request đã merge (30 ngày)
130

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

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

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 pingdotgg/t3code

Tất cả issue của pingdotgg/t3code

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.