hermes-agent/tests
teknium1 67cf37fc26 fix: head+tail truncation for execute_code stdout (inspired by openclaw context-pruning)
Previously, _drain() only captured the first MAX_STDOUT_BYTES (50KB) of
stdout, silently dropping all tail output. Scripts that print() their
final results at the end would have those results lost.

Now uses a two-buffer approach: 40% head + 60% tail (rolling window).
This matches the pattern already used in terminal_tool.py (line 1042-1051)
but gives the tail more space since execute_code scripts typically
print() their final results at the end.

Inspired by openclaw's softTrim context-pruning (headChars/tailChars).
2026-03-09 02:15:48 -07:00
..
agent
…
cron
…
fakes
…
gateway
…
hermes_cli
…
honcho_integration
…
integration
…
tools
…
__init__.py
…
conftest.py
…
test_413_compression.py
…
test_api_key_providers.py
…
test_atomic_json_write.py
…
test_auth_codex_provider.py
…
test_auth_nous_provider.py
…
test_auxiliary_config_bridge.py
…
test_batch_runner_checkpoint.py
…
test_cli_init.py
…
test_cli_model_command.py
…
test_cli_provider_resolution.py
…
test_codex_execution_paths.py
…
test_codex_models.py
…
test_external_credential_detection.py
…
test_fallback_model.py
…
test_flush_memories_codex.py
…
test_hermes_state.py
…
test_honcho_client_config.py
…
test_insights.py
…
test_model_tools.py
…
test_provider_parity.py
…
test_resume_display.py
…
test_run_agent.py
…
test_run_agent_codex_responses.py
…
test_runtime_provider_resolution.py
…
test_timezone.py
…
test_toolset_distributions.py
…
test_toolsets.py
…
test_trajectory_compressor.py
…
test_worktree.py
…