{"record":{"id":"4c0fddac3802aea0","repo":"openai/codex","slug":"provider-auth-cwd-must-resolve-err","errorCode":null,"errorMessage":"provider auth cwd must resolve: {err}","messagePattern":"provider auth cwd must resolve: (.+?)","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"codex-rs/protocol/src/config_types.rs","lineNumber":628,"sourceCode":"    DEFAULT_PROVIDER_AUTH_REFRESH_INTERVAL_MS\n}\n\nfn non_zero_u64(value: u64, field_name: &str) -> NonZeroU64 {\n    match NonZeroU64::new(value) {\n        Some(value) => value,\n        None => panic!(\"{field_name} must be non-zero\"),\n    }\n}\n\nfn default_provider_auth_cwd() -> AbsolutePathBuf {\n    let deserializer = serde::de::value::StrDeserializer::<serde::de::value::Error>::new(\".\");\n    if let Ok(cwd) = AbsolutePathBuf::deserialize(deserializer) {\n        return cwd;\n    }\n\n    match AbsolutePathBuf::current_dir() {\n        Ok(cwd) => cwd,\n        Err(err) => panic!(\"provider auth cwd must resolve: {err}\"),\n    }\n}\n\nfn is_default_provider_auth_cwd(path: &AbsolutePathBuf) -> bool {\n    path == &default_provider_auth_cwd()\n}\n\n/// Represents the trust level for a project directory.\n/// This determines the approval policy and sandbox mode applied.\n#[derive(Debug, Serialize, Deserialize, Clone, Copy, PartialEq, Eq, Display, JsonSchema, TS)]\n#[serde(rename_all = \"lowercase\")]\n#[strum(serialize_all = \"lowercase\")]\npub enum TrustLevel {\n    Trusted,\n    Untrusted,\n}\n\n/// Controls whether the TUI uses the terminal's alternate screen buffer.","sourceCodeStart":610,"sourceCodeEnd":646,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/protocol/src/config_types.rs#L610-L646","documentation":"Error \"provider auth cwd must resolve: {err}\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/protocol/src/config_types.rs:628 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"}