Gate streaming apply_patch parser

This commit is contained in:
Akshay Nathan
2026-05-04 11:15:50 -07:00
parent 66e5d99eb2
commit b459ba0f4d
10 changed files with 230 additions and 17 deletions
+8
View File
@@ -99,6 +99,8 @@ pub enum Feature {
ApplyPatchFreeform,
/// Stream structured progress while apply_patch input is being generated.
ApplyPatchStreamingEvents,
/// Use the streaming apply_patch parser for completed patch verification and application.
ApplyPatchStreamingParser,
/// Allow exec tools to request additional permissions while staying sandboxed.
ExecPermissionApprovals,
/// Expose the built-in request_permissions tool.
@@ -815,6 +817,12 @@ pub const FEATURES: &[FeatureSpec] = &[
stage: Stage::UnderDevelopment,
default_enabled: false,
},
FeatureSpec {
id: Feature::ApplyPatchStreamingParser,
key: "apply_patch_streaming_parser",
stage: Stage::UnderDevelopment,
default_enabled: false,
},
FeatureSpec {
id: Feature::ExecPermissionApprovals,
key: "exec_permission_approvals",
+13
View File
@@ -110,6 +110,19 @@ fn request_permissions_is_under_development() {
assert_eq!(Feature::ExecPermissionApprovals.default_enabled(), false);
}
#[test]
fn apply_patch_streaming_parser_is_under_development() {
assert_eq!(
feature_for_key("apply_patch_streaming_parser"),
Some(Feature::ApplyPatchStreamingParser)
);
assert_eq!(
Feature::ApplyPatchStreamingParser.stage(),
Stage::UnderDevelopment
);
assert_eq!(Feature::ApplyPatchStreamingParser.default_enabled(), false);
}
#[test]
fn request_permissions_tool_is_under_development() {
assert_eq!(