Skip to content

Log handler accumulates on every AIAgent init, degrading gateway performance #990

@Himess

Description

@Himess

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions