# NousResearch/hermes-agent · Gateway standing-goal loop bug and related fixes

## Open now

- 1 issue, 2 PRs open on GitHub.
- #63180: \[Bug\]: Gateway standing goal loops after provider failure and appends duplicate continuation prompts
- PR #63187: fix(gateway): stop standing-goal loop after a failed provider turn (#63180)
- PR #64337: fix: skip standing goal continuation on failed agent turns (#63180)

A bug causes the gateway to loop on standing goals and append duplicate continuation prompts after a provider or agent failure. Most members are fix attempts or variants targeting that loop, with one unrelated dashboard JWKS header fix also present.

## TL;DR

- 8 member(s): 1 open issue(s), 0 closed issue(s), 2 open PR(s), 0 merged PR(s), 5 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.25`: 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

- #63180: \[Bug\]: Gateway standing goal loops after provider failure and appends duplicate continuation prompts

## Prior & competing PRs

- **#49608: fix(dashboard): set headers for JWKS requests**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `#75437`, `#63273`
- **#63187: fix(gateway): stop standing-goal loop after a failed provider turn (#63180)**. open
  - maintainer direction: category `partial_fix`; implication `needs_llm`
  - files: `gateway/run.py`, `gateway/run_goals.py`, `tests/gateway/test_restart_resume_pending.py`
- **#63410: fix(gateway): prevent standing-goal loop after failed agent turns**. closed without merge
  - maintainer direction: category `duplicate_of`; implication `duplicate`
- **#63616: fix(gateway): skip goal continuation on failed agent turns**. closed without merge
  - maintainer direction: category `duplicate_of`; implication `duplicate`
- **#63950: fix(gateway): prevent goal continuation loop on agent failure (#63180)**. closed without merge
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#63180`, `#63150`, `#63953`, `#63141`
- **#63957: fix(gateway): prevent goal continuation loop on agent failure (#63180)**. closed without merge
  - maintainer direction: category `stale_abandoned`; implication `active`
- **#64337: fix: skip standing goal continuation on failed agent turns (#63180)**. open
  - maintainer direction: category `partial_fix`; implication `needs_llm`; refs `5c68afe8589e`, `#63180`, `#63273`, `#43093`, `#63950`, `#63187`, `#75437`, `#49608`, `#63203`, `#63281`, `#63410`, `#63444`, `#63614`, `#63616`, `#63957`, `#64031`, `#64126`, `#64337`, `#374151`
  - files: `gateway/run.py`

## Fix status

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