mirror of
https://github.com/openai/codex.git
synced 2026-12-01 00:20:48 +00:00
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:
@@ -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(
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user