8b67e03f7e
P3: LLM_CONFIG base_url jetzt aus OLLAMA_BASE_URL Env-Var (config.py:150)
I1: LLM_ROOM_PROMPT umgeschrieben — STAY/ROUTE statt CATCH_ALL,
Ursprungsraum-Kontext, Few-Shot-Beispiele, Catch-All nicht als Option
(config.py:175-195, router.py:_llm_room_lookup)
P2: Origin-First Guard (Schritt -0.5) in router.py:route():
- origin_room_id leer (echte DM) → normaler Flow
- origin_room ist Catch-All → stay_in_room
- origin_room ist excluded → ignore
- LLM sagt STAY → stay_in_room
- LLM == origin_room → stay_in_room
- LLM == catch_all_room → stay_in_room (kein DM-Routing!)
- LLM == anderer Raum → Move-Request (Butler-Prinzip)
Catch-All-Schutz: DM-Nachrichten skippen Routing-Flow (router.py:270-282)
Move-Request-Routing-Fix (adapter.py):
- 1️⃣ Rüberkopieren → _CURRENT_ORIGIN_ROOM = Zielraum
- 2️⃣ Generell hier bleiben → Sticky-Eintrag
- 3️⃣ Hier bleiben → nur diesmal, kein Sticky
- Button-Labels aktualisiert: 1️⃣ Rüber / 2️⃣ Generell / 3️⃣ Hier
B6: Proaktiver Raum-Broadcast (tools.py):
- Neues Tool rocketchat_broadcast mit 5-Min-Cooldown
- Format: menschenähnlich, kein Bot-Ton
- Registriert in _TOOLS mit 📢 Emoji