mirror of
https://github.com/openai/codex.git
synced 2026-11-18 22:20:48 +00:00
feat: synchronize runtime workspace roots in thread settings
This commit is contained in:
@@ -3644,6 +3644,16 @@ fn thread_settings_update_params_preserve_explicit_null_service_tier() {
|
||||
|
||||
#[test]
|
||||
fn thread_settings_update_params_preserve_field_level_experimental_gates() {
|
||||
let runtime_workspace_roots = ThreadSettingsUpdateParams {
|
||||
thread_id: "thread_123".to_string(),
|
||||
runtime_workspace_roots: Some(vec![PathBuf::from("repo")]),
|
||||
..Default::default()
|
||||
};
|
||||
assert_eq!(
|
||||
crate::experimental_api::ExperimentalApi::experimental_reason(&runtime_workspace_roots),
|
||||
Some("thread/settings/update.runtimeWorkspaceRoots")
|
||||
);
|
||||
|
||||
let permissions = ThreadSettingsUpdateParams {
|
||||
thread_id: "thread_123".to_string(),
|
||||
permissions: Some(":workspace".to_string()),
|
||||
|
||||
Reference in New Issue
Block a user