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

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

Maintainer thường phản hồi trong vòng 1 ngày

@Sakshamebdev873 đang làm issue này rồi.

Từ ngày 3/12/2026.

  • #4047 của @Sakshamebdev873 — đang mở

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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.)

Ngôn ngữ chính
TypeScript
Star
246
Fork
436
Merge trung bình
9 giờ 33 phút
Pull request đã merge (30 ngày)
213

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

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

Tất cả issue của Priyanshu-byte-coder/devtrack

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.