test(session-log): pin no-session_json regression + drop trailing whitespace

Adds TestNoSessionJsonSnapshot to lock the contract that session_log_file
attribute, _save_session_log method, and the per-session JSON snapshot
writer are gone. logs_dir is retained for request_dump_*.json.

Also cleans up stray trailing whitespace in test_run_agent_codex_responses
introduced when the _save_session_log stub line was deleted.
This commit is contained in:
yoniebans 2026-05-20 11:30:08 +02:00 committed by Teknium
parent 6f1a5f8597
commit b6c6f650ee
2 changed files with 26 additions and 1 deletions

View file

@ -362,7 +362,7 @@ def test_build_api_kwargs_codex_preserves_supported_efforts(monkeypatch):
agent._cleanup_task_resources = lambda task_id: None
agent._persist_session = lambda messages, history=None: None
agent._save_trajectory = lambda messages, user_message, completed: None
kwargs = agent._build_api_kwargs(
[
{"role": "system", "content": "sys"},