NousResearch/hermes-agent

GLM cloud model false truncation loop fix

Cluster 98406. Data as of

Nothing open on GitHub. Fix merged in #100924 on 2 Sep 2026. Check it covers your case.

The short answer

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

These issues and PRs address a bug where GLM models on Ollama Cloud were incorrectly identified as truncated due to stop-reason rewriting, triggering a continuation loop. The fix exempts these models from the problematic rewrite logic and caps salvage attempts.

Open issues0

No open issues.

Open PRs0

No open pull requests.

Fixes on record

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

  • #100924 fix(agent): GLM on Ollama Cloud no longer falsely truncated (#72316, #98406)

    merged to main

    files: gateway/platforms/api_server.py, run_agent.py, tests/run_agent/test_run_agent.py

2 PRs closed without merging

From the close comments: done elsewhere 1 · merged via another change 1

  • #98410 fix(agent): cap Ollama/GLM suspicious-stop continuation loop at one salvage attempt · done elsewhere → 8011aa3, #98406
  • #98415 fix(agent): exempt :cloud GLM models from stop->length truncation rewrite · merged via another change → bbed304, 7ea6a7a, #73223
Closed issues · 1
  • Closed#98406False truncation loop with feedback: _should_treat_stop_as_truncated rewrites correct stop on Ollama Cloud GLM, then the continuation nudge itself causes the next truncation
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

Merged PRs
#100924
Closed issues
1
Attempts
2 PRs closed without merging
Fix link checked
2 Sep 2026

For your agent

The same facts, typed.