{"record":{"id":"261747b4718a76b1","repo":"openai/codex","slug":"unknown-thread-goal-status-other","errorCode":null,"errorMessage":"unknown thread goal status `{other}`","messagePattern":"unknown thread goal status `(.+?)`","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/state/src/model/thread_goal.rs","lineNumber":55,"sourceCode":"    }\n\n    pub fn is_terminal(self) -> bool {\n        matches!(self, Self::BudgetLimited | Self::Complete)\n    }\n}\n\nimpl TryFrom<&str> for ThreadGoalStatus {\n    type Error = anyhow::Error;\n\n    fn try_from(value: &str) -> Result<Self> {\n        match value {\n            \"active\" => Ok(Self::Active),\n            \"paused\" => Ok(Self::Paused),\n            \"blocked\" => Ok(Self::Blocked),\n            \"usage_limited\" => Ok(Self::UsageLimited),\n            \"budget_limited\" => Ok(Self::BudgetLimited),\n            \"complete\" => Ok(Self::Complete),\n            other => Err(anyhow!(\"unknown thread goal status `{other}`\")),\n        }\n    }\n}\n\n#[derive(Debug, Clone, PartialEq, Eq)]\npub struct ThreadGoal {\n    pub thread_id: ThreadId,\n    pub goal_id: String,\n    pub objective: String,\n    pub status: ThreadGoalStatus,\n    pub token_budget: Option<i64>,\n    pub tokens_used: i64,\n    pub time_used_seconds: i64,\n    pub created_at: DateTime<Utc>,\n    pub updated_at: DateTime<Utc>,\n}\n\npub(crate) struct ThreadGoalRow {","sourceCodeStart":37,"sourceCodeEnd":73,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/state/src/model/thread_goal.rs#L37-L73","documentation":"TryFrom<&str> for ThreadGoalStatus encountered a status string that does not match any known variant (active, paused, blocked, usage_limited, budget_limited, complete). It fires when deserializing a thread goal status persisted by a newer or older codex version, or from corrupted state-DB data.","triggerScenarios":"Thrown at codex-rs/state/src/model/thread_goal.rs:55 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Upgrade the codex version to one that knows the new status string","Fix or reset the stored goal status in the state DB to a known value","Clear the thread's goal so it is re-created with a valid status"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"339751715c64496cb86246bfb3935f40e309dd3d","analyzedAt":"2026-08-25T05:35:09.876Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}