mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:50:52 +00:00
Persist realtime handoffs before accepting turn input (#62288)
## Why Realtime history needs to record which transcript frames reached the coding agent and which turn received them. If a handoff fails or the conversation reconnects, Codex needs to distinguish speech that was already used from speech that is still available for the next input. ## What changed - Route handoffs through normal turn admission to start or steer a turn. When realtime frame history is enabled, persist the transcript frames and the receiving turn's input before publishing acceptance or exposing the input to the model. Attribute only transcript frames represented in the rendered input. - Reserve transcript frames across overlapping handoffs and release them on definite rejection. Retry an uncertain write with the same input and require history recovery if the write still cannot be confirmed. - On V3 reconnect, restore persisted speech that has not been consumed and put it before newly captured speech. ## Testing Add regression tests for attribution after transcript truncation, overlapping handoffs, V3 reconnect ordering, and preservation of typed input when a handoff in the same turn fails before model sampling. GitOrigin-RevId: 432dd51971f7ced20344ebc7f0c7b007bb849f54
This commit is contained in:
@@ -30,6 +30,9 @@ pub struct UserInputMetadata {
|
||||
/// Optional host-assigned UUID for this particular Responses user item.
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
pub response_item_uuid: Option<uuid::Uuid>,
|
||||
/// Core-assigned handoff identity carried through the input queue.
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
pub realtime_handoff_id: Option<uuid::Uuid>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
pub used_dictation: Option<bool>,
|
||||
#[serde(
|
||||
|
||||
Reference in New Issue
Block a user