aKode fase 2b-2: rimosso login ChatGPT e tutti i sottosistemi solo-ChatGPT
- Login: resta solo chiave API (+ header, Bedrock). Rimossi OAuth/browser, device code, refresh/revoke su auth.openai.com, PAT, agent/workload identity, runtime agent instance, backend-client e openapi-models, workspace routing. - Rimossi: generazione immagini (ext + skill imagegen), history notes, plugin remoti (catalogo, sync, share), cyber access program, daybreak, cloud config e requirements (config_server ora fail-closed), attestation, frozen cloud skills, EMA MCP auth, Codex Apps/connettori, ricerca ospitata, header/zstd/ routing/cookie del backend Codex, fallback OPENAI_API_KEY del realtime. - Messaggi d'errore senza link a chatgpt.com. - Chiavi di config legacy accettate e ignorate; feature rimosse = Stage::Removed. - Test: cancellati solo quelli del codice rimosso; test di sicurezza (sandbox estensioni, permessi, redazione, auth storage, requirements) adattati. Restano solo fallimenti d'ambiente (code-mode-host/V8, ~/.agents). - Istruzioni di sistema invariate. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -42,7 +42,9 @@ pub(crate) const COMPACTION_KEY: &str = "compaction";
|
||||
pub(crate) const LEGACY_CODE_MODE_TOOL_NAMES_KEY: &str = "code_mode_tool_names";
|
||||
pub(crate) const TOOL_NAMESPACES_INFO_KEY: &str = "tool_namespaces_info";
|
||||
pub(crate) const TURN_STARTED_AT_UNIX_MS_KEY: &str = "turn_started_at_unix_ms";
|
||||
pub(crate) const HISTORY_INGEST_REQUESTED_KEY: &str = "history_ingest_requested";
|
||||
// Formerly requested hosted history ingestion for the removed history-notes extension; the key
|
||||
// stays reserved so configured or client metadata cannot reintroduce it.
|
||||
pub(crate) const LEGACY_HISTORY_INGEST_REQUESTED_KEY: &str = "history_ingest_requested";
|
||||
// Formerly reported the session's usage-data collection state. Usage-data reporting was removed;
|
||||
// the key stays reserved so configured or client metadata cannot reintroduce it.
|
||||
pub(crate) const LEGACY_USAGE_DATA_ENABLED_KEY: &str = "analytics_enabled";
|
||||
@@ -89,7 +91,7 @@ const RESERVED_METADATA_KEYS: &[&str] = &[
|
||||
LEGACY_CODE_MODE_TOOL_NAMES_KEY,
|
||||
TOOL_NAMESPACES_INFO_KEY,
|
||||
TURN_STARTED_AT_UNIX_MS_KEY,
|
||||
HISTORY_INGEST_REQUESTED_KEY,
|
||||
LEGACY_HISTORY_INGEST_REQUESTED_KEY,
|
||||
LEGACY_USAGE_DATA_ENABLED_KEY,
|
||||
HISTORY_INITIALIZATION_KEY,
|
||||
FORKED_FROM_THREAD_ID_KEY,
|
||||
@@ -238,16 +240,11 @@ pub(crate) enum TurnToolSource {
|
||||
pub struct CodexResponsesMetadata {
|
||||
/// The private reviewer forwards recorded items through its parent's raw-event subscription.
|
||||
pub(crate) guardian_recorded_items: bool,
|
||||
/// Guardian parent reference; projected only onto a Guardian request.
|
||||
pub(crate) parent_response_id: Option<String>,
|
||||
/// Transport-only parent pin; never projected into headers or body metadata.
|
||||
pub(crate) parent_routing_affinity: Option<codex_http_client::ChatGptRoutingAffinity>,
|
||||
pub(crate) installation_id: String,
|
||||
pub(crate) session_id: String,
|
||||
pub(crate) thread_id: String,
|
||||
pub(crate) agent_name: Option<String>,
|
||||
pub(crate) turn_id: Option<String>,
|
||||
pub(crate) routing_hint: Option<HeaderValue>,
|
||||
pub(crate) window_id: String,
|
||||
pub(crate) window_number: Option<u64>,
|
||||
pub(crate) context_window_id: Option<ContextWindowId>,
|
||||
@@ -270,7 +267,6 @@ pub struct CodexResponsesMetadata {
|
||||
pub(crate) workspaces: BTreeMap<String, TurnMetadataWorkspace>,
|
||||
pub(crate) tool_namespaces_info: Option<TurnToolNamespacesInfo>,
|
||||
pub(crate) turn_started_at_unix_ms: Option<i64>,
|
||||
pub(crate) history_ingest_requested: Option<bool>,
|
||||
/// Cumulative MCP attribution for this logical request; body-only and model-invisible.
|
||||
pub(crate) mcp_attribution: Option<McpAttribution>,
|
||||
pub(crate) extra: BTreeMap<String, String>,
|
||||
@@ -284,15 +280,12 @@ impl CodexResponsesMetadata {
|
||||
window_id: String,
|
||||
) -> Self {
|
||||
Self {
|
||||
parent_response_id: None,
|
||||
parent_routing_affinity: None,
|
||||
guardian_recorded_items: false,
|
||||
installation_id,
|
||||
session_id,
|
||||
thread_id,
|
||||
agent_name: None,
|
||||
turn_id: None,
|
||||
routing_hint: None,
|
||||
window_id,
|
||||
window_number: None,
|
||||
context_window_id: None,
|
||||
@@ -315,7 +308,6 @@ impl CodexResponsesMetadata {
|
||||
workspaces: BTreeMap::new(),
|
||||
tool_namespaces_info: None,
|
||||
turn_started_at_unix_ms: None,
|
||||
history_ingest_requested: None,
|
||||
mcp_attribution: None,
|
||||
extra: BTreeMap::new(),
|
||||
}
|
||||
@@ -457,7 +449,6 @@ impl CodexResponsesMetadata {
|
||||
workspaces: non_empty_workspaces(&self.workspaces),
|
||||
tool_namespaces_info: self.tool_namespaces_info.as_ref(),
|
||||
turn_started_at_unix_ms: self.turn_started_at_unix_ms,
|
||||
history_ingest_requested: self.history_ingest_requested,
|
||||
compaction,
|
||||
// Extra metadata enriches the Codex turn metadata blob, not literal top-level
|
||||
// Responses client_metadata. Product metadata is validated while loading config;
|
||||
@@ -607,8 +598,6 @@ struct CodexTurnMetadataPayload<'a> {
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
turn_started_at_unix_ms: Option<i64>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
history_ingest_requested: Option<bool>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
compaction: Option<CompactionTurnMetadata>,
|
||||
#[serde(flatten)]
|
||||
extra: &'a BTreeMap<String, String>,
|
||||
|
||||
Reference in New Issue
Block a user