[BUG] AI personality report is lost when the AI adds text around the JSON

Aperta
#4,041 3 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@Sakshamebdev873 ci sta già lavorando.

Dal 3/12/2026.

  • #4047 di @Sakshamebdev873 — aperta

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

status:assigned

The AI personality report often shows the basic (non-AI) report even when the AI replied fine.

Problem

  • The route only strips ``` fences before JSON.parse. If the AI adds a line like "Here's your report:" before or after the JSON, parsing fails and the AI report is lost.
  • Fields are not checked properly: empty strengths or non-text values (shown as [object Object]) get through.
  • This parsing has no tests.

Fix
Pull the JSON out of the reply properly, check each field, and add tests.

(The timeout and 24h cache problems are handled separately in #4035 / #4039.)

Lingua principale
TypeScript
Stelle
246
Fork
436
Merge medio
9h 33m
PR unite (30g)
213

Preparare l'ambiente

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 Priyanshu-byte-coder/devtrack

Tutte le issue di Priyanshu-byte-coder/devtrack

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.