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
@@ -3831,6 +3831,9 @@ pub enum TurnStatus {
pub struct TurnStartParams {
pub thread_id: String,
pub input: Vec<UserInput>,
/// Optional string metadata attached only to this turn.
#[ts(optional = nullable)]
pub metadata: Option<BTreeMap<String, String>>,
/// Override the working directory for this turn and subsequent turns.
#[ts(optional = nullable)]
pub cwd: Option<PathBuf>,
@@ -7906,6 +7909,7 @@ mod tests {
let without_override = TurnStartParams {
thread_id: "thread_123".to_string(),
input: vec![],
metadata: None,
cwd: None,
approval_policy: None,
approvals_reviewer: None,