This commit is contained in:
Roy Han
2026-03-16 14:33:47 -07:00
parent 546aa367d9
commit 80a4f69bce
12 changed files with 206 additions and 13 deletions

View File

@@ -344,6 +344,13 @@ async fn user_message_type_prompt_steering_metadata_is_emitted_when_feature_enab
.and_then(Value::as_str),
Some("prompt_steering")
);
assert_eq!(
steered_message
.get("metadata")
.and_then(|metadata| metadata.get("sandbox_policy"))
.and_then(Value::as_str),
Some("full_access")
);
Ok(())
}
@@ -476,6 +483,13 @@ async fn user_message_type_prompt_queued_metadata_is_emitted_when_feature_enable
.and_then(Value::as_str),
Some("prompt_queued")
);
assert_eq!(
queued_message
.get("metadata")
.and_then(|metadata| metadata.get("sandbox_policy"))
.and_then(Value::as_str),
Some("full_access")
);
Ok(())
}