diff --git a/tests/test_tui_gateway_server.py b/tests/test_tui_gateway_server.py index 6be6f85ed832..f9bfc2d70c0b 100644 --- a/tests/test_tui_gateway_server.py +++ b/tests/test_tui_gateway_server.py @@ -1392,7 +1392,7 @@ def test_session_resume_uses_parent_lineage_for_display(monkeypatch): def reopen_session(self, target): captured["reopened"] = target - def get_messages_as_conversation(self, target, include_ancestors=False): + def get_messages_as_conversation(self, target, include_ancestors=False, repair_alternation=False): captured.setdefault("history_calls", []).append((target, include_ancestors)) return ( [ @@ -1528,7 +1528,7 @@ def test_session_resume_passes_stored_runtime_to_agent(monkeypatch): def reopen_session(self, target): pass - def get_messages_as_conversation(self, target, include_ancestors=False): + def get_messages_as_conversation(self, target, include_ancestors=False, repair_alternation=False): return [{"role": "user", "content": "hello"}] def fake_make_agent(sid, key, session_id=None, session_db=None, **kwargs): @@ -1588,7 +1588,7 @@ def test_session_resume_profile_uses_profile_db_cwd(monkeypatch, tmp_path): def reopen_session(self, _target): captured["reopened"] = _target - def get_messages_as_conversation(self, _target, include_ancestors=False): + def get_messages_as_conversation(self, _target, include_ancestors=False, repair_alternation=False): return [{"role": "user", "content": "hello"}] def update_session_cwd(self, *_args): @@ -5262,7 +5262,7 @@ def test_slash_exec_r7_read_commands_use_metadata_mirror_flag_on(monkeypatch): "pinned": True, } - def get_messages_as_conversation(self, key, include_ancestors=True): + def get_messages_as_conversation(self, key, include_ancestors=True, repair_alternation=False): assert key == "session-key" assert include_ancestors is True return list(history_from_db)