hermes - 💡(How to fix) Fix Treat memory quota exceeded as a non-retryable tool-loop failure [1 pull requests]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Fix Action

Fixed

RAW_BUFFERClick to expand / collapse

Problem: Gateway logs show repeated memory tool failures when a memory write would exceed the configured quota, for example Replacement would put memory at 1,431/1,375 chars and Memory at 1,371/1,375 chars... would exceed the limit. The same turn then produced a repeated exact failure warning.

Quota exceeded is deterministic until content is shortened or existing memory is removed, so retrying the same memory write in the same turn cannot succeed. The agent should treat this as a non-retryable failure and move to recovery guidance instead of looping.

Expected behavior:

  • Memory quota exceeded results should be classified as non-retryable.
  • The tool/agent loop should suppress identical same-turn retry attempts after the first quota failure.
  • The agent should receive actionable guidance: shorten the new content, replace an existing entry, or skip memory write.
  • Logs should retain the attempted size/current limit without causing repeated noisy warnings.

Acceptance:

  • Unit coverage for add and replace operations that exceed memory quota.
  • A second identical same-turn memory call is blocked or summarized rather than executed again.
  • The user-facing response explains the required recovery action.
  • Successful memory writes and legitimate revised retry attempts still work.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

hermes - 💡(How to fix) Fix Treat memory quota exceeded as a non-retryable tool-loop failure [1 pull requests]