[eric] agents: drop dead typing.Dict imports + dangling _conns ref (caught by ruff/pyright audit, behavior-preserving)

This commit is contained in:
ciregenz
2026-06-24 23:26:37 -07:00
parent 0f4dbd5769
commit dc53394e55
3 changed files with 6 additions and 6 deletions
@@ -209,10 +209,10 @@ async def configure_provider_env(
}
# Pin subagent ids to whichever lane the user has, else CLI's
# default Haiku 4.5 hits 9Router with no Claude route and 401s.
try:
sub_conns = _conns # reuse list fetched above
except NameError:
sub_conns = []
# NOTE: sub_conns is the connection list passed in. Callers currently pass []
# (see RunOptionsMixin), so `active` is empty and this pinning is inert until the
# real connection list is wired through — a latent regression from the run/ split,
# surfaced by pyright (the old inline `_conns` reference was left dangling here).
active = {c.get("provider") for c in sub_conns
if isinstance(c, dict) and c.get("isActive")}
sub_model = None
@@ -1,5 +1,5 @@
import os
from typing import Dict, List, Optional, Tuple
from typing import List, Optional, Tuple
from typeguard import typechecked
@@ -1,6 +1,6 @@
import json
import logging
from typing import Dict, List, Optional, Tuple
from typing import List, Optional, Tuple
from typeguard import typechecked
import os
import re