Add sticky thread environment selections

Allow thread/start to configure sticky environment selections that are used by turns when no per-turn override is supplied. Per-turn environments continue to take precedence, while omitted thread selections preserve the existing default behavior.

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
starr-openai
2026-04-21 13:20:02 -07:00
co-authored by Codex
parent b49f5c0336
commit 2b0f0c2e7e
11 changed files with 87 additions and 14 deletions
+4
View File
@@ -567,6 +567,10 @@ pub enum Op {
/// Updated personality preference.
#[serde(skip_serializing_if = "Option::is_none")]
personality: Option<Personality>,
/// Updated sticky environment selections for future turns.
#[serde(default, skip_serializing_if = "Option::is_none")]
environments: Option<Vec<TurnEnvironmentSelection>>,
},
/// Approve a command execution