Files
Hermes_rocket.chat_Plugin/plugin/archivar
Bernd (Hermes) bf67761a57 fix(P1): F6 Nachbesserung — 4 fehlende _room_context Stellen + Inkonsistenz + Tests
P0: 4 ungepatchte _CURRENT_ORIGIN_ROOM.set() Stellen mit _room_context gefüllt:
- Z.2924: topic_scoped_sticky match → target_room_id
- Z.2969: topic_scoped_sticky (zweiter Branch) → target_room_id
- Z.3141: Auto-Route (V8.1 P1 path) → target_room_id
- Z.3196: Default-Origin (stay_in_room) → room_id

P1: send_clarify() Reihenfolge getauscht:
- _room_context VOR _THEMATIC_TARGET_ROOM (exakt wie in send())

P1: Helper-Funktion _set_room_context_origin() eingeführt:
- Atomare setdefault + Index-Zuweisung unter _room_context_lock
- An allen 10 Stellen verwendet (9 _CURRENT_ORIGIN_ROOM.set() + 1 initial set)

P1: 3 neue Tests:
- Test 8: send_clarify mit leerer ContextVar → _room_context Fallback
- Test 9: Concurrency — 10 parallele Tasks, 5 set + 5 read
- Test 10: Stale-Entry — _room_context gewinnt gegen _user_rooms
2026-07-26 10:34:00 +02:00
..