{"record":{"id":"b47600090de11fbe","repo":"openai/codex","slug":"turn-aborted-something-went-wrong-hit-feedback","errorCode":null,"errorMessage":"turn aborted. Something went wrong? Hit `/feedback` to report the issue.","messagePattern":"turn aborted\\. Something went wrong\\? Hit `/feedback` to report the issue\\.","errorType":"exception","errorClass":"CodexErr","httpStatus":null,"severity":"error","filePath":"codex-rs/protocol/src/error.rs","lineNumber":82,"sourceCode":"\n    /// Error from linux landlock\n    #[error(\"Landlock was not able to fully enforce all sandbox rules\")]\n    LandlockRestrict,\n}\n\npub struct CodexErr {\n    details: CodexErrorDetails,\n    retry_delay: Option<Duration>,\n}\n\n/// The semantic category and diagnostic payload for a [`CodexErr`].\n#[derive(Error, Debug, EnumDiscriminants)]\n#[strum_discriminants(name(CodexErrKind))]\n#[strum_discriminants(derive(serde::Serialize))]\n#[strum_discriminants(serde(rename_all = \"snake_case\"))]\n#[strum_discriminants(doc = \"The payload-free semantic category used for analytics.\")]\npub enum CodexErrorDetails {\n    #[error(\"turn aborted. Something went wrong? Hit `/feedback` to report the issue.\")]\n    TurnAborted,\n\n    #[error(\"shared rollout token budget exhausted\")]\n    SessionBudgetExceeded,\n\n    /// Returned by ResponsesClient when the SSE stream disconnects or errors out **after** the HTTP\n    /// handshake has succeeded but **before** it finished emitting `response.completed`.\n    ///\n    /// The Session loop treats this as a transient error and will automatically retry the turn.\n    #[error(\"stream disconnected before completion: {0}\")]\n    Stream(String),\n    #[error(\n        \"Codex ran out of room in the model's context window. Start a new thread or clear earlier history before retrying.\"\n    )]\n    ContextWindowExceeded,\n    #[error(\"no thread with id: {0}\")]\n    ThreadNotFound(ThreadId),\n    #[error(\"agent thread limit reached\")]","sourceCodeStart":64,"sourceCodeEnd":100,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/protocol/src/error.rs#L64-L100","documentation":"Sentinel variant of CodexErrorDetails used by the analytics-facing error taxonomy. It marks a turn that ended prematurely for an unclassified internal reason (not user interruption, not a typed API failure); the session loop aborts the in-flight turn and surfaces this generic 'something went wrong' message to the user.","triggerScenarios":"Thrown at codex-rs/protocol/src/error.rs:82 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry the turn; transient internal failures often clear on a second attempt","Report the issue via /feedback with session logs so the underlying cause can be classified","Check for known issues if the abort reproduces consistently on the same input"],"exampleFix":null,"handlingStrategy":"retry","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"}