Files
hermes-agent/tests/agent
kshitijk4poor 07b161e241 refactor(context): fold simplify findings into oversized-file fallback
- Check text tokens BEFORE building the fenced block: an oversized file no
  longer allocates a second MB-scale string just to discard it, and the token
  estimate runs once instead of twice.
- Drop the companion warning: the fallback block alone carries the message,
  so the model no longer reads "too large to inline safely" twice (Context
  Warnings + Attached Context).
- Extract _on_disk_reference_block + _agent_visible_path shared by the binary
  and oversized blocks (stat/format_bytes/OSError fallback, container path
  translation, nudge text were copy-pasted).
2026-09-05 16:44:23 +05:30
..
2026-08-28 08:28:21 -04:00