# NousResearch/hermes-agent · Summary model fallback retry passes wrong arguments bug

## Open now

- Nothing open on GitHub.

Multiple issues and fix attempts targeting a NameError and incorrect argument passing (focus_topic vs summary_budget) in the context compressor's summary model fallback retry path. The cluster represents one recurring bug reported and patched several times across overlapping PRs.

## TL;DR

- 11 member(s): 0 open issue(s), 2 closed issue(s), 0 open PR(s), 1 merged PR(s), 8 PR(s) closed without merging.
- A fix was merged to main in PR #14244. Verify it addresses your case.
- **Recommended:** read PR #14244 (and any competing PRs below) before filing. Confirm the merged change covers your symptom.

## 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_PARTIAL`): some members are connected by structural evidence (shared changed files, or a closing/superseded reference); the rest are joined by an automated relevance judgement over their text.
- Members outside that structural core may belong to a different underlying problem.
- Pairwise link density `0.17`: 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.

## Closed / duplicate issues

- #10721: Bug: summary model fallback crashes with NameError due to wrong arguments in _generate_summary
- #13905: Context compressor summary fallback retry passes wrong arguments

## Prior & competing PRs

- **#10724: fix: pass correct arguments in summary model fallback retry**. closed without merge · fix tier `suggested`
  - maintainer direction: category `partial_fix`; implication `needs_llm`
  - _suggested-tier fix detail withheld; re-request with `?tier=all` to include it._
- **#10767: fix(compressor): fix NameError in summary model fallback retry**. closed without merge · fix tier `suggested`
  - maintainer direction: category `uncategorized`; implication `needs_llm`
  - _suggested-tier fix detail withheld; re-request with `?tier=all` to include it._
- **#10777: fix: batch fix for 4 issues (#10721, #10755, #10723, #10748)**. closed without merge · fix tier `suggested`
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `c03858733`, `45e1228a8`, `50d438d12`, `d67e602cc`, `d4eba82a3`, `3b5572ded`, `#10721`, `#10755`, `#10723`, `#10843`, `#10748`
  - _suggested-tier fix detail withheld; re-request with `?tier=all` to include it._
- **#13906: fix(agent): preserve focus topic in summary fallback retry**. closed without merge · fix tier `suggested`
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `c03858733`, `#13907`, `#13959`
  - _suggested-tier fix detail withheld; re-request with `?tier=all` to include it._
- **#13907: fix(context-compressor): preserve focus_topic in summary model fallback retry (#13905)**. closed without merge · fix tier `suggested`
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `c03858733`, `c03858733d7f13f5d7b1de0c235ca106632f4131`, `#13906`, `#13959`
  - _suggested-tier fix detail withheld; re-request with `?tier=all` to include it._
- **#14244: fix(compressor): preserve focus_topic on summary-model fallback retry (salvage #10724)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`; implication `superseded`
  - files: `agent/context_compressor.py`, `scripts/release.py`
  - fix hunks:
  - `agent/context_compressor.py`

    ```diff
    @@ -848,7 +848,7 @@ def _generate_summary(self, turns_to_summarize: List[Dict[str, Any]], focus_topi
                     )
                     self.summary_model = ""  # empty = use main model
                     self._summary_failure_cooldown_until = 0.0  # no cooldown
    -                return self._generate_summary(turns_to_summarize)  # retry immediately
    +                return self._generate_summary(turns_to_summarize, focus_topic=focus_topic)  # retry immediately
     
                 # Transient errors (timeout, rate limit, network) — shorter cooldown
                 _transient_cooldown = 60
    ```
  - `scripts/release.py`

    ```diff
    @@ -364,6 +364,7 @@
         "[redacted:email]": "ms-alan",
         "[redacted:email]": "WuTianyi123",
         "[redacted:email]": "li0near",
    +    "[redacted:email]": "sicnuyudidi",
     }
     
     
    ```
- **#11273: fix 10721: fix NameError in summary model fallback path**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `c03858733`, `c03858733d7f13f5d7b1de0c235ca106632f4131`, `#10724`, `#14244`
- **#11412: fix(agent): pass focus_topic not summary_budget in compressor fallback**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `c03858733`, `c03858733d7f13f5d7b1de0c235ca106632f4131`, `#14244`
- **#13959: fix(compressor): preserve focus_topic on summary model fallback retry**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `c03858733d7f13f5d7b1de0c235ca106632f4131`, `#13906`, `#13907`

## Fix status

- Merged to main in PR #14244 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-04-23`. This confirmation is old and may be out of date (a revert/reopen would not have invalidated it here); re-verify.
- Subsystem: `agent`
