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

Open
#4,041 3 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@Sakshamebdev873 is already working on this.

Since Dec 3, 2026.

  • #4047 by @Sakshamebdev873 — open

Assessment

This issue has not been assessed yet.

Description

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

Dominant language
TypeScript
Stars
246
Forks
436
Avg merge
9h 33m
Merged PRs (30d)
213

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Priyanshu-byte-coder/devtrack

All issues in Priyanshu-byte-coder/devtrack

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.