codex/sdk/python/tests
Krish Chainani aabf13307a Store generated image items as attachment references (#54398)
## What changed

- Upload generated images to the attachment store and expose `fileId` in image-generation items when available, with inline `result` fallback on upload or decoding failure.
- Preserve file references through legacy events, persisted rollouts, thread history, and task output summaries. Keep model-facing image preparation separate.
- Add attachment request tags and mark generated-image uploads with `usage=image_gen`, preserving the thread's ephemeral setting.
- Update public schemas and SDK types to accept either image representation, retain the Python `ImageGenerationThreadItem` alias, and prefer `fileId` when reading records containing both fields.

## Testing

Add coverage for file-backed generation and rollout persistence, legacy history replay, inline and transitional serialization, task output visibility, and Python SDK alias compatibility.

GitOrigin-RevId: f7a2bb5707e2f277348a547a988bc33c8e96d891
History 2026-10-15 19:51:22 +00:00
..
app_server_harness.py Test Python SDK against the built CLI and installed runtime (#44053) 2026-09-09 04:40:22 +00:00
app_server_helpers.py Remove the unused legacy remote compaction implementation (#44273) 2026-09-09 18:40:53 +00:00
conftest.py [5/8] Rename Python SDK package to openai-codex (#21905) 2026-05-12 00:59:25 +03:00
installed_sdk_smoke.py Expose Python SDK history selection and per-turn options (#44084) 2026-09-09 06:40:56 +00:00
test_app_server_approvals.py [8/8] Add Python SDK Ruff formatting (#22021) 2026-05-12 01:10:29 +03:00
test_app_server_goal_operations.py [2/4] Add private Python goal operations (#27111) 2026-06-09 15:32:15 -07:00
test_app_server_inputs.py Start Python SDK turn subscriptions at their attachment point (#44400) 2026-09-10 03:40:55 +00:00
test_app_server_lifecycle.py [codex] Return TurnResult from Python turn handles (#23151) 2026-05-17 06:17:22 -07:00
test_app_server_login.py [codex] Rename Python SDK AppServerConfig to CodexConfig (#24800) 2026-05-27 16:10:15 -07:00
test_app_server_run.py Expose Python SDK history selection and per-turn options (#44084) 2026-09-09 06:40:56 +00:00
test_app_server_streaming.py [codex] Rename Python SDK AppServerConfig to CodexConfig (#24800) 2026-05-27 16:10:15 -07:00
test_app_server_turn_controls.py Enable instant interrupts by default (#51812) 2026-10-07 19:42:35 +00:00
test_artifact_workflow_and_binaries.py Store generated image items as attachment references (#54398) 2026-10-15 19:51:22 +00:00
test_async_client_behavior.py [codex] Rename Python SDK AppServerConfig to CodexConfig (#24800) 2026-05-27 16:10:15 -07:00
test_client_rpc_methods.py Start Python SDK turn subscriptions at their attachment point (#44400) 2026-09-10 03:40:55 +00:00
test_contract_generation.py Add Bazel targets for on-demand schemas and Python SDK generation (#54096) 2026-10-14 20:59:31 +00:00
test_mcp_conformance_fixtures.py Add MCP client conformance regression gates (#36810) 2026-08-03 23:20:41 +00:00
test_public_api_runtime_behavior.py Start Python SDK turn subscriptions at their attachment point (#44400) 2026-09-10 03:40:55 +00:00
test_public_api_signatures.py Add untrusted external messages to the Python SDK (#44086) 2026-09-09 06:54:18 +00:00
test_real_app_server_integration.py [codex] Accept string input for Python turns (#23162) 2026-05-17 09:05:44 -07:00
test_turn_subscriptions.py Start Python SDK turn subscriptions at their attachment point (#44400) 2026-09-10 03:40:55 +00:00