Add a way to hide the deprecated "AI Presets" entry from the Wave Config sidebar

Đang mở Phù hợp với người mới
#3,282 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
70/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
typescript
Lĩnh vực
frontend

Hướng nghiên cứu

Bắt đầu trong frontend/app/view/waveconfig/waveconfig-model.ts và kiểm tra getDeprecatedConfigFiles(), so sánh việc kiểm tra tệp presets.json hiện có với mục nhập presets/ai.json không điều kiện. Xem tài liệu AI Presets và chọn một trong các hành vi ẩn được yêu cầu; hoàn tất có nghĩa là mục nhập đã lỗi thời không còn được hiển thị khi cấu hình của nó không tồn tại hoặc cài đặt bỏ qua đã chọn đang được kích hoạt.

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

Mô tả

Summary

The Wave Config (Settings) sidebar always shows a deprecated AI Presets entry pointing at presets/ai.json. There's no way to dismiss or hide it. Per the docs at https://docs.waveterm.dev/ai-presets, this surface has been deprecated in favor of waveai.json (Wave AI Modes). For users who never used AI presets, or who have migrated to Wave AI Modes, the entry is permanent visual noise in the sidebar.

Current behavior

In frontend/app/view/waveconfig/waveconfig-model.ts, getDeprecatedConfigFiles() already filters the other deprecated entry (presets.json) so it's only shown when the file actually exists on disk. The presets/ai.json entry has no equivalent gate and is always rendered, regardless of whether the file exists or whether the user has any AI preset config at all.

Request

Please provide a way to hide the deprecated AI Presets entry — for example, an opt-in setting, or auto-hide when the file doesn't exist (matching the existing presets.json behavior). Either approach would address the noise.

Ngôn ngữ chính
Go
Star
22.3k
Fork
1.1k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

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 wavetermdev/waveterm

Tất cả issue của wavetermdev/waveterm

Issue tương tự

Thêm issue về Go

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.