mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 20:01:09 +02:00
Bei kurzen Posts (oder wenn mana-llm fehlschlug) hat der Auto-Title- Fallback `feedbackText.slice(0, 80)` den Body 1:1 als Title gespeichert — Card zeigte dann zwei Mal denselben Text. Zwei Schichten Schutz: 1. **Server (mana-analytics)**: catch-Branch wirft den Prefix-Fallback raus (title bleibt null). Zusätzlich neue isRedundantTitle()-Heuristik verwirft auch Auto-Titles, die nur ein truncierter Prefix des Bodies sind (Whitespace-collapse + Ellipsis-strip). 2. **Frontend (ItemCard)**: defensive showTitle-Computed — ältere DB- Items mit redundantem Title rendern automatisch nur den Body, ohne dass eine Datenbank-Cleanup nötig ist. Title-Slot bleibt für echte Auto-Summaries und manuelle Titel sichtbar. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| drizzle | ||
| src | ||
| CLAUDE.md | ||
| Dockerfile | ||
| drizzle.config.ts | ||
| package.json | ||
| tsconfig.json | ||