fix: align pod feature flag naming

This commit is contained in:
2026-06-09 21:21:40 +09:00
parent f0f6cc92d8
commit 2fd37afb9e
12 changed files with 23 additions and 30 deletions
+2 -2
View File
@@ -595,11 +595,11 @@ where
// loop's `PodEvent` handler). Expose them only behind the explicit
// profile feature and require delegation authority up front so enabling
// the surface cannot imply broad child scope by accident.
if feature_config.pod_management.enabled {
if feature_config.pods.enabled {
if spawner_manifest.delegation_scope.allow.is_empty() {
return Err(std::io::Error::new(
std::io::ErrorKind::InvalidInput,
"[feature.pod_management].enabled = true requires non-empty [[delegation_scope.allow]]",
"[feature.pods].enabled = true requires non-empty [[delegation_scope.allow]]",
));
}
worker.register_tool(spawn_pod_tool(
+3 -3
View File
@@ -304,7 +304,7 @@ permission = "write"
}
#[tokio::test]
async fn pod_management_feature_requires_delegation_scope() {
async fn pods_feature_requires_delegation_scope() {
let manifest = r#"
[pod]
name = "pod-management-feature-test"
@@ -317,7 +317,7 @@ model_id = "test-model"
[worker]
max_tokens = 100
[feature.pod_management]
[feature.pods]
enabled = true
[[scope.allow]]
@@ -331,7 +331,7 @@ permission = "write"
assert!(result.is_err());
let message = result.err().unwrap().to_string();
assert!(
message.contains("[feature.pod_management].enabled = true requires non-empty"),
message.contains("[feature.pods].enabled = true requires non-empty"),
"unexpected error: {message}"
);
}