{"record":{"id":"543e8614772bc5ad","repo":"openai/codex","slug":"codex-agents-is-unavailable-while-workload-ident","errorCode":null,"errorMessage":"`codex agents` is unavailable while workload identity is active","messagePattern":"`codex agents` is unavailable while workload identity is active","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/cli/src/main.rs","lineNumber":1123,"sourceCode":"                        || interactive.oss_provider.is_some()\n                        || !interactive.add_dir.is_empty()\n                        || interactive\n                            .config_overrides\n                            .parse_overrides()\n                            .map_err(anyhow::Error::msg)?\n                            .iter()\n                            .any(|(key, value)| {\n                                key == \"sandbox_workspace_write.writable_roots\"\n                                    || (key == \"sandbox_workspace_write\"\n                                        && value.get(\"writable_roots\").is_some())\n                            }))\n                {\n                    anyhow::bail!(\n                        \"`codex agents` cannot apply local provider or additional-directory overrides to a remote server\"\n                    );\n                }\n                if is_workload_identity_selected() {\n                    anyhow::bail!(\n                        \"`codex agents` is unavailable while workload identity is active\"\n                    );\n                }\n                if root_remote.is_none() {\n                    resolve_remote_endpoint(\n                        /*remote*/ None,\n                        root_remote_auth_token_env.clone(),\n                    )?;\n                    #[cfg(not(unix))]\n                    anyhow::bail!(\"`codex agents` requires `--remote` on this platform\");\n                }\n                interactive.agents_overview = true;\n            }\n            let exit_info = run_interactive_tui(\n                interactive,\n                root_remote.clone(),\n                root_remote_auth_token_env.clone(),\n                arg0_paths.clone(),","sourceCodeStart":1105,"sourceCodeEnd":1141,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/cli/src/main.rs#L1105-L1141","documentation":"Error \"`codex agents` is unavailable while workload identity is active\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/cli/src/main.rs:1123 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"}