Files
hermes-agent/tests/agent
teknium1 21cc9de8c9 test: restore agent-lane aux/compressor regression guards dropped by #120071
Restored (repaired to drive production code, mocks only at the provider
boundary; each verified red when its fix is reverted):

- test_auxiliary_client.py::TestCodexAuxiliaryAdapterCompletedResponse::
  test_completed_response_with_null_output_does_not_crash
  A Codex-compatible host returning a completed Responses object with
  output=None yields an empty 'stop' turn instead of TypeError (#33368).
  Repaired: the old test patched the internal stream consumer; it now goes
  through the real completed-response path via the fake client.
- test_aux_progress_streaming.py::TestContentBearingProgress::
  test_content_free_frames_still_record_ttfp_timing
  Keepalive frames still fire the provider-response (TTFP) hook after the
  #96707 progress gating (#96945/#96963).
- test_context_compressor.py::TestStreamingClosedFailure::
  test_premature_stream_close_is_transient_network_failure[x2]
  httpcore 'incomplete chunked read' / 'response ended prematurely' are
  classified by the real classifier as transient: network-failure flag set
  (session preserved) and a cooldown shorter than a generic failure's
  (#18458). Repaired: no longer patches _is_connection_error, and compares
  cooldowns instead of pinning the 30s constant.
2026-09-23 10:34:54 -07:00
..