hermes-agent/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide
Teknium 03563dabac
fix(gateway): raise session-hygiene hard message limit 400 → 5000 (#50194)
The gateway pre-compression hygiene valve force-compressed any session
crossing 400 messages regardless of token usage. On large-context (1M+)
models doing many short, message-dense turns, a healthy session at ~16%
token usage could hit 400 messages and get force-compressed — and the
compression summary's stale Active Task could then bleed into the next
turn.

The valve's actual purpose is to break a death spiral: when API calls
keep disconnecting on an oversized session, no token-usage data arrives,
the token threshold never fires, and the transcript grows unbounded.
It's a count-based floor for that pathological case only. 400 was tuned
for ~200K-context models and is far too low for modern large-context
sessions. Raise the default to 5000 — still well clear of any death
spiral, but no longer firing on legitimate long conversations.

The value remains fully configurable via compression.hygiene_hard_message_limit.
2026-06-21 08:26:19 -07:00
..
features docs(config): document auxiliary task fallback_chain 2026-06-20 23:23:47 -07:00
messaging fix(telegram): edit streamed previews in place as rich (Bot API 10.1) (#46890) 2026-06-16 05:26:04 -07:00
secrets docs(i18n): translate all docs into Simplified Chinese (zh-Hans) (#31942) 2026-05-25 01:47:38 -07:00
skills docs(skills): fix himalaya CLI arg order and download flag 2026-06-20 20:42:49 -07:00
checkpoints-and-rollback.md docs(i18n): translate all docs into Simplified Chinese (zh-Hans) (#31942) 2026-05-25 01:47:38 -07:00
cli.md docs(i18n): port deep-audit corrections to zh-Hans mirror (#41104) 2026-06-07 01:57:18 -07:00
configuration.md fix(gateway): raise session-hygiene hard message limit 400 → 5000 (#50194) 2026-06-21 08:26:19 -07:00
configuring-models.md docs(i18n): port deep-audit corrections to zh-Hans mirror (#41104) 2026-06-07 01:57:18 -07:00
docker.md fix(docs): align slash-command and docker docs 2026-06-20 23:23:47 -07:00
git-worktrees.md docs(i18n): port deep-audit corrections to zh-Hans mirror (#41104) 2026-06-07 01:57:18 -07:00
profile-distributions.md docs(i18n): translate all docs into Simplified Chinese (zh-Hans) (#31942) 2026-05-25 01:47:38 -07:00
profiles.md docs(profile): update clone-from references 2026-06-13 07:33:58 -07:00
security.md remove Vercel AI Gateway and Vercel Sandbox (#33067) 2026-05-27 00:43:32 -07:00
sessions.md docs(i18n): translate all docs into Simplified Chinese (zh-Hans) (#31942) 2026-05-25 01:47:38 -07:00
tui.md docs(tui): correct HERMES_TUI_GATEWAY_URL — dashboard-internal, not remote-attach (#42162) 2026-06-08 09:37:03 -07:00
windows-native.md fix(docs): update all install instructions everywhere 2026-06-04 21:07:45 -04:00
windows-wsl-quickstart.md fix(docs): update all install instructions everywhere 2026-06-04 21:07:45 -04:00