v1.6.0
latest releaseThe run inbox. Additive to contract "1": a harness that never calls the new endpoint sees exactly the same bodies.
Messages into a running run
A user types a follow-up while the model is still calling tools. A background job finishes while the assistant is answering something else. Until now both meant cancelling the run and starting a new one, and the work in flight was lost.
Now the harness posts the message to the run. The engine adds it to the history at the next step boundary, and the model answers it in the same run: one history, one result, one callback. Nothing is interrupted mid-call, and anything the run could not take comes back as pending_messages.
POST /runs/run_01J…/messages
{ "contract_version": "1",
"messages": [ { "role": "user", "id": "msg_812",
"content": [ { "type": "event", "name": "job_done", "data": { "job_id": "j_1" } } ] } ] }
Added
POST /runs/{id}/messages. User messages with text or event parts, each with your ownid. A repeat is safe, a finished run says so with409 run_finished, and limits per run keep it bounded.- One more step when it fits. If the model finished its answer while messages were waiting, the run takes another step for them, as long as steps, time and budget allow. A limit's final step reads them before it answers.
- Nothing lost. Every accepted message ends up either in the run's
messagesor inpending_messages, whatever way the run ends: limit, cancel, timeout, waiting for a tool. - Writes stay honest. A tool call made after a follow-up carries that message's id as
origin_request_id, so "do it again" becomes a new operation, not a repeat of the old one. - Visible everywhere. SSE
message_injectedplaces the message in the feed, reconnects keep its position, and the journal and/metricscount every message.