Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

Add a flag to retain client developer messages (#38227)

rka-oai1ad439782105
diff --git a/codex-rs/core/config.schema.json b/codex-rs/core/config.schema.json
index 9d9816fce7..05528ce3f1 100644
--- a/codex-rs/core/config.schema.json
+++ b/codex-rs/core/config.schema.json
@@ -696,6 +696,9 @@
"responses_websockets_v2": {
"type": "boolean"
},
+ "retain_client_developer_messages": {
+ "type": "boolean"
+ },
"rollout_budget": {
"$ref": "#/definitions/FeatureToml_for_RolloutBudgetConfigToml"
},
@@ -5335,6 +5338,9 @@
"responses_websockets_v2": {
"type": "boolean"
},
+ "retain_client_developer_messages": {
+ "type": "boolean"
+ },
"rollout_budget": {
"$ref": "#/definitions/FeatureToml_for_RolloutBudgetConfigToml"
},
diff --git a/codex-rs/features/src/lib.rs b/codex-rs/features/src/lib.rs
index 0977e7d7f5..31cb6afe37 100644
--- a/codex-rs/features/src/lib.rs
+++ b/codex-rs/features/src/lib.rs
@@ -279,6 +279,8 @@ pub enum Feature {
PreventIdleSleep,
/// Enable remote compaction v2 over the normal Responses API.
RemoteCompactionV2,
+ /// Retain client-authored developer messages across compacted context windows.
+ RetainClientDeveloperMessages,
/// Use Agent Identity for ChatGPT-authenticated sessions.
UseAgentIdentity,
/// Enable workspace dependency support.
@@ -1454,6 +1456,12 @@ pub const FEATURES: &[FeatureSpec] = &[
stage: Stage::Stable,
default_enabled: true,
},
+ FeatureSpec {
+ id: Feature::RetainClientDeveloperMessages,
+ key: "retain_client_developer_messages",
+ stage: Stage::UnderDevelopment,
+ default_enabled: false,
+ },
FeatureSpec {
id: Feature::UseAgentIdentity,
key: "use_agent_identity",