Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

nit: mark ghost commit as stable (#6833)

jif-oaic20df79a389b
diff --git a/codex-rs/core/src/features.rs b/codex-rs/core/src/features.rs
index 87788d428d..a161056a0b 100644
--- a/codex-rs/core/src/features.rs
+++ b/codex-rs/core/src/features.rs
@@ -27,6 +27,8 @@ pub enum Stage {
/// Unique features toggled via configuration.
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub enum Feature {
+ /// Create a ghost commit at each turn.
+ GhostCommit,
/// Use the single unified PTY-backed exec tool.
UnifiedExec,
/// Use the shell command tool that takes `command` as a single string of
@@ -42,8 +44,6 @@ pub enum Feature {
WebSearchRequest,
/// Enable the model-based risk assessments for sandboxed commands.
SandboxCommandAssessment,
- /// Create a ghost commit at each turn.
- GhostCommit,
/// Enable Windows sandbox (restricted token) on Windows.
WindowsSandbox,
/// Enable the default shell tool.
@@ -249,6 +249,14 @@ pub struct FeatureSpec {
}
pub const FEATURES: &[FeatureSpec] = &[
+ // Stable features.
+ FeatureSpec {
+ id: Feature::GhostCommit,
+ key: "undo",
+ stage: Stage::Stable,
+ default_enabled: true,
+ },
+ // Unstable features.
FeatureSpec {
id: Feature::UnifiedExec,
key: "unified_exec",
@@ -291,12 +299,6 @@ pub const FEATURES: &[FeatureSpec] = &[
stage: Stage::Experimental,
default_enabled: false,
},
- FeatureSpec {
- id: Feature::GhostCommit,
- key: "ghost_commit",
- stage: Stage::Experimental,
- default_enabled: true,
- },
FeatureSpec {
id: Feature::WindowsSandbox,
key: "enable_experimental_windows_sandbox",