fix(memory): conversation_id em saves, fallback por numero, pool de conexoes PG
Isaac Quarenta
6e1619d
fix: context leaking between groups - include grupo_id in context_id generation
Isaac Quarenta
326737a
- config.py: generate_context_id now includes grupo_id in hash, removed weekly salt
- api.py: fallback ContextIsolationManager includes grupo_id in temp IDs
- database.py: recuperar_historico returns empty when conversation_id is empty (no numero fallback)
feat: remove ALL dedup/anti-loop logic from Python
Isaac Quarenta
7020ecf
Removed:
- recently_processed dict + dedup_timeout in lstm_memory_system.py
- _detect_loop() + loop detection call in bot_registry.py
- is_duplicate_content_hash() now returns False (database.py + database_pg.py)
- check_idempotency() now returns False (database.py + database_pg.py)
- LSTM idempotency check in lstm_extension.py
Messages now flow through without silent drops.
fix: lock timeout 30s + training worker + PostgreSQL setup