[codex] add workspace snapshot turn metadata

This commit is contained in:
Kevin Liu
2026-03-23 15:51:13 -07:00
parent ec5f5ee209
commit 5528be02e4
10 changed files with 505 additions and 56 deletions

View File

@@ -95,6 +95,8 @@ pub enum Feature {
ExecPermissionApprovals,
/// Enable Claude-style lifecycle hooks loaded from hooks.json files.
CodexHooks,
/// Attach a synthetic commit hash for the current dirty worktree to turn metadata.
GitWorkspaceSnapshot,
/// Expose the built-in request_permissions tool.
RequestPermissionsTool,
/// Allow the model to request web searches that fetch live content.
@@ -645,6 +647,12 @@ pub const FEATURES: &[FeatureSpec] = &[
stage: Stage::UnderDevelopment,
default_enabled: false,
},
FeatureSpec {
id: Feature::GitWorkspaceSnapshot,
key: "git_workspace_snapshot",
stage: Stage::UnderDevelopment,
default_enabled: false,
},
FeatureSpec {
id: Feature::RequestPermissionsTool,
key: "request_permissions_tool",