Support multi-environment apply_patch selection

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
starr-openai
2026-05-07 16:43:32 -07:00
parent 99016ec732
commit ebf66ae577
27 changed files with 871 additions and 213 deletions

View File

@@ -380,6 +380,10 @@ pub struct ApplyPatchApprovalRequestEvent {
pub turn_id: String,
#[ts(type = "number")]
pub started_at_ms: i64,
/// Stable selected environment id for this patch apply.
#[serde(default)]
pub environment_id: String,
pub cwd: AbsolutePathBuf,
pub changes: HashMap<PathBuf, FileChange>,
/// Optional explanatory reason (e.g. request for extra write access).
#[serde(skip_serializing_if = "Option::is_none")]