forked from openai/codex
## What changed Make turn event delivery depend on when each consumer attaches: - Handles returned by `thread.turn(...)` receive events from when the request is sent, including events received before the response arrives. - Other handles and explicit low-level registrations receive only events from when they join. Remove replay of completed items, token usage, and terminal events; use `thread.read(include_turns=True)` for earlier history. - Retain unread events for active subscribers and pending starts, release unused turn state, and close the returned subscription when an async start is cancelled. Preserve the existing low-level subscription when repeated `turn_start(...)` calls return the same turn. ## Testing Update coverage for late joins, request-time buffering, completion or transport failure before a start returns, async cancellation cleanup, and repeated low-level starts. Adjust external-message integration tests to allow handles to collect different items while receiving the same final response. GitOrigin-RevId: 3b7f1268df1193dee88385006ae9510101086c24 |
History
|
|
|---|---|---|
| .. | ||
| app_server_harness.py | ||
| app_server_helpers.py | ||
| conftest.py | ||
| installed_sdk_smoke.py | ||
| test_app_server_approvals.py | ||
| test_app_server_goal_operations.py | ||
| test_app_server_inputs.py | ||
| test_app_server_lifecycle.py | ||
| test_app_server_login.py | ||
| test_app_server_run.py | ||
| test_app_server_streaming.py | ||
| test_app_server_turn_controls.py | ||
| test_artifact_workflow_and_binaries.py | ||
| test_async_client_behavior.py | ||
| test_client_rpc_methods.py | ||
| test_contract_generation.py | ||
| test_mcp_conformance_fixtures.py | ||
| test_public_api_runtime_behavior.py | ||
| test_public_api_signatures.py | ||
| test_real_app_server_integration.py | ||
| test_turn_subscriptions.py | ||