{"record":{"id":"6455f0f01625b693","repo":"openai/codex","slug":"features-token-budget-reminder-message-template-mu","errorCode":null,"errorMessage":"features.token_budget.reminder_message_template must not be empty","messagePattern":"features\\.token_budget\\.reminder_message_template must not be empty","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"codex-rs/core/src/config/mod.rs","lineNumber":1140,"sourceCode":"    pub guidance_message: Option<String>,\n    pub auto_compact_fallback_prompt: Option<String>,\n    pub auto_compact_fallback_buffer_tokens: Option<i64>,\n}\n\nimpl TokenBudgetConfig {\n    pub(crate) fn validate(&self) -> std::io::Result<()> {\n        if self\n            .reminder_threshold_tokens\n            .is_some_and(|tokens| tokens <= 0)\n        {\n            return Err(std::io::Error::new(\n                std::io::ErrorKind::InvalidInput,\n                \"features.token_budget.reminder_threshold_tokens must be positive\",\n            ));\n        }\n\n        if self.reminder_message_template.trim().is_empty() {\n            return Err(std::io::Error::new(\n                std::io::ErrorKind::InvalidInput,\n                \"features.token_budget.reminder_message_template must not be empty\",\n            ));\n        }\n        if self.reminder_message_template.len() > TOKEN_BUDGET_REMINDER_MESSAGE_TEMPLATE_MAX_BYTES {\n            return Err(std::io::Error::new(\n                std::io::ErrorKind::InvalidInput,\n                format!(\n                    \"features.token_budget.reminder_message_template must not exceed {TOKEN_BUDGET_REMINDER_MESSAGE_TEMPLATE_MAX_BYTES} bytes\"\n                ),\n            ));\n        }\n\n        if self\n            .guidance_message\n            .as_ref()\n            .is_some_and(|message| message.len() > TOKEN_BUDGET_GUIDANCE_MESSAGE_MAX_BYTES)\n        {","sourceCodeStart":1122,"sourceCodeEnd":1158,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/core/src/config/mod.rs#L1122-L1158","documentation":"Error \"features.token_budget.reminder_message_template must not be empty\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/core/src/config/mod.rs:1140 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Provide a non-empty features.token_budget.reminder_message_template."],"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"}