nikivdev/code · error
find is only supported for Codex sessions; use `f ai codex f
Error message
find is only supported for Codex sessions; use `f ai codex find ...`
What it means
Error "find is only supported for Codex sessions; use `f ai codex find ...`" thrown in nikivdev/code.
Source
Thrown at src/ai.rs:5644
if !status.success() {
bail!("{} exited with status {}", name, status);
}
Ok(())
}
fn find_codex_session(
path: Option<String>,
query: Vec<String>,
exact_cwd: bool,
json_output: bool,
limit: usize,
scope: CodexFindScope,
provider: Provider,
) -> Result<()> {
if provider != Provider::Codex {
bail!("find is only supported for Codex sessions; use `f ai codex find ...`");
}
let query_text = normalize_recover_query(&query).ok_or_else(|| {
anyhow::anyhow!(
"find requires a query, for example: `f ai codex find \"make plan to get designer\"`"
)
})?;
let target_path = path
.clone()
.map(|value| canonicalize_recover_path(Some(value)))
.transpose()?;
let rows = search_codex_threads_for_find(
target_path.as_deref(),
exact_cwd,
&query_text,
limit.max(1),
scope,
)?;View on GitHub (pinned to a747e741ae)
When it happens
Trigger: Thrown at src/ai.rs:5644 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/d82cf2590f681732.
Report an issue: GitHub.