Merge remote-tracking branch 'origin/main' into codex/ai-automation-codebase-review-20260710

This commit is contained in:
ogt
2026-07-17 10:37:37 +08:00
2 changed files with 19 additions and 7 deletions

View File

@@ -738,7 +738,7 @@ async def test_projection_stays_open_until_durable_telegram_readback(
@pytest.mark.asyncio
async def test_controlled_result_pending_reservation_never_resends_provider(
async def test_controlled_result_pending_reservation_retries_provider_send(
monkeypatch: pytest.MonkeyPatch,
) -> None:
class _Response:
@@ -779,9 +779,11 @@ async def test_controlled_result_pending_reservation_never_resends_provider(
"message_id": "00000000-0000-0000-0000-000000000202",
},
{
"status": "pending_unknown",
"status": "reserved",
"run_id": "00000000-0000-0000-0000-000000000201",
"message_id": "00000000-0000-0000-0000-000000000202",
"durable_reservation_committed": True,
"reused_pending_reservation": True,
},
]
)
@@ -806,13 +808,15 @@ async def test_controlled_result_pending_reservation_never_resends_provider(
_controlled_result_payload(),
)
assert client.post_count == 1
assert client.post_count == 2
assert first["_awooop_provider_send_performed"] is True
assert first["_awooop_outbound_mirror_acknowledged"] is False
assert second["ok"] is False
assert second["_awooop_provider_send_performed"] is False
assert second["_awooop_delivery_status"] == "pending_unknown"
finalize.assert_awaited_once()
assert second["ok"] is True
assert second["_awooop_provider_send_performed"] is True
assert second["_awooop_delivery_status"] == (
"provider_sent_durable_receipt_pending"
)
assert finalize.await_count == 2
@pytest.mark.asyncio