Support initial Codex time context overrides

This commit is contained in:
raju
2026-05-13 21:37:21 -07:00
parent b4ecb42966
commit 50e02cbeb3
19 changed files with 289 additions and 14 deletions
@@ -3763,6 +3763,13 @@
"null"
]
},
"currentDate": {
"description": "Override the current date shown in the model-visible environment context for this thread and subsequent turns.",
"type": [
"string",
"null"
]
},
"cwd": {
"type": [
"string",
@@ -3816,6 +3823,13 @@
},
"threadId": {
"type": "string"
},
"timezone": {
"description": "Override the timezone shown in the model-visible environment context for this thread and subsequent turns.",
"type": [
"string",
"null"
]
}
},
"required": [
@@ -3938,6 +3952,13 @@
"null"
]
},
"currentDate": {
"description": "Override the current date shown in the model-visible environment context for this thread and subsequent turns.",
"type": [
"string",
"null"
]
},
"cwd": {
"type": [
"string",
@@ -4020,6 +4041,13 @@
}
],
"description": "Optional client-supplied analytics source classification for this thread."
},
"timezone": {
"description": "Override the timezone shown in the model-visible environment context for this thread and subsequent turns.",
"type": [
"string",
"null"
]
}
},
"type": "object"
@@ -4132,6 +4160,13 @@
],
"description": "Override where approval requests are routed for review on this turn and subsequent turns."
},
"currentDate": {
"description": "Override the current date shown in the model-visible environment context for this turn and subsequent turns.",
"type": [
"string",
"null"
]
},
"cwd": {
"description": "Override the working directory for this turn and subsequent turns.",
"type": [
@@ -4208,6 +4243,13 @@
},
"threadId": {
"type": "string"
},
"timezone": {
"description": "Override the timezone shown in the model-visible environment context for this turn and subsequent turns.",
"type": [
"string",
"null"
]
}
},
"required": [
@@ -16815,6 +16815,13 @@
"null"
]
},
"currentDate": {
"description": "Override the current date shown in the model-visible environment context for this thread and subsequent turns.",
"type": [
"string",
"null"
]
},
"cwd": {
"type": [
"string",
@@ -16868,6 +16875,13 @@
},
"threadId": {
"type": "string"
},
"timezone": {
"description": "Override the timezone shown in the model-visible environment context for this thread and subsequent turns.",
"type": [
"string",
"null"
]
}
},
"required": [
@@ -17097,6 +17111,13 @@
"null"
]
},
"currentDate": {
"description": "Override the current date shown in the model-visible environment context for this thread and subsequent turns.",
"type": [
"string",
"null"
]
},
"cwd": {
"type": [
"string",
@@ -17179,6 +17200,13 @@
}
],
"description": "Optional client-supplied analytics source classification for this thread."
},
"timezone": {
"description": "Override the timezone shown in the model-visible environment context for this thread and subsequent turns.",
"type": [
"string",
"null"
]
}
},
"title": "ThreadStartParams",
@@ -17846,6 +17874,13 @@
],
"description": "Override where approval requests are routed for review on this turn and subsequent turns."
},
"currentDate": {
"description": "Override the current date shown in the model-visible environment context for this turn and subsequent turns.",
"type": [
"string",
"null"
]
},
"cwd": {
"description": "Override the working directory for this turn and subsequent turns.",
"type": [
@@ -17922,6 +17957,13 @@
},
"threadId": {
"type": "string"
},
"timezone": {
"description": "Override the timezone shown in the model-visible environment context for this turn and subsequent turns.",
"type": [
"string",
"null"
]
}
},
"required": [
@@ -14639,6 +14639,13 @@
"null"
]
},
"currentDate": {
"description": "Override the current date shown in the model-visible environment context for this thread and subsequent turns.",
"type": [
"string",
"null"
]
},
"cwd": {
"type": [
"string",
@@ -14692,6 +14699,13 @@
},
"threadId": {
"type": "string"
},
"timezone": {
"description": "Override the timezone shown in the model-visible environment context for this thread and subsequent turns.",
"type": [
"string",
"null"
]
}
},
"required": [
@@ -14921,6 +14935,13 @@
"null"
]
},
"currentDate": {
"description": "Override the current date shown in the model-visible environment context for this thread and subsequent turns.",
"type": [
"string",
"null"
]
},
"cwd": {
"type": [
"string",
@@ -15003,6 +15024,13 @@
}
],
"description": "Optional client-supplied analytics source classification for this thread."
},
"timezone": {
"description": "Override the timezone shown in the model-visible environment context for this thread and subsequent turns.",
"type": [
"string",
"null"
]
}
},
"title": "ThreadStartParams",
@@ -15670,6 +15698,13 @@
],
"description": "Override where approval requests are routed for review on this turn and subsequent turns."
},
"currentDate": {
"description": "Override the current date shown in the model-visible environment context for this turn and subsequent turns.",
"type": [
"string",
"null"
]
},
"cwd": {
"description": "Override the working directory for this turn and subsequent turns.",
"type": [
@@ -15746,6 +15781,13 @@
},
"threadId": {
"type": "string"
},
"timezone": {
"description": "Override the timezone shown in the model-visible environment context for this turn and subsequent turns.",
"type": [
"string",
"null"
]
}
},
"required": [
@@ -1048,6 +1048,13 @@
"null"
]
},
"currentDate": {
"description": "Override the current date shown in the model-visible environment context for this thread and subsequent turns.",
"type": [
"string",
"null"
]
},
"cwd": {
"type": [
"string",
@@ -1101,6 +1108,13 @@
},
"threadId": {
"type": "string"
},
"timezone": {
"description": "Override the timezone shown in the model-visible environment context for this thread and subsequent turns.",
"type": [
"string",
"null"
]
}
},
"required": [
@@ -231,6 +231,13 @@
"null"
]
},
"currentDate": {
"description": "Override the current date shown in the model-visible environment context for this thread and subsequent turns.",
"type": [
"string",
"null"
]
},
"cwd": {
"type": [
"string",
@@ -313,6 +320,13 @@
}
],
"description": "Optional client-supplied analytics source classification for this thread."
},
"timezone": {
"description": "Override the timezone shown in the model-visible environment context for this thread and subsequent turns.",
"type": [
"string",
"null"
]
}
},
"title": "ThreadStartParams",
@@ -522,6 +522,13 @@
],
"description": "Override where approval requests are routed for review on this turn and subsequent turns."
},
"currentDate": {
"description": "Override the current date shown in the model-visible environment context for this turn and subsequent turns.",
"type": [
"string",
"null"
]
},
"cwd": {
"description": "Override the working directory for this turn and subsequent turns.",
"type": [
@@ -598,6 +605,13 @@
},
"threadId": {
"type": "string"
},
"timezone": {
"description": "Override the timezone shown in the model-visible environment context for this turn and subsequent turns.",
"type": [
"string",
"null"
]
}
},
"required": [
@@ -25,4 +25,12 @@ model?: string | null, modelProvider?: string | null, serviceTier?: string | nul
* Override where approval requests are routed for review on this thread
* and subsequent turns.
*/
approvalsReviewer?: ApprovalsReviewer | null, sandbox?: SandboxMode | null, config?: { [key in string]?: JsonValue } | null, baseInstructions?: string | null, developerInstructions?: string | null, personality?: Personality | null};
approvalsReviewer?: ApprovalsReviewer | null, sandbox?: SandboxMode | null, config?: { [key in string]?: JsonValue } | null, baseInstructions?: string | null, developerInstructions?: string | null, /**
* Override the current date shown in the model-visible environment
* context for this thread and subsequent turns.
*/
currentDate?: string | null, /**
* Override the timezone shown in the model-visible environment context
* for this thread and subsequent turns.
*/
timezone?: string | null, personality?: Personality | null};
@@ -13,7 +13,15 @@ export type ThreadStartParams = {model?: string | null, modelProvider?: string |
* Override where approval requests are routed for review on this thread
* and subsequent turns.
*/
approvalsReviewer?: ApprovalsReviewer | null, sandbox?: SandboxMode | null, config?: { [key in string]?: JsonValue } | null, serviceName?: string | null, baseInstructions?: string | null, developerInstructions?: string | null, personality?: Personality | null, ephemeral?: boolean | null, sessionStartSource?: ThreadStartSource | null, /**
approvalsReviewer?: ApprovalsReviewer | null, sandbox?: SandboxMode | null, config?: { [key in string]?: JsonValue } | null, serviceName?: string | null, baseInstructions?: string | null, developerInstructions?: string | null, /**
* Override the current date shown in the model-visible environment
* context for this thread and subsequent turns.
*/
currentDate?: string | null, /**
* Override the timezone shown in the model-visible environment context
* for this thread and subsequent turns.
*/
timezone?: string | null, personality?: Personality | null, ephemeral?: boolean | null, sessionStartSource?: ThreadStartSource | null, /**
* Optional client-supplied analytics source classification for this thread.
*/
threadSource?: ThreadSource | null};
@@ -14,6 +14,14 @@ export type TurnStartParams = {threadId: string, input: Array<UserInput>, /**
* Override the working directory for this turn and subsequent turns.
*/
cwd?: string | null, /**
* Override the current date shown in the model-visible environment context
* for this turn and subsequent turns.
*/
currentDate?: string | null, /**
* Override the timezone shown in the model-visible environment context for
* this turn and subsequent turns.
*/
timezone?: string | null, /**
* Override the approval policy for this turn and subsequent turns.
*/
approvalPolicy?: AskForApproval | null, /**
@@ -130,6 +130,14 @@ pub struct ThreadStartParams {
pub base_instructions: Option<String>,
#[ts(optional = nullable)]
pub developer_instructions: Option<String>,
/// Override the current date shown in the model-visible environment
/// context for this thread and subsequent turns.
#[ts(optional = nullable)]
pub current_date: Option<String>,
/// Override the timezone shown in the model-visible environment context
/// for this thread and subsequent turns.
#[ts(optional = nullable)]
pub timezone: Option<String>,
#[ts(optional = nullable)]
pub personality: Option<Personality>,
#[ts(optional = nullable)]
@@ -285,6 +293,14 @@ pub struct ThreadResumeParams {
pub base_instructions: Option<String>,
#[ts(optional = nullable)]
pub developer_instructions: Option<String>,
/// Override the current date shown in the model-visible environment
/// context for this thread and subsequent turns.
#[ts(optional = nullable)]
pub current_date: Option<String>,
/// Override the timezone shown in the model-visible environment context
/// for this thread and subsequent turns.
#[ts(optional = nullable)]
pub timezone: Option<String>,
#[ts(optional = nullable)]
pub personality: Option<Personality>,
/// When true, return only thread metadata and live-resume state without