Skip to content

NameError: '_pool_may_recover_from_rate_limit' is not defined in conversation_loop.py #27402

@mircolike

Description

@mircolike

Bug: agent/conversation_loop.py:2254 calls _pool_may_recover_from_rate_limit()
which is defined in run_agent.py:239, but conversation_loop.py doesn't import it.

Repro: Configure a fallback model, hit a 429 from the primary provider.
The agent crashes with NameError: name '_pool_may_recover_from_rate_limit' is not defined.

Fix: Add from run_agent import _pool_may_recover_from_rate_limit to
agent/conversation_loop.py imports.

Found in commit 519657aa9.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High — major feature broken, no workaroundcomp/agentCore agent loop, run_agent.py, prompt builderduplicateThis issue or pull request already existstype/bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions