[BUG] Personality report's Groq call has no timeout

Open
#4,035 2 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@nj-1812 is already working on this.

Since Dec 3, 2026.

  • #4039 by @nj-1812 — open

Assessment

This issue has not been assessed yet.

Description

status:assigned

What happens

/api/personality calls groqChatCompletion without an abort signal. /api/ai-insights uses AbortSignal.timeout(15_000), but this route has no limit, so if Groq hangs the request hangs until the platform kills it, and the user never gets the fallback report that's built for exactly this case.

The fallback report from a failed AI call is also cached for 24 hours (same as a real AI report).

Expected

  • Same 15 s timeout as ai-insights, so a hung call falls back to the templated report.
  • Cache the fallback only briefly when the AI call failed.

Where

src/app/api/personality/route.ts

I'd like to work on this.

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.