[Bug] AI auto-suggest accepts non-text and blank suggestions

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

@MuhammadFaizan-prog đang làm issue này rồi.

Từ ngày 3/12/2026.

  • #97 của @MuhammadFaizan-prog — đang mở

Đá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
30/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
typescript
Lĩnh vực
backend

Hướng nghiên cứu

The issue names the real message handler and stubbed provider responses, but gives no file or test path. Start by locating the auto-suggest handler and its tests, then reproduce with mixed and unusable arrays. Done means only usable strings fill the three slots, and no notification is sent when none remain.

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

Mô tả

What happened?

The auto-suggest handler accepts every entry in a JSON array from the AI provider. It can pass nulls, numbers, and blank strings to the notification builder as reply text, and invalid entries can take the three available suggestion slots.

Verification

Reproduced on main at fa72dc4 with the real message handler and stubbed provider responses. A mixed array should keep the first three usable strings. An array without usable strings should skip the notification.

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

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

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có 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 RocketChat/Apps.QuickReplies

Tất cả issue của RocketChat/Apps.QuickReplies

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.