Report token budget exhaustion as incomplete Responses
This commit is contained in:
@@ -150,3 +150,4 @@ The test toolchain was installed into ignored `artifacts/tool-venv/` for this ru
|
||||
|
||||
- The restricted `/v1/responses` text path now forwards worker token events through bounded channels as live SSE deltas. It emits `response.created`, `response.in_progress`, output item/content part events, UTF-8-safe text deltas, and a `response.completed` terminal event with continuous sequence numbers. A worker failure emits `response.failed`; dropping the client stream closes its worker receiver so the supervisor sends `STOP` and drains the current generation.
|
||||
- A synthetic HTTP test received the first text delta before any `DONE` event, then checked the final text and event ordering. A resident mock worker accepted another request after its streaming receiver was dropped. A UTF-8 test checked tokens that split a multi-byte character. All 70 Rust tests, Clippy with warnings denied, and `git diff --check` passed on macOS arm64. This validates the local protocol path only; no real model, Linux GPU, Codex tool call, or end-to-end throughput was tested.
|
||||
- Follow-up terminal tests checked that worker errors produce `response.failed` and output-token exhaustion produces `response.incomplete` with `incomplete_details.reason=max_output_tokens`, in both the response trace and live SSE path. A length-limited response is no longer misreported as an HTTP gateway failure. All 73 Rust tests and Clippy with warnings denied passed locally.
|
||||
|
||||
Reference in New Issue
Block a user