NousResearch/hermes-agent

model.context_length override scoping and leak fixes

Cluster 62152 · agent. Data as of

1 open item. Fix merged in #69114 on 22 Jul 2026. Check it covers your case.

The short answer

1open issue
0open PRs
4items grouped
Known?
Yes. 4 related items grouped here, 0 issues already closed.
Fix event
A fix was merged to main in PR #69114. Check it covers your case. No release data is tracked.
Tracker
The maintainers' tracker marks this unresolved. That is separate from the fix event.
Still open
1 issue and 0 PRs.

These items address a bug where a model.context_length override leaks beyond its intended scope, affecting sessions running different models. Related work also targets stale-budget retry loops in compression.

Open issues1

  • Issue#62152model.context_length override leaks onto sessions running a different model

Open PRs0

No open pull requests.

Fixes on record

Merged to main. A stamp counts the issues a fix is linked to.

  • #69114 fix(compression): prevent stale-budget retry loops

    merged to main

    files: agent/agent_init.py, agent/conversation_compression.py, agent/conversation_loop.py, agent/turn_context.py, cli.py, gateway/run.py, gateway/slash_commands.py, hermes_cli/config.py, hermes_cli/context_switch_guard.py, hermes_cli/model_switch.py, hermes_cli/route_identity.py, run_agent.py, tests/agent/test_compression_progress.py, tests/gateway/test_context_ref_expansion_runtime.py, tests/gateway/test_model_command_flat_string_config.py, tests/gateway/test_model_picker_persist.py, tests/gateway/test_session_info.py, tests/hermes_cli/test_apply_model_switch_result_context.py, tests/hermes_cli/test_config.py, tests/hermes_cli/test_context_switch_guard.py (+10 more)

2 PRs closed without merging

From the close comments: done elsewhere 1 · other 1

  • #62153 fix(agent): scope model.context_length override to config default model · done elsewhere → 377244f, 63dd651, #69114, #62152
  • #62241 fix: don't leak model.context_length override onto other-model sessions (#62152) · other → #62152, #62167, #62146
How this cluster was grouped
  • Link evidence (structural links throughout): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
  • Pairwise link density 0.50: the share of item 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.

Pick up a Lab task

Check whether a fix covers the open issues here, with your own agent. Bring back evidence for maintainers.

Open the Lab

At a glance

Subsystem
agent
Merged PRs
#69114
Closed issues
0
Attempts
2 PRs closed without merging
Fix link checked
22 Jul 2026

For your agent

The same facts, typed.