From 6850000109f84737c2853a0b88cd379612c20783 Mon Sep 17 00:00:00 2001 From: Eric Traut Date: Fri, 6 Feb 2026 13:16:14 -0800 Subject: [PATCH] Fix lint --- codex-rs/core/src/features.rs | 8 ++++++++ codex-rs/core/tests/suite/compact_remote.rs | 1 + 2 files changed, 9 insertions(+) diff --git a/codex-rs/core/src/features.rs b/codex-rs/core/src/features.rs index 2ea28d321a..6b5d3d19d9 100644 --- a/codex-rs/core/src/features.rs +++ b/codex-rs/core/src/features.rs @@ -97,6 +97,8 @@ pub enum Feature { WindowsSandboxElevated, /// Refresh remote models and emit AppReady once the list is available. RemoteModels, + /// Enable remote compaction via the Responses API. + RemoteCompaction, /// Experimental shell snapshotting. ShellSnapshot, /// Enable runtime metrics snapshots via a manual reader. @@ -495,6 +497,12 @@ pub const FEATURES: &[FeatureSpec] = &[ stage: Stage::UnderDevelopment, default_enabled: true, }, + FeatureSpec { + id: Feature::RemoteCompaction, + key: "remote_compaction", + stage: Stage::UnderDevelopment, + default_enabled: false, + }, FeatureSpec { id: Feature::PowershellUtf8, key: "powershell_utf8", diff --git a/codex-rs/core/tests/suite/compact_remote.rs b/codex-rs/core/tests/suite/compact_remote.rs index e10f062159..1f831d3896 100644 --- a/codex-rs/core/tests/suite/compact_remote.rs +++ b/codex-rs/core/tests/suite/compact_remote.rs @@ -4,6 +4,7 @@ use std::fs; use anyhow::Result; use codex_core::CodexAuth; +#[allow(unused_imports)] use codex_core::features::Feature; use codex_core::protocol::EventMsg; use codex_core::protocol::ItemCompletedEvent;