Summary
Hermes can log this warning during auxiliary title generation:
Auxiliary title generation failed: 'NoneType' object is not iterable
Cause
_CodexCompletionsAdapter.create() iterates final.output from the Codex Responses stream. Some final responses can have output set to None. In that case, getattr(final, "output", []) still returns None, and iterating it raises TypeError.
Expected behavior
Treat missing or None final output as an empty list, and continue using any streamed output that was already collected.
Local fix
Local commit 58444dd99 normalizes final is None and final.output is None, then adds regression tests covering streamed text with None final output and empty None final output.
Verification
venv/bin/python -m pytest tests/agent/test_auxiliary_client.py
174 passed, 1 warning
Summary
Hermes can log this warning during auxiliary title generation:
Cause
_CodexCompletionsAdapter.create()iteratesfinal.outputfrom the Codex Responses stream. Some final responses can haveoutputset toNone. In that case,getattr(final, "output", [])still returnsNone, and iterating it raisesTypeError.Expected behavior
Treat missing or
Nonefinal output as an empty list, and continue using any streamed output that was already collected.Local fix
Local commit
58444dd99normalizesfinal is Noneandfinal.output is None, then adds regression tests covering streamed text withNonefinal output and emptyNonefinal output.Verification