codex: seed turn metadata from app-server turn start

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
nicholasclark-openai
2026-03-19 12:03:57 -07:00
co-authored by Codex
parent db3ddeae35
commit 6e8ebdc5bc
47 changed files with 911 additions and 6 deletions
@@ -3116,6 +3116,16 @@
},
"type": "array"
},
"metadata": {
"additionalProperties": {
"type": "string"
},
"description": "Optional string metadata attached only to this turn.",
"type": [
"object",
"null"
]
},
"model": {
"description": "Override the model for this turn and subsequent turns.",
"type": [
@@ -13912,6 +13912,16 @@
},
"type": "array"
},
"metadata": {
"additionalProperties": {
"type": "string"
},
"description": "Optional string metadata attached only to this turn.",
"type": [
"object",
"null"
]
},
"model": {
"description": "Override the model for this turn and subsequent turns.",
"type": [
@@ -11672,6 +11672,16 @@
},
"type": "array"
},
"metadata": {
"additionalProperties": {
"type": "string"
},
"description": "Optional string metadata attached only to this turn.",
"type": [
"object",
"null"
]
},
"model": {
"description": "Override the model for this turn and subsequent turns.",
"type": [
@@ -545,6 +545,16 @@
},
"type": "array"
},
"metadata": {
"additionalProperties": {
"type": "string"
},
"description": "Optional string metadata attached only to this turn.",
"type": [
"object",
"null"
]
},
"model": {
"description": "Override the model for this turn and subsequent turns.",
"type": [
@@ -13,6 +13,9 @@ import type { SandboxPolicy } from "./SandboxPolicy";
import type { UserInput } from "./UserInput";
export type TurnStartParams = {threadId: string, input: Array<UserInput>, /**
* Optional string metadata attached only to this turn.
*/
metadata?: { [key in string]?: string } | null, /**
* Override the working directory for this turn and subsequent turns.
*/
cwd?: string | null, /**