... msg in messages:
        if msg["role"] != "USER":
            continue
        c = (msg.get("content", "") or "").strip()
        if not c:
            continue

        # wörtlich übernehmen (kein Ich-Zwang)
        q = c.replace("\n", " ").strip()
        q = q if len(q) <= 500 else q[:497] + "..."

        # optional: Ich-Form markieren, ohne zu filtern
        is_ich = bool(re.search(r"\bich\b"...