feat(app-server): project workspace mutation approvals

This commit is contained in:
Felipe Coury
2026-06-12 00:33:36 -07:00
parent 2c3fc8d4f4
commit 80dccecc81
16 changed files with 243 additions and 18 deletions
@@ -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,