mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 21:01:08 +02:00
Smoke-testing /api/v1/research/start with mana-search down surfaced a crash: drizzle's .values([]) throws "values() must be called with at least one value", which dropped the run into status='error' even though the failure is a perfectly normal "no results" case. Two changes: - Guard the sources insert behind enriched.length > 0 - If retrieval returns nothing, short-circuit straight to status='done' with an explicit German "keine Quellen gefunden" summary instead of feeding an empty corpus to the synthesiser The same path also triggers when every sub-query genuinely returns no results (very specific question, niche domain) so this isn't just an ops-failure case. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| drizzle/research | ||
| src | ||
| drizzle.config.ts | ||
| package.json | ||
| tsconfig.json | ||