nikivdev/code · error

{}

Error message

{}

What it means

Error "{}" thrown in nikivdev/code.

Source

Thrown at src/ai.rs:7849

            exact_cwd,
            &query_text,
            &normalized_query,
            scope,
        )?
        .or_else(|| {
            search_codex_threads_for_find(Some(&target_path), exact_cwd, &query_text, 1, scope)
                .ok()?
                .into_iter()
                .next()
                .map(|row| (row, "matched session search query".to_string()))
        })
    };

    let Some((row, reason)) = resolved else {
        if query_text.is_empty() {
            bail!("No Codex sessions found for {}", target_path.display());
        }
        bail!(
            "{}",
            build_codex_open_no_match_message(&target_path, exact_cwd, &query_text)?
        );
    };

    if json_output {
        println!(
            "{}",
            serde_json::to_string_pretty(&json!({
                "id": row.id,
                "cwd": row.cwd,
                "updatedAtUnix": row.updated_at,
                "title": row.title,
                "firstUserMessage": row.first_user_message,
                "gitBranch": row.git_branch,
                "model": row.model,
                "reasoningEffort": row.reasoning_effort,
                "reason": reason,

View on GitHub (pinned to a747e741ae)

When it happens

Trigger: Thrown at src/ai.rs:7849 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of nikivdev/code@a747e741ae (2026-09-01). Data as JSON: /api/errors/372bc6fa8d01fab5. Report an issue: GitHub.