{"record":{"id":"d4b672fb7f4bfcd5","repo":"openai/codex","slug":"features-token-budget-reminder-message-template-mu-d4b672","errorCode":null,"errorMessage":"features.token_budget.reminder_message_template must not exceed {TOKEN_BUDGET_REMINDER_MESSAGE_TEMPLATE_MAX_BYTES} bytes","messagePattern":"features\\.token_budget\\.reminder_message_template must not exceed (.+?) bytes","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"codex-rs/core/src/config/mod.rs","lineNumber":1146,"sourceCode":"    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        {\n            return Err(std::io::Error::new(\n                std::io::ErrorKind::InvalidInput,\n                format!(\n                    \"features.token_budget.guidance_message must not exceed {TOKEN_BUDGET_GUIDANCE_MESSAGE_MAX_BYTES} bytes\"\n                ),\n            ));","sourceCodeStart":1128,"sourceCodeEnd":1164,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/core/src/config/mod.rs#L1128-L1164","documentation":"Error \"features.token_budget.reminder_message_template must not exceed {TOKEN_BUDGET_REMINDER_MESSAGE_TEMPLATE_MAX_BYTES} bytes\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/core/src/config/mod.rs:1146 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Shorten reminder_message_template to fit under the byte cap."],"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"}