Idle abort still failed with missing field id because CLI requires
id on the event and on item/error objects, not only response.id.
Rewrite streamed Responses events to supply missing response/item
ids and emit a complete incomplete trailer.
The empty-hold idle trailer emitted response.incomplete without id,
created_at, or sequence_number. Grok CLI serde then failed with
missing field id. Reuse the streamed response id when present and
always write a complete response object.
Empty hold timeouts and upstream idle were delivered as 200 without a
terminal SSE event, so Sub2API wrapped them as 500. Keep waiting on a
0-token hold expire, treat idle as a retryable 504 instead of client
499, cool the hanging account, and write an SSE error + DONE when the
flush path is already committed.
Hold thinking-model SSE until reasoning appears or enough visible
output arrives with none. Do not deliver that first body; switch
accounts up to five more times. After six misses, fail closed with
503 instead of sending a no-thinking reply. Default off.
Add optional routing.autoAssignMaxNodeShare and
autoAssignMaxMigrationShare. Default 0 keeps the historical unbounded
first-pass evacuation and the existing 200-move repair ceiling. Values
in [0.05, 1] cap how many active accounts one healthy node may absorb
and how many already-bound accounts may move in one cycle.
A still-decryptable g2a_compact_v1 blob from this gateway instance is
expanded even if PromptCacheKey no longer matches. Foreign and
undecodable blobs stay omitted. Surface compaction_session_drifted in
compatibility warnings so clients can see the key changed.
Buffered or encrypted thinking on Build Chat never started the first-token
clock, so billed reasoning tokens were divided into a short flush window
and the panel reported thousands of Token/s. Start Chat first-token at the
reasoning item and fall back to full duration when that tail is shorter
than the wait and under 1s.
Native /v1/responses streams can begin with an identified reasoning
item and no text delta. First-token detection previously waited for
output_text, so thinking time left the TPS denominator while
reasoning tokens stayed in the numerator. Chat aliases that put
thinking in thinking_content are counted the same way.
A 2xx stream interrupt is transport jitter, not an upstream 502. Passing
status 0 uses the 5s soft isolation and avoids exponential cooldown
emptying a small account pool.