Files
hermes-agent/agent
Omar Baradei 2fb28ad3d4 Refresh context-length zero-guard on current upstream/main
Reapply the non-positive context-length guards onto the post-history-replacement
mainline without carrying any stale branch history. save_context_length() now
refuses to persist length <= 0 (keeping upstream's normalized _context_cache_key),
and get_model_context_length() drops non-positive cache hits at the head of the
invalidation chain (Codex/Kimi/MiniMax/Grok branches become elif) so a poisoned
entry re-resolves instead of short-circuiting to 0.

Refresh of PR #25812; original head d62ed5eb92f057d8c707ba937b44f168f2df0677.
2026-08-13 11:05:49 -07:00
..
…
…
…
…
2026-08-12 13:37:04 -04:00