# NousResearch/hermes-agent · AttributeError guard for _is_copilot_url on AIAgent

## Open now

- 1 issue, 2 PRs open on GitHub.
- #59845: \[Bug\] Cron job fails with AttributeError: 'AIAgent' object has no attribute '_is_copilot_url' (intermittent, non-Copilot providers)
- PR #59847: fix(copilot): guard _is_copilot_url() call with getattr to prevent AttributeError
- PR #59972: fix: guard _is_copilot_url() with getattr to prevent AttributeError (#59845)

A bug where AIAgent objects intermittently lack the '_is_copilot_url' attribute causes AttributeErrors, particularly with non-Copilot providers. Multiple fix attempts use getattr to guard the call defensively.

## TL;DR

- 5 member(s): 1 open issue(s), 0 closed issue(s), 2 open PR(s), 0 merged PR(s), 2 PR(s) closed without merging.
- No fix has been merged to main; one or more PRs were attempted (see below).
- **Recommended:** review the prior/competing PR(s) below. A fix was attempted but not merged; your case may extend or revive that work.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `unresolved`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.40`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Open related issues

- #59845: \[Bug\] Cron job fails with AttributeError: 'AIAgent' object has no attribute '_is_copilot_url' (intermittent, non-Copilot providers)

## Prior & competing PRs

- **#59847: fix(copilot): guard _is_copilot_url() call with getattr to prevent AttributeError**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`
  - files: `agent/conversation_loop.py`, `tests/test_copilot_initiator.py`
- **#59972: fix: guard _is_copilot_url() with getattr to prevent AttributeError (#59845)**. open
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#59847`, `#59845`
  - files: `agent/conversation_loop.py`
- **#60193: fix(agent): guard _is_copilot_url() with getattr to prevent AttributeError (#59845)**. closed without merge
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#59847`, `#59845`, `#59972`
- **#131307: fix(agent): getattr-guards on skew-sensitive agent-attribute calls**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`

## Fix status

- No merged fix on record.
- Subsystem: `agent`
