mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-21 16:04:41 +00:00
test(codex): pin codex_backend issuer in summary-only reasoning sibling test
The #64434 change makes unrecognized issuers trust response.status='completed' for reasoning-only turns, so this sibling test (which exercised the old default-path behavior) now pins the Codex backend explicitly — the surface where reasoning-only still means 'still thinking'.
This commit is contained in:
parent
01b7609252
commit
07443ea21a
1 changed files with 9 additions and 1 deletions
|
|
@ -51,6 +51,12 @@ def test_normalize_codex_response_drops_transient_rs_tmp_reasoning_items():
|
|||
|
||||
|
||||
def test_normalize_codex_response_treats_summary_only_reasoning_as_incomplete():
|
||||
"""Summary-only reasoning keeps the continuation path for Codex backends.
|
||||
|
||||
Since #64434, an unrecognized issuer with ``response.status="completed"``
|
||||
trusts the provider and returns ``stop`` — so this test pins the Codex
|
||||
backend explicitly, where reasoning-only still means "still thinking".
|
||||
"""
|
||||
response = SimpleNamespace(
|
||||
status="completed",
|
||||
output=[
|
||||
|
|
@ -63,7 +69,9 @@ def test_normalize_codex_response_treats_summary_only_reasoning_as_incomplete():
|
|||
],
|
||||
)
|
||||
|
||||
assistant_message, finish_reason = _normalize_codex_response(response)
|
||||
assistant_message, finish_reason = _normalize_codex_response(
|
||||
response, issuer_kind="codex_backend"
|
||||
)
|
||||
|
||||
assert finish_reason == "incomplete"
|
||||
assert assistant_message.content == ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue