[Bug]: Add provider can create a built-in driver's default instance, which has no delete action
Maintainer thường phản hồi trong vòng 1 ngà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
- 77/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
- frontend
Hướng nghiên cứu
Bắt đầu với AddProviderInstanceDialog.tsx và ProviderSettingsPanel.tsx, sau đó lần theo cách defaultInstanceIdForDriver và ProviderInstanceRegistryHydration.deriveProviderInstanceConfigMap xác định các phiên bản mặc định. Tái hiện lỗi với một nhà cung cấp tích hợp có nhãn không thay đổi và kiểm tra các bài kiểm thử hiện có về việc tạo và xóa phiên bản nhà cung cấp. Công việc hoàn tất khi nhà cung cấp được thêm qua hộp thoại có thao tác xóa rõ ràng và lỗi hồi quy được kiểm thử bao phủ.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What happened
I added four providers through Settings → Providers → Add provider: Pi, Cursor, Antigravity and Kiro. All four now appear in Settings, but none of them has a delete action. Their detail pane only offers "Reset provider settings to default". Instances I added with a custom ID, such as a second Claude account or an ACP Registry agent, do show the trash / "Delete instance" action.
Why this happens
- Add provider pre-fills the label with the provider's label and derives the instance ID from that label. When the label still equals the provider label,
AddProviderInstanceDialog.tsxreturns the driver ID itself (pi,cursor,antigravity,kiro, …). ItsexistingIdsset only reservescodexandclaudeAgent, so those driver IDs are accepted. - That ID is exactly what
defaultInstanceIdForDriverreturns for the driver, andProviderInstanceRegistryHydration.deriveProviderInstanceConfigMapalways adds a default instance for every built-in driver. The created entry is therefore treated as the driver's default slot, not as an added instance. ProviderSettingsPanel.tsxmarks any instance whose ID equals the default ID asisDefault, and only passesonDeletefor non-default rows.ProviderInstanceCardrenders the trash button only whenonDeleteis set; default rows get the Reset button instead.- Reset does remove the stored entry, but the button and its confirmation only say "Reset … to its defaults", so nothing tells the user it is the only removal path. The row is also the only place that provider can be managed.
Steps to reproduce
- Open Settings → Providers.
- Click Add provider, choose Pi (or Cursor, Antigravity, Kiro), leave the label unchanged, click Next and Add instance.
- Select the new row and open its detail pane.
- Only "Reset Pi provider settings" is shown. There is no Delete / trash action.
- Clicking Reset asks to reset the provider to its defaults, not to remove it.
Expected behavior
A provider created through Add provider should be deletable like any other added instance. Either the dialog should not derive a built-in driver's default ID for new instances, or a default-slot row with an explicit stored config should also offer Delete.
Actual behavior
The created rows are reset-only and are indistinguishable from built-in defaults, so they look like providers that cannot be deleted.
Version
T3 Code 0.1.9 (desktop), macOS 27.0 arm64. The same code is on main today: AddProviderInstanceDialog.tsx still reserves only codex and claudeAgent, and ProviderSettingsPanel.tsx still renders onDelete only for !isDefault.
- Ngôn ngữ chính
- TypeScript
- Star
- 24.8k
- Fork
- 6.4k
- Merge trung bình
- 4 giờ 46 phút
- Pull request đã merge (30 ngày)
- 488
Chuẩn bị môi trường
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.
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của pingdotgg/t3code
-
bug needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
pingdotgg/t3code#38462 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của pingdotgg/t3code
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
solidjs/solid-docs#1716 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Progress indicated by console logs is off by oneCó thể đã có người làm @marceliwac đã nhận hôm nay. Đang mởbug needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
aws-samples/aws-cdk-examples#1336 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
melgarafael/DeskcommCRM#4999 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
db-ux-design-system/core-web#8856 ·
Maintainer thường phản hồi trong vòng 1 ngày