Gate feedback mirror behind feature flag

Keep the optional feedback mirror disabled unless the app-server config enables the feedback_mirror feature.

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Ningyi Xie
2026-04-08 16:45:20 -07:00
co-authored by Codex
parent 476a8d5a42
commit 0651e16529
2 changed files with 15 additions and 6 deletions
@@ -7713,12 +7713,13 @@ impl CodexMessageProcessor {
}
let session_source = self.thread_manager.session_source();
let allow_feedback_mirror_upload = is_openai_employee_email(
self.auth_manager
.auth_cached()
.and_then(|auth| auth.get_account_email())
.as_deref(),
);
let allow_feedback_mirror_upload = self.config.features.enabled(Feature::FeedbackMirror)
&& is_openai_employee_email(
self.auth_manager
.auth_cached()
.and_then(|auth| auth.get_account_email())
.as_deref(),
);
let upload_result = tokio::task::spawn_blocking(move || {
snapshot.upload_feedback(
+8
View File
@@ -124,6 +124,8 @@ pub enum Feature {
RuntimeMetrics,
/// Enable thread lifecycle analytics emitted via the app-server analytics pipeline.
GeneralAnalytics,
/// Mirror internal feedback uploads to a configured endpoint.
FeedbackMirror,
/// Persist rollout metadata to a local SQLite database.
Sqlite,
/// Enable startup memory extraction and file-backed memory consolidation.
@@ -600,6 +602,12 @@ pub const FEATURES: &[FeatureSpec] = &[
stage: Stage::UnderDevelopment,
default_enabled: false,
},
FeatureSpec {
id: Feature::FeedbackMirror,
key: "feedback_mirror",
stage: Stage::UnderDevelopment,
default_enabled: false,
},
FeatureSpec {
id: Feature::Sqlite,
key: "sqlite",