{"record":{"id":"4c20a82acd5a666b","repo":"nikivdev/code","slug":"commit-message-generation-failed","errorCode":null,"errorMessage":"commit message generation failed:\n  {}","messagePattern":"commit message generation failed:\n  (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/commit.rs","lineNumber":12202,"sourceCode":"                    );\n                }\n                errors.push(format!(\"{}: {}\", selection.key(), err));\n            }\n        }\n    }\n\n    if commit_message_fail_open_enabled(repo_root) {\n        println!(\"⚠ Commit message generation failed; using deterministic fallback message.\");\n        return Ok(build_deterministic_commit_message(diff));\n    }\n\n    if errors.is_empty() {\n        bail!(\n            \"commit message generation failed: no valid tools/providers configured for this repo\"\n        );\n    }\n\n    bail!(\n        \"commit message generation failed:\\n  {}\",\n        errors.join(\"\\n  \")\n    )\n}\n\nfn sanitize_commit_message(message: &str) -> String {\n    let filtered: Vec<&str> = message\n        .lines()\n        .filter(|line| !line.trim().contains(\"[Image #\"))\n        .collect();\n\n    let cleaned = filtered.join(\"\\n\").trim().to_string();\n    if cleaned.is_empty() {\n        return message.trim().to_string();\n    }\n    cleaned\n}\n","sourceCodeStart":12184,"sourceCodeEnd":12220,"githubUrl":"https://github.com/nikivdev/code/blob/a747e741ae92c09071d0ae946ab48488adcff1ce/src/commit.rs#L12184-L12220","documentation":"Error \"commit message generation failed:\n  {}\" thrown in nikivdev/code.","triggerScenarios":"Thrown at src/commit.rs:12202 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":"a747e741ae92c09071d0ae946ab48488adcff1ce","analyzedAt":"2026-09-01T22:43:55.719Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}