AIAgent.__init__ appends a new RotatingFileHandler to the root logger on every instantiation without checking if one already exists. In gateway mode (new AIAgent per message), after N messages every log line is written N times to errors.log.
Also includes:
- Delivery dedup uses 2-tuple vs 3-tuple in
seen_platforms, so LOCAL target is always duplicated
context_compressor._call_summary_model crashes with AttributeError when API returns content=None
resize_tool_pool replaces the executor without shutting down the old one, leaking threads