mirror of
https://github.com/openai/codex.git
synced 2026-11-14 21:40:39 +00:00
Gate streaming apply_patch parser
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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!(
|
||||
|
||||
Reference in New Issue
Block a user