mirror of
https://github.com/openai/codex.git
synced 2026-11-24 23:20:47 +00:00
feat(app-server): project workspace mutation approvals
This commit is contained in:
@@ -3340,6 +3340,7 @@ mod tests {
|
||||
thread_id: "thr_123".to_string(),
|
||||
thread_settings: v2::ThreadSettings {
|
||||
cwd: absolute_path("/tmp/repo"),
|
||||
runtime_workspace_roots: vec![absolute_path("/tmp/repo")],
|
||||
approval_policy: v2::AskForApproval::Never,
|
||||
approvals_reviewer: v2::ApprovalsReviewer::User,
|
||||
sandbox_policy: v2::SandboxPolicy::DangerFullAccess,
|
||||
|
||||
@@ -281,11 +281,13 @@ pub struct ThreadSettingsUpdateParams {
|
||||
#[ts(export_to = "v2/")]
|
||||
pub struct ThreadSettingsUpdateResponse {}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)]
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS, ExperimentalApi)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
#[ts(export_to = "v2/")]
|
||||
pub struct ThreadSettings {
|
||||
pub cwd: AbsolutePathBuf,
|
||||
#[experimental("thread/settings/updated.runtimeWorkspaceRoots")]
|
||||
pub runtime_workspace_roots: Vec<AbsolutePathBuf>,
|
||||
pub approval_policy: AskForApproval,
|
||||
pub approvals_reviewer: ApprovalsReviewer,
|
||||
pub sandbox_policy: SandboxPolicy,
|
||||
|
||||
Reference in New Issue
Block a user