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

Aperta
#96 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

@MuhammadFaizan-prog ci sta già lavorando.

Dal 3/12/2026.

  • #97 di @MuhammadFaizan-prog — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
30/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
typescript
Ambito
backend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
7
Fork
22
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di RocketChat/Apps.QuickReplies

Tutte le issue di RocketChat/Apps.QuickReplies

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.