{"record":{"id":"daeff32038d06881","repo":"openai/codex","slug":"features-rollout-budget-limit-tokens-must-be-posit","errorCode":null,"errorMessage":"features.rollout_budget.limit_tokens must be positive","messagePattern":"features\\.rollout_budget\\.limit_tokens must be positive","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"codex-rs/core/src/config/mod.rs","lineNumber":2807,"sourceCode":"    }\n    let missing_limit_error = || {\n        std::io::Error::new(\n            std::io::ErrorKind::InvalidInput,\n            \"features.rollout_budget.limit_tokens is required when rollout_budget is enabled\",\n        )\n    };\n    let Some(FeatureToml::Config(config)) = config_toml\n        .features\n        .as_ref()\n        .and_then(|features| features.rollout_budget.as_ref())\n    else {\n        return Err(missing_limit_error());\n    };\n    let Some(limit_tokens) = config.limit_tokens else {\n        return Err(missing_limit_error());\n    };\n    if limit_tokens <= 0 {\n        return Err(std::io::Error::new(\n            std::io::ErrorKind::InvalidInput,\n            \"features.rollout_budget.limit_tokens must be positive\",\n        ));\n    }\n    let reminder_at_remaining_tokens =\n        config\n            .reminder_at_remaining_tokens\n            .clone()\n            .ok_or_else(|| {\n                std::io::Error::new(\n                    std::io::ErrorKind::InvalidInput,\n                    \"features.rollout_budget.reminder_at_remaining_tokens is required when rollout_budget is enabled\",\n                )\n            })?;\n    if reminder_at_remaining_tokens\n        .iter()\n        .any(|&tokens| tokens <= 0 || tokens >= limit_tokens)\n    {","sourceCodeStart":2789,"sourceCodeEnd":2825,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/core/src/config/mod.rs#L2789-L2825","documentation":"Error \"features.rollout_budget.limit_tokens must be positive\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/core/src/config/mod.rs:2807 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set features.rollout_budget.limit_tokens to a positive integer."],"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"}