{"record":{"id":"372bc6fa8d01fab5","repo":"nikivdev/code","slug":"error","errorCode":null,"errorMessage":"{}","messagePattern":"\\{\\}","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/ai.rs","lineNumber":7849,"sourceCode":"            exact_cwd,\n            &query_text,\n            &normalized_query,\n            scope,\n        )?\n        .or_else(|| {\n            search_codex_threads_for_find(Some(&target_path), exact_cwd, &query_text, 1, scope)\n                .ok()?\n                .into_iter()\n                .next()\n                .map(|row| (row, \"matched session search query\".to_string()))\n        })\n    };\n\n    let Some((row, reason)) = resolved else {\n        if query_text.is_empty() {\n            bail!(\"No Codex sessions found for {}\", target_path.display());\n        }\n        bail!(\n            \"{}\",\n            build_codex_open_no_match_message(&target_path, exact_cwd, &query_text)?\n        );\n    };\n\n    if json_output {\n        println!(\n            \"{}\",\n            serde_json::to_string_pretty(&json!({\n                \"id\": row.id,\n                \"cwd\": row.cwd,\n                \"updatedAtUnix\": row.updated_at,\n                \"title\": row.title,\n                \"firstUserMessage\": row.first_user_message,\n                \"gitBranch\": row.git_branch,\n                \"model\": row.model,\n                \"reasoningEffort\": row.reasoning_effort,\n                \"reason\": reason,","sourceCodeStart":7831,"sourceCodeEnd":7867,"githubUrl":"https://github.com/nikivdev/code/blob/a747e741ae92c09071d0ae946ab48488adcff1ce/src/ai.rs#L7831-L7867","documentation":"Error \"{}\" thrown in nikivdev/code.","triggerScenarios":"Thrown at src/ai.rs:7849 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"}