Add realtime transcript notification in v2

Emit a typed realtime handoff transcript notification and wire the app-server TUI to handle it.

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Ahmed Ibrahim
2026-03-20 12:58:03 -07:00
parent a941d8439d
commit 4125a6a05f
15 changed files with 408 additions and 45 deletions

View File

@@ -0,0 +1,46 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"ThreadRealtimeTranscriptEntry": {
"properties": {
"role": {
"type": "string"
},
"text": {
"type": "string"
}
},
"required": [
"role",
"text"
],
"type": "object"
}
},
"description": "EXPERIMENTAL - flat transcript snapshot emitted when realtime hands off to the main agent.",
"properties": {
"handoffId": {
"type": "string"
},
"itemId": {
"type": "string"
},
"threadId": {
"type": "string"
},
"transcript": {
"items": {
"$ref": "#/definitions/ThreadRealtimeTranscriptEntry"
},
"type": "array"
}
},
"required": [
"handoffId",
"itemId",
"threadId",
"transcript"
],
"title": "ThreadRealtimeTranscriptAddedNotification",
"type": "object"
}