{"record":{"id":"ced3d75643d62bd4","repo":"openai/codex","slug":"goals-max-goal-token-budget-exceeds-the-maximum-su","errorCode":null,"errorMessage":"goals.max_goal_token_budget exceeds the maximum supported token budget","messagePattern":"goals\\.max_goal_token_budget exceeds the maximum supported token budget","errorType":"validation","errorClass":"std::io::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/core/src/config/mod.rs","lineNumber":4190,"sourceCode":"                    } else {\n                        Some(trimmed.to_string())\n                    }\n                })\n                .collect(),\n            tool_output_token_limit: cfg.tool_output_token_limit,\n            agents_enabled,\n            agent_max_threads,\n            agent_default_subagent_model,\n            agent_default_subagent_reasoning_effort,\n            agent_max_depth,\n            agent_roles,\n            max_goal_token_budget: cfg\n                .goals\n                .as_ref()\n                .and_then(|goals| goals.max_goal_token_budget)\n                .map(|max_goal_token_budget| {\n                    i64::try_from(max_goal_token_budget.get()).map_err(|_| {\n                        std::io::Error::new(\n                            std::io::ErrorKind::InvalidInput,\n                            \"goals.max_goal_token_budget exceeds the maximum supported token budget\",\n                        )\n                    })\n                })\n                .transpose()?,\n            memories: memories_config,\n            agent_interrupt_message_enabled,\n            codex_home,\n            sqlite: codex_state::SqliteConfig::from_sqlite_home(sqlite_home),\n            log_dir,\n            config_layer_stack,\n            history,\n            ephemeral: ephemeral.unwrap_or_default(),\n            extra_config: None,\n            bypass_hook_trust,\n            file_opener: cfg.file_opener.unwrap_or(UriBasedFileOpener::VsCode),\n            codex_self_exe,","sourceCodeStart":4172,"sourceCodeEnd":4208,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/core/src/config/mod.rs#L4172-L4208","documentation":"Error \"goals.max_goal_token_budget exceeds the maximum supported token budget\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/core/src/config/mod.rs:4190 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Lower goals.max_goal_token_budget to the maximum supported value."],"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"}