{"record":{"id":"d12ba14d559c31bf","repo":"openai/codex","slug":"secrets-file-version-is-newer-than-supported-ve","errorCode":null,"errorMessage":"secrets file version {} is newer than supported version {}","messagePattern":"secrets file version (.+?) is newer than supported version (.+?)","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/secrets/src/local.rs","lineNumber":199,"sourceCode":"        if let Some((cache, ciphertext_hash, passphrase_hash)) = cache.as_ref()\n            && let Some(cached) = cache.as_ref()\n            && cached.path == path\n            && cached.ciphertext_hash == *ciphertext_hash\n            && cached.passphrase_hash == *passphrase_hash\n        {\n            return Ok(cached.file.as_ref().clone());\n        }\n        let plaintext = decrypt_with_passphrase(&ciphertext, &passphrase)?;\n        let mut parsed: SecretsFile = serde_json::from_slice(&plaintext).with_context(|| {\n            format!(\n                \"failed to deserialize decrypted secrets file at {}\",\n                path.display()\n            )\n        })?;\n        if parsed.version == 0 {\n            parsed.version = SECRETS_VERSION;\n        }\n        anyhow::ensure!(\n            parsed.version <= SECRETS_VERSION,\n            \"secrets file version {} is newer than supported version {}\",\n            parsed.version,\n            SECRETS_VERSION\n        );\n        if let Some((mut cache, ciphertext_hash, passphrase_hash)) = cache {\n            *cache = Some(CachedMcpSecrets {\n                path,\n                ciphertext_hash,\n                passphrase_hash,\n                file: Arc::new(parsed.clone()),\n            });\n        }\n        Ok(parsed)\n    }\n\n    fn save_file(&self, file: &SecretsFile) -> Result<()> {\n        let dir = self.secrets_dir();","sourceCodeStart":181,"sourceCodeEnd":217,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/secrets/src/local.rs#L181-L217","documentation":"Error \"secrets file version {} is newer than supported version {}\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/secrets/src/local.rs:199 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"339751715c64496cb86246bfb3935f40e309dd3d","analyzedAt":"2026-08-25T05:35:09.876Z","schemaVersion":2},"datasetVersion":"2026-08-25T06:17:31.827Z"}